permaculture playing cards*
The moose likes EJB and other Java EE Technologies and the fly likes which value to set for Context .INTIAL_CONTEXT_FACTORY for J2EE server ? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » EJB and other Java EE Technologies
Bookmark "which value to set for Context .INTIAL_CONTEXT_FACTORY for J2EE server ?" Watch "which value to set for Context .INTIAL_CONTEXT_FACTORY for J2EE server ?" New topic
Author

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

Ruchik Bhatt
Greenhorn

Joined: Jul 30, 2002
Posts: 13
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..


SCJP
Eduard Manas
Ranch Hand

Joined: May 12, 2002
Posts: 69
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

Joined: Nov 12, 2001
Posts: 906
com.ibm.websphere.naming.WsnInitialContextFactory for WebSphere 4.x


/ JeanLouis<br /><i>"software development has been, is, and will remain fundamentally hard" (Grady Booch)</i><br /> <br />Take a look at <a href="http://www.epfwiki.net/wikis/openup/" target="_blank" rel="nofollow">Agile OpenUP</a> in the Eclipse community
HanMing Low
Ranch Hand

Joined: Oct 18, 2001
Posts: 196
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
 
wood burning stoves
 
subject: which value to set for Context .INTIAL_CONTEXT_FACTORY for J2EE server ?
 
Similar Threads
(Contractors) Server application
J2ME and J2EE communication
Where put Business Logic? on client or server part
Error while deploying EAR in Weblogic 9.2
dynamic dropdown population using ajax and javascript