-
Bug
-
Resolution: Obsolete
-
Major
-
JBossAS-3.2.8.SP1, JBossAS-4.0.4.GA
-
None
According to JBAS-1620, we have to use org.jboss.naming.NamingContextFactory to allow the handle to remember the JNDI environment that was in effect when it was created. But what about handles constructed inside the JBoss server JVM and later serialized into the client JVM? Each JVM may use different properties to access the JNDI - e.g. the "java.naming.provider.url" property, which is not available in the JBoss JVM but is required in a client JVM. Sure, I can add the "java.naming.provider.url" property to the $JBOSS_SERVER_HOME/conf/jndi.properties file, but as far as I know this forces in-VM calls to use RMI.
Please have a look at the attached testcase (sources are included). The code works in our production environment (v3.2.7) but fails with the latest JBoss releases (4.0.4.GA and 3.2.8.SP1).
Regards,
lkral
- duplicates
-
JBAS-5302 StatefulHandleImpl should be able to use legacy invoker method to retrieve EJBObject
- Closed