This week's book giveaway is in the Mac OS forum. We're giving away four copies of a choice of "Take Control of Upgrading to Yosemite" or "Take Control of Automating Your Mac" and have Joe Kissell on-line! See this thread for details.
If an application server is listening on port 7001, and lets say a servlet running on the app server wants to find a resource in the app server using JNDI, is it possible to use an InitialContext object without initializing it with the CONTEXT_FACTORY ans PROVIDER_URL parameters? Can I just use: InitialContext() ...instead of: InitialContext ctx = null; Hashtable h = new Hashtable(); h.put( Context.INITIAL_CONTEXT_FACTORY, "factoryname"); h.put( Context.PROVIDER_URL, "url"); InitialContext( h); SAF
Joined: Jul 06, 2001
Forget it. I ran a small driver and tested this out myself. It seems that InitialContext() without any initialization paramter always defaults to the local machine, and it also finds the listening port of the application server by some sort of magic I'm assuming . SAF