User: stark   
  Date: 01/03/14 11:16:24

  Modified:    src/main/org/jboss/naming ExternalContext.java
  Log:
  Use the full jndi name when binding to the NonSerializableFactory
  map to avoid name conflicts.
  
  Revision  Changes    Path
  1.4       +3 -3      jboss/src/main/org/jboss/naming/ExternalContext.java
  
  Index: ExternalContext.java
  ===================================================================
  RCS file: /products/cvs/ejboss/jboss/src/main/org/jboss/naming/ExternalContext.java,v
  retrieving revision 1.3
  retrieving revision 1.4
  diff -u -r1.3 -r1.4
  --- ExternalContext.java      2001/03/14 06:40:53     1.3
  +++ ExternalContext.java      2001/03/14 19:16:24     1.4
  @@ -43,7 +43,7 @@
   @see org.jboss.naming.NonSerializableFactory
   
   @author [EMAIL PROTECTED]
  -@version $Revision: 1.3 $
  +@version $Revision: 1.4 $
   */
   public class ExternalContext extends ServiceMBeanSupport implements 
ExternalContextMBean
   {
  @@ -204,13 +204,13 @@
               /* Cache the context in the NonSerializableFactory to avoid creating
                   more than one context for in VM lookups
               */
  -            NonSerializableFactory.rebind(atom, ctx);
  +            NonSerializableFactory.rebind(jndiName, ctx);
           }
           else
           {
               /* Bind a reference to the extern context using
                NonSerializableFactory as the ObjectFactory */
  -            NonSerializableFactory.rebind(parentCtx, atom, ctx);
  +            NonSerializableFactory.rebind(rootCtx, jndiName, ctx);
           }
       }
   
  
  
  

Reply via email to