dain 2004/04/06 14:41:47
Modified: modules/core/src/java/org/openejb/sfsb
StatefulContainerBuilder.java
Log:
Added an assembly module
Fixed remaining not serializable bugs
Added configuration files for itests to deploy into new assembly
Revision Changes Path
1.3 +6 -6
openejb/modules/core/src/java/org/openejb/sfsb/StatefulContainerBuilder.java
Index: StatefulContainerBuilder.java
===================================================================
RCS file:
/home/projects/openejb/scm/openejb/modules/core/src/java/org/openejb/sfsb/StatefulContainerBuilder.java,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -r1.2 -r1.3
--- StatefulContainerBuilder.java 4 Apr 2004 01:49:10 -0000 1.2
+++ StatefulContainerBuilder.java 6 Apr 2004 18:41:47 -0000 1.3
@@ -49,8 +49,6 @@
import java.lang.reflect.Method;
import java.util.LinkedHashMap;
-import javax.ejb.Handle;
-import javax.ejb.SessionContext;
import org.openejb.AbstractContainerBuilder;
import org.openejb.EJBComponentType;
@@ -101,12 +99,13 @@
}
}
- protected LinkedHashMap buildVopMap(Class beanClass) {
+ protected LinkedHashMap buildVopMap(Class beanClass) throws Exception {
LinkedHashMap vopMap = new LinkedHashMap();
Method setSessionContext = null;
try {
- setSessionContext = beanClass.getMethod("setSessionContext", new
Class[]{SessionContext.class});
+ Class sessionContextClass =
getClassLoader().loadClass("javax.ejb.SessionContext");
+ setSessionContext = beanClass.getMethod("setSessionContext", new
Class[]{sessionContextClass});
} catch (NoSuchMethodException e) {
throw new IllegalArgumentException("Bean does not implement
setSessionContext(javax.ejb.SessionContext)");
}
@@ -142,8 +141,9 @@
new RemoveMethod(beanClass, signature, isBMT));
// ejbHome.remove(handle)
+ Class handleClass = getClassLoader().loadClass("javax.ejb.Handle");
vopMap.put(
- new InterfaceMethodSignature("remove", new
Class[]{Handle.class}, true),
+ new InterfaceMethodSignature("remove", new
Class[]{handleClass}, true),
new RemoveMethod(beanClass, signature, isBMT));
} else {
continue;