Hi, I have the following code and have an error
Code
____
/**
* Returns the default initial context.
*/
private static InitialContext getInitialContext() throws NamingException {
//---- Set the properties
Properties tProperties = new Properties();
//---- FOR IBM WEBSPHERE
tProperties.put("java.namig.factory.initial",
"org.jnp.interfaces.NamingContextFactory");
tProperties.put("java.namig.factory.url.pkgs", "org.jboss.naming");
tProperties.put("java.naming.provider.url",
"iiop://bf_ws_tst3:1099");
//----
return new InitialContext( tProperties );
}
Object tObjectRef = tInitialContext.lookup( pClass.getName() );
Error
____
javax.naming.NoInitialContextException: Need to specifiy class name in
environment or system property, or as an applet parameter, or in an
application resource file :
java.naming.factory.initial
Can someone help me
Thanks a lot
Christophe
--
--------------------------------------------------------------
To subscribe: [EMAIL PROTECTED]
To unsubscribe: [EMAIL PROTECTED]
List Help?: [EMAIL PROTECTED]