Win a copy of Functional Reactive Programming this week in the Other Languages forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

JNDI To Look Up An IP Address?

 
Jason Ferguson
Ranch Hand
Posts: 58
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 45
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 30
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
looking up IP address? what does that mean??
 
Amir Pourteymour
Ranch Hand
Posts: 45
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic