01: /**
02: * JOnAS: Java(TM) Open Application Server
03: * Copyright (C) 2006 Bull S.A.S.
04: * Contact: jonas-team@objectweb.org
05: * Copyright (C) 2006 Distributed Systems Lab.
06: * Universidad Polit??cnica de Madrid (Spain)
07: * Contact: http://lsd.ls.fi.upm.es/lsd
08: *
09: * This library is free software; you can redistribute it and/or
10: * modify it under the terms of the GNU Lesser General Public
11: * License as published by the Free Software Foundation; either
12: * version 2.1 of the License, or any later version.
13: *
14: * This library is distributed in the hope that it will be useful,
15: * but WITHOUT ANY WARRANTY; without even the implied warranty of
16: * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
17: * Lesser General Public License for more details.
18: *
19: * You should have received a copy of the GNU Lesser General Public
20: * License along with this library; if not, write to the Free Software
21: * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307
22: * USA
23: *
24: * --------------------------------------------------------------------------
25: *
26: * --------------------------------------------------------------------------
27: */package org.objectweb.jonas_ejb.container;
28:
29: import javax.ejb.SessionBean;
30:
31: import org.objectweb.carol.cmi.ObjectId;
32:
33: /**
34: * This class extends JSessionContext in case of Replicated Stateful Session Bean.
35: * @author Francisco Perez-Sorrosal (fpsorrosal@no-spam@fi.upm.es)
36: * @author Alberto Paz-Jimenez (apaz@no-spam@fi.upm.es)
37: */
38: public class JRepStatefulContext extends JStatefulContext {
39:
40: /**
41: * Serial version UID
42: */
43: private static final long serialVersionUID = 1L;
44:
45: /**
46: * The cluster object ID
47: */
48: public ObjectId clusterOId = null;
49:
50: /**
51: * Gets the cluster object ID
52: * @return Returns the clusterOId.
53: */
54: public ObjectId getClusterOId() {
55: return clusterOId;
56: }
57:
58: /**
59: * Sets the cluster object ID
60: * @param clusterOId The clusterOId to set.
61: */
62: public void setClusterOId(ObjectId clusterOId) {
63: this .clusterOId = clusterOId;
64: }
65:
66: /**
67: * Constructs a JRepStatefulContext
68: * @param bf - the Session Factory
69: * @param sb - the Enterprise Bean instance
70: * @param sync - True if implements SessionSymchronization.
71: */
72: public JRepStatefulContext(JSessionFactory bf, SessionBean sb,
73: boolean sync) {
74: super(bf, sb, sync);
75: }
76: }
|