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
I’ve looked at a lot of different solutions, and in my humble opinion Aspose is the way to go. Here’s the link: http://aspose.com
subject: Question about default constructor for InitialContext()...