dain        2004/04/06 14:41:46

  Modified:    modules/core/src/java/org/openejb/entity/bmp
                        BMPContainerBuilder.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/entity/bmp/BMPContainerBuilder.java
  
  Index: BMPContainerBuilder.java
  ===================================================================
  RCS file: 
/home/projects/openejb/scm/openejb/modules/core/src/java/org/openejb/entity/bmp/BMPContainerBuilder.java,v
  retrieving revision 1.2
  retrieving revision 1.3
  diff -u -r1.2 -r1.3
  --- BMPContainerBuilder.java  4 Apr 2004 01:49:10 -0000       1.2
  +++ BMPContainerBuilder.java  6 Apr 2004 18:41:46 -0000       1.3
  @@ -49,8 +49,6 @@
   
   import java.lang.reflect.Method;
   import java.util.LinkedHashMap;
  -import javax.ejb.EntityContext;
  -import javax.ejb.Handle;
   
   import org.openejb.AbstractContainerBuilder;
   import org.openejb.EJBComponentType;
  @@ -105,14 +103,15 @@
           }
       }
   
  -    protected LinkedHashMap buildVopMap(final Class beanClass) {
  +    protected LinkedHashMap buildVopMap(final Class beanClass) throws Exception{
           LinkedHashMap vopMap = new LinkedHashMap();
   
           // get the context set unset method objects
           Method setEntityContext;
           Method unsetEntityContext;
           try {
  -            setEntityContext = beanClass.getMethod("setEntityContext", new 
Class[]{EntityContext.class});
  +            Class entityContextClass = 
getClassLoader().loadClass("javax.ejb.EntityContext");
  +            setEntityContext = beanClass.getMethod("setEntityContext", new 
Class[]{entityContextClass});
               unsetEntityContext = beanClass.getMethod("unsetEntityContext", null);
           } catch (NoSuchMethodException e) {
               throw new IllegalArgumentException("Bean does not implement 
javax.ejb.EntityBean");
  @@ -164,8 +163,9 @@
                           new BMPRemoveMethod(beanClass, signature));
   
                   // 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 BMPRemoveMethod(beanClass, signature));
               } else if (signature.getMethodName().startsWith("ejbFind")) {
                   vopMap.put(
  
  
  

Reply via email to