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

I use the JBoss Web Server

Can someone help me ?

Thanks a lot

Christophe

===========================================================================
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff EJB-INTEREST".  For general help, send email to
[EMAIL PROTECTED] and include in the body of the message "help".

Reply via email to