aspose file tools*
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 Java 8 in Action this week in the Java 8 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.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: JNDI To Look Up An IP Address?
 
Similar Threads
QueueConnectionFactory problem
Jboss clustering question
Problem in James mail server Setup
Develop application to lookup resources at runtime?
InitialContext lookup