You are viewing a plain text version of this content. The canonical link for it is here.
Posted to wsrf-commits@ws.apache.org by sc...@apache.org on 2005/08/22 19:10:57 UTC

svn commit: r235758 - /webservices/wsrf/trunk/src/java/org/apache/ws/util/jndi/XmlBeanNamingContext.java

Author: scamp
Date: Mon Aug 22 10:10:55 2005
New Revision: 235758

URL: http://svn.apache.org/viewcvs?rev=235758&view=rev
Log:
changed bind(..) calls to rebind to ensure the jndi context is configured correctly when the app is shutdown but JNDI is not

Modified:
    webservices/wsrf/trunk/src/java/org/apache/ws/util/jndi/XmlBeanNamingContext.java

Modified: webservices/wsrf/trunk/src/java/org/apache/ws/util/jndi/XmlBeanNamingContext.java
URL: http://svn.apache.org/viewcvs/webservices/wsrf/trunk/src/java/org/apache/ws/util/jndi/XmlBeanNamingContext.java?rev=235758&r1=235757&r2=235758&view=diff
==============================================================================
--- webservices/wsrf/trunk/src/java/org/apache/ws/util/jndi/XmlBeanNamingContext.java (original)
+++ webservices/wsrf/trunk/src/java/org/apache/ws/util/jndi/XmlBeanNamingContext.java Mon Aug 22 10:10:55 2005
@@ -187,7 +187,7 @@
 
       // Bind the object to the appropriate name
       createSubcontexts( environment.getName(  ) );
-      this.m_context.bind( environment.getName(  ),
+      this.m_context.rebind( environment.getName(  ),
                            value );
       if ( LOG.isDebugEnabled(  ) )
       {
@@ -214,7 +214,7 @@
       this.addParameters( reference,
                           resource.getParameters(  ) );
       this.createSubcontexts( resource.getName(  ) );
-      this.m_context.bind( resource.getName(  ),
+      this.m_context.rebind( resource.getName(  ),
                            reference );
       LOG.debug( "Added resource entry with name: " + resource.getName(  ) );
    }
@@ -231,7 +231,7 @@
    {
       LinkRef link = new LinkRef( resourceLink.getTarget(  ) );
       this.createSubcontexts( resourceLink.getName(  ) );
-      this.m_context.bind( resourceLink.getName(  ),
+      this.m_context.rebind( resourceLink.getName(  ),
                            link );
       if ( LOG.isDebugEnabled(  ) )
       {
@@ -314,7 +314,7 @@
       this.addParameters( reference,
                           resource.getParameters(  ) );
       this.createSubcontexts( resource.getName(  ) );
-      this.m_context.bind( resource.getName(  ),
+      this.m_context.rebind( resource.getName(  ),
                            reference );
       LOG.debug( "Added service resource entry with name: " + resource.getName(  ) );
    }
@@ -344,7 +344,7 @@
                      Object ref )
    throws NamingException
    {
-      this.m_context.bind( name, ref );
+      this.m_context.rebind( name, ref );
    }
 
    private void addParameters( Reference          reference,