This week's book giveaway is in the Jython/Python forum.
We're giving away four copies of Murach's Python Programming and have Michael Urban and Joel Murach on-line!
See this thread for details.
Win a copy of Murach's Python Programming this week in the Jython/Python forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Looking up JNDI without reference  RSS feed

 
Dushy Inguva
Ranch Hand
Posts: 264
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Do i HAVE TO specify the reference of the datasource I will be using in the web.xml? Yes, I know it is a good practise, but can I lookup the datasource with an absolute JNDI path that I specify in the server's admin console?
 
Sumit Malik
Ranch Hand
Posts: 84
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hey Dushy Inguva,

I think answer to your question lies more or less on which EJB version you are using.....

Well, with EJB 3.0 there is no need to specify any mapping in your xml files and you can directly invoke the references(with jndi name) through dependency injection.

Is this is what you are referring to ???

Cheers !!!
Sumit Malik
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!