User: fleury
Date: 00/06/01 16:47:03
Modified: src/main/org/jboss/ejb ContainerFactory.java
StatefulSessionContainer.java
Log:
finishing factoring and making sure people don't use the stateful container until it
is ready
Revision Changes Path
1.17 +3 -2 jboss/src/main/org/jboss/ejb/ContainerFactory.java
Index: ContainerFactory.java
===================================================================
RCS file: /products/cvs/ejboss/jboss/src/main/org/jboss/ejb/ContainerFactory.java,v
retrieving revision 1.16
retrieving revision 1.17
diff -u -r1.16 -r1.17
--- ContainerFactory.java 2000/06/01 23:36:18 1.16
+++ ContainerFactory.java 2000/06/01 23:47:02 1.17
@@ -59,7 +59,7 @@
* @see Container
* @author Rickard �berg ([EMAIL PROTECTED])
* @author <a href="mailto:[EMAIL PROTECTED]">Marc Fleury</a>
-* @version $Revision: 1.16 $
+* @version $Revision: 1.17 $
*/
public class ContainerFactory
implements ContainerFactoryMBean, MBeanRegistration
@@ -234,7 +234,7 @@
{
boolean implemented = false;
- //if (!implemented) throw new
Error("Stateful Container not implemented yet");
+ if (!implemented) throw new
Error("Stateful Container not implemented yet");
// Create container
con = new StatefulSessionContainer();
@@ -367,6 +367,7 @@
{
Container con = (Container)containers.get(i);
System.out.println("Binding container
"+con.getMetaData().getJndiName());
+ System.out.println("to "+con.getContainerInvoker());
// Use rebind to make sure you overwrite the name
rebind(ctx, con.getMetaData().getJndiName(),
con.getContainerInvoker().getEJBHome());
1.7 +2 -5 jboss/src/main/org/jboss/ejb/StatefulSessionContainer.java
Index: StatefulSessionContainer.java
===================================================================
RCS file:
/products/cvs/ejboss/jboss/src/main/org/jboss/ejb/StatefulSessionContainer.java,v
retrieving revision 1.6
retrieving revision 1.7
diff -u -r1.6 -r1.7
--- StatefulSessionContainer.java 2000/06/01 23:16:35 1.6
+++ StatefulSessionContainer.java 2000/06/01 23:47:02 1.7
@@ -31,7 +31,7 @@
*
* @see <related>
* @author Rickard �berg ([EMAIL PROTECTED])
- * @version $Revision: 1.6 $
+ * @version $Revision: 1.7 $
*/
public class StatefulSessionContainer
extends Container
@@ -44,9 +44,6 @@
Map homeMapping;
Map beanMapping;
- // This is the container invoker for this container
- protected ContainerInvoker containerInvoker;
-
// This is the persistence manager for this container
protected StatefulSessionPersistenceManager persistenceManager;
protected InstanceCache instanceCache;
@@ -58,7 +55,7 @@
// Public --------------------------------------------------------
public void setContainerInvoker(ContainerInvoker ci)
{
- if (ci == null)
+ if (ci == null)
throw new IllegalArgumentException("Null invoker");
this.containerInvoker = ci;