[jboss-cvs] JBossAS SVN: r65346 - in trunk/ejb3/src/main/org/jboss/ejb3: stateless and 1 other directory.

jboss-cvs-commits at lists.jboss.org jboss-cvs-commits at lists.jboss.org
Wed Sep 12 22:00:29 EDT 2007


Author: scott.stark at jboss.org
Date: 2007-09-12 22:00:29 -0400 (Wed, 12 Sep 2007)
New Revision: 65346

Modified:
   trunk/ejb3/src/main/org/jboss/ejb3/stateful/BaseStatefulProxyFactory.java
   trunk/ejb3/src/main/org/jboss/ejb3/stateless/StatelessRemoteProxyFactory.java
Log:
debug logging about the proxy binding

Modified: trunk/ejb3/src/main/org/jboss/ejb3/stateful/BaseStatefulProxyFactory.java
===================================================================
--- trunk/ejb3/src/main/org/jboss/ejb3/stateful/BaseStatefulProxyFactory.java	2007-09-12 22:01:10 UTC (rev 65345)
+++ trunk/ejb3/src/main/org/jboss/ejb3/stateful/BaseStatefulProxyFactory.java	2007-09-13 02:00:29 UTC (rev 65346)
@@ -106,6 +106,7 @@
       Reference ref = new Reference("java.lang.Object", refAddr, JndiProxyFactory.class.getName(), null);
       try 
       {
+         log.debug("Binding reference for " + container.getEjbName() + " in JNDI at " + atom);
          Util.rebind(ctx, atom, ref);
       } catch (NamingException e)
       {

Modified: trunk/ejb3/src/main/org/jboss/ejb3/stateless/StatelessRemoteProxyFactory.java
===================================================================
--- trunk/ejb3/src/main/org/jboss/ejb3/stateless/StatelessRemoteProxyFactory.java	2007-09-12 22:01:10 UTC (rev 65345)
+++ trunk/ejb3/src/main/org/jboss/ejb3/stateless/StatelessRemoteProxyFactory.java	2007-09-13 02:00:29 UTC (rev 65346)
@@ -116,13 +116,15 @@
       if (remoteHome != null && !bindHomeAndBusinessTogether(statelessContainer))
       {
          Object homeProxy = createHomeProxy(remoteHome.value());
+         String jndiName = ProxyFactoryHelper.getHomeJndiName(container);
          try
          {
-            Util.rebind(container.getInitialContext(), ProxyFactoryHelper.getHomeJndiName(container), homeProxy);
+            log.debug("Binding proxy for " + container.getEjbName() + " in JNDI at " + jndiName);
+            Util.rebind(container.getInitialContext(), jndiName, homeProxy);
          }
          catch (NamingException e)
          {
-            NamingException namingException = new NamingException("Could not bind stateless home proxy with ejb name " + container.getEjbName() + " into JNDI under jndiName: " + container.getInitialContext().getNameInNamespace() + "/" + ProxyFactoryHelper.getHomeJndiName(container));
+            NamingException namingException = new NamingException("Could not bind stateless home proxy with ejb name " + container.getEjbName() + " into JNDI under jndiName: " + container.getInitialContext().getNameInNamespace() + "/" + jndiName);
             namingException.setRootCause(e);
             throw namingException;
          }




More information about the jboss-cvs-commits mailing list