Why is an InitialContext on an EJB3 Beans Remote Session

Why do I need to provide information about various drivers when invoking a remote EJB?

java.naming.factory.initial=org.jnp.interfaces.NamingContextFactory
java.naming.factory.url.pkgs=org.jboss.naming:org.jnp.interfaces
java.naming.provider.url=localhost:1099

Do we need to specify only the address / port, and the EJB container should allow all other things?

+5
source share
1 answer

Because all EJB containers do not use the same properties. This property was intended for Jboss containers.

As an example, Glassfish uses the following properties:

java.naming.factory.initial=com.sun.enterprise.naming.SerialInitContextFactory
java.naming.factory.url.pkgs=com.sun.enterprise.naming
java.naming.factory.state=com.sucn.corba.ee.impl.presentation.rmi.JNDIStateFactoryImpl
org.omg.CORBA.ORBInitialHost=localhost
org.omg.CORBA.ORBInitialPort=3700
+1
source

All Articles