I- JNDI Conversion from JBOS to WebLOGIC issue
JBOSS - File: jndi.propertiesjava.naming.factory.initial=org.jnp.interfaces.NamingContextFactoryjava.naming.factory.url.pkgs=org.jboss.naming:org.jnp.interfacesjava.naming.provider.url=localhost:1099
WebLOGIC - File: jndi.properties
java.naming.factory.initial=weblogic.jndi.WLInitialContextFactory
java.naming.factory.url.pkgs=weblogic.jndi.factories:weblogic.corba.j2ee.naming.url:weblogic.corba.client.naming
java.naming.provider.url=t3://localhost:7101
java.naming.security.principal=weblogic
java.naming.security.credentials=weblogic
II- WLInitialContextFactory issue
Important note: WebLOGIC ‘s July 2008 book
Oracle® WebLogic Server
Programming Stand-alone Clients
10g Release 3 (10.1.3) :
“In obtaining an initial context,
you must use weblogic.jndi.WLInitialContextFactory
when defining your JNDI context factory.
Use this class when setting the value for the "Context.INITIAL_CONTEXT_FACTORY" property that you supply as a parameter to new InitialContext().”
( prev ) ( next )