[jboss-cvs] JBossAS SVN: r59370 - trunk/server/src/main/org/jboss/naming/client/java

jboss-cvs-commits at lists.jboss.org jboss-cvs-commits at lists.jboss.org
Fri Jan 5 04:38:19 EST 2007


Author: wolfc
Date: 2007-01-05 04:38:15 -0500 (Fri, 05 Jan 2007)
New Revision: 59370

Modified:
   trunk/server/src/main/org/jboss/naming/client/java/javaURLContextFactory.java
Log:
JBAS-3967: Fixed hack

Modified: trunk/server/src/main/org/jboss/naming/client/java/javaURLContextFactory.java
===================================================================
--- trunk/server/src/main/org/jboss/naming/client/java/javaURLContextFactory.java	2007-01-05 08:58:30 UTC (rev 59369)
+++ trunk/server/src/main/org/jboss/naming/client/java/javaURLContextFactory.java	2007-01-05 09:38:15 UTC (rev 59370)
@@ -137,12 +137,16 @@
          // Lookup the client application context from the server
          Context clientCtx = (Context) lookupCtx.lookup(clientName);
          
-         // EJB3 Client container hack
-         NamingEnumeration<NameClassPair> e = clientCtx.list("env");
-         if(e.hasMore())
+         // JBAS-3967: EJB3 Client container hack
+         try
          {
             clientCtx = (Context) clientCtx.lookup("env");
          }
+         catch(NamingException e)
+         {
+            // ignore
+            log.trace("No env sub context found", e);
+         }
          
          // Strip the comp/env prefix
          Name bindingName = name.getSuffix(2);




More information about the jboss-cvs-commits mailing list