• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Can we access servlets using JNDI?

 
Laxmi Raghu
Ranch Hand
Posts: 218
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Can we access servlets using JNDI? Pls help.
 
Ben Souther
Sheriff
Posts: 13411
Firefox Browser Redhat VI Editor
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Laxmi R,

We're pleased to have you here with us in the servlets forum, but there are a few rules that need to be followed, and one is that proper names are required. Please take a look at the JavaRanch Naming Policy and adjust your display name to match it.

In particular, your display name must be a first and a last name separated by a space character, and must not be obviously fictitious.

You can change it here
 
Ulf Dittmer
Rancher
Pie
Posts: 42966
73
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
JNDI generally returns an object of some kind that you can use for some specific purpose, e.g. a database connection, an reference to an EJB, or a local stub for an object accessible through RMI. But servlets are accessed remotely, and have no concept of a local stub. What exactly are you trying to do?
[ January 14, 2006: Message edited by: Ulf Dittmer ]
 
dema rogatkin
Ranch Hand
Posts: 294
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Actually it's interesting idea. I build servlets repository in my servlet container, but it looks like I can use JNDI for that purpose. Thank you for giving so bright idea.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic