• Post Reply Bookmark Topic Watch Topic
  • New Topic

JNDI

 
Sree kanth
Ranch Hand
Posts: 53
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi all
I have bean and a Servlet which accesses the bean. But the bean is in another server. How do I mention the ip address of this machine in my servlet.

Thanks in advance

Rgds
SREE
 
Daniel Rhoades
Ranch Hand
Posts: 186
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You need an IntitialContext to get the bean from a JNDI lookup - the exact parameters will differ depending on the server vendor, check your server docs.

If you post what server your web and EJB apps are on then we might be able to help.
 
Sree kanth
Ranch Hand
Posts: 53
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi

Sorry for the delay

I am using sun app server (J2ee1.4) as web server as well as EJB Server

Rgds
Sree
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!