we don't support iiop, please refer to the jndi.properties files for the
correct settings.

marc

|-----Original Message-----
|From: [EMAIL PROTECTED]
|[mailto:[EMAIL PROTECTED]]On Behalf Of Christophe Demez
|Sent: Thursday, December 21, 2000 6:39 AM
|To: '[EMAIL PROTECTED]'
|Subject: [jBoss-User] InitialContext problem
|Importance: High
|
|
|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]
|
|



--
--------------------------------------------------------------
To subscribe:        [EMAIL PROTECTED]
To unsubscribe:      [EMAIL PROTECTED]
List Help?:          [EMAIL PROTECTED]

Reply via email to