This week's book giveaway is in the OCPJP forum.
We're giving away four copies of OCA/OCP Java SE 7 Programmer I & II Study Guide and have Kathy Sierra & Bert Bates on-line!
See this thread for details.
The moose likes EJB and other Java EE Technologies and the fly likes JNDI To Look Up An IP Address? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of OCA/OCP Java SE 7 Programmer I & II Study Guide this week in the OCPJP forum!
JavaRanch » Java Forums » Java » EJB and other Java EE Technologies
Bookmark "JNDI To Look Up An IP Address?" Watch "JNDI To Look Up An IP Address?" New topic
Author

JNDI To Look Up An IP Address?

Jason Ferguson
Ranch Hand

Joined: Aug 09, 2007
Posts: 58
Is it possible to use JNDI to look up a particular IP address? Right now I only use it for looking up data sources.

I need to specify different IP addresses for SMTP servers for my test servers, customer test servers, and production.

I'm using (blech) Oracle App Server 10.1.2 for this, if anyone has any experience with setting it up.

Jason
Amir Pourteymour
Ranch Hand

Joined: Mar 06, 2008
Posts: 45
java.naming.factory.initial=org.jnp.interfaces.NamingContextFactory
java.naming.provider.url=jnp://192.168.0.1:1099
java.naming.factory.url.pkgs=org.jboss.naming rg.jnp.interfaces
Kevin Smither
Ranch Hand

Joined: Oct 22, 2007
Posts: 30
looking up IP address? what does that mean??
Amir Pourteymour
Ranch Hand

Joined: Mar 06, 2008
Posts: 45
It means that you should have an application server somewhere in your network where you create your JNDI objects. You are actually looking up the IP address of that host.
 
 
subject: JNDI To Look Up An IP Address?