JBoss.org Community Documentation
When using Sun's CosNaming it is necessary to use a different naming context factory from the default. CosNaming looks for the ORB in JNDI instead of using the the ORB configured in deploy/iiop-service.xml?
. It is necessary to set the global context factory to org.jboss.iiop.naming.ORBInitialContextFactory
, which sets the ORB to JBoss's ORB. This is done in the conf/jndi.properties
file:
# DO NOT EDIT THIS FILE UNLESS YOU KNOW WHAT YOU ARE DOING # java.naming.factory.initial=org.jboss.iiop.naming.ORBInitialContextFactory java.naming.factory.url.pkgs=org.jboss.naming:org.jnp.interfaces
It is also necessary to use ORBInitialContextFactory
when using CosNaming in an application client.