User: fleury  
  Date: 00/05/21 19:46:46

  Modified:    src/java/org/ejboss/container ContainerMetaData.java
  Log:
  the ejbHome null bug is fixed
  
  Revision  Changes    Path
  1.20      +16 -13    ejboss/src/java/org/ejboss/container/ContainerMetaData.java
  
  Index: ContainerMetaData.java
  ===================================================================
  RCS file: 
/products/cvs/ejboss/ejboss/src/java/org/ejboss/container/ContainerMetaData.java,v
  retrieving revision 1.19
  retrieving revision 1.20
  diff -u -r1.19 -r1.20
  --- ContainerMetaData.java    2000/05/20 02:13:27     1.19
  +++ ContainerMetaData.java    2000/05/22 02:46:46     1.20
  @@ -339,7 +339,7 @@
   
                   String primaryKeyClassName = ((Entity) bean).getPrimaryKeyClass();
   
  -                Tracer.trace("PrimaryKeyClass is \""+primaryKeyClassName + "\"");
  +                //Tracer.trace("PrimaryKeyClass is \""+primaryKeyClassName + "\"");
   
                   try {
   
  @@ -383,18 +383,6 @@
           initializeTransactionMetaData();
   
   
  -        // Now we can generate a copy for the clients.  The container will send
  -        // this reference and since it is serializable will be copied before
  -        // living the VM. We only need one copy
  -
  -        clientMetaData = new ClientMetaData (jndiName,
  -                                             ejbHome,
  -                                             homeInterfaceClass,
  -                                             remoteInterfaceClass,
  -                                             primaryKeyClass,
  -                                             EJB_TYPE,
  -                                             isSession);
  -
       }
   
   /******************************************************************************/
  @@ -426,6 +414,21 @@
       }
   
       public void setEJBHome(EJBHome ejbHome) {
  +
  +        // pass this to the client metaData
  +        
  +        // Now we can generate a copy for the clients.  The container will send
  +        // this reference and since it is serializable will be copied before
  +        // living the VM. We only need one copy
  +
  +        clientMetaData = new ClientMetaData (jndiName,
  +                                             ejbHome,
  +                                             homeInterfaceClass,
  +                                             remoteInterfaceClass,
  +                                             primaryKeyClass,
  +                                             EJB_TYPE,
  +                                             isSession);
  +
   
           this.ejbHome = ejbHome;
       }
  
  
  

Reply via email to