Win a copy of Think Java: How to Think Like a Computer Scientist this week in the Java in General forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

which value to set for Context .INTIAL_CONTEXT_FACTORY for J2EE server ?

 
Ruchik Bhatt
Greenhorn
Posts: 13
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
i m using j2ee server for a chat application. On the server side i m also using JMS. For the client i m jms.jar and jdk1.4 for making th client win 98 compatible. So what value should i set for the Context.INITAIL_CONTEXT_FACTORYon the client for J2EE server..
 
Eduard Manas
Ranch Hand
Posts: 69
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Ruchik,
The name of this property depends on the application server you are using. For Weblogic, for example, is weblogic.jndi.WLInitialContextFactory.
 
JeanLouis Marechaux
Ranch Hand
Posts: 906
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
com.ibm.websphere.naming.WsnInitialContextFactory for WebSphere 4.x
 
HanMing Low
Ranch Hand
Posts: 196
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,
I think you're refering to RI, am I right?
props.put(Context.INITIAL_CONTEXT_FACTORY, "com.sun.jndi.cosnaming.CNCtxFactory");
props.put(Context.PROVIDER_URL, "iiop://localhost:<Whateverport>");

Hope this helps.
Cheers.

Han Ming
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic