• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Paul Clapham
  • Ron McLeod
  • Liutauras Vilda
  • Junilu Lacar
Sheriffs:
  • Tim Cooke
  • Jeanne Boyarsky
  • Knute Snortum
Saloon Keepers:
  • Stephan van Hulst
  • Tim Moores
  • Tim Holloway
  • Carey Brown
  • Piet Souris
Bartenders:
  • salvin francis
  • fred rosenberger
  • Frits Walraven

Looking up JNDI without reference

 
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?
 
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
 
Catch Ernie! Catch the egg! And catch this tiny ad too:
Two software engineers solve most of the world's problems in one K&R sized book
https://coderanch.com/wiki/718759/books/Building-World-Backyard-Paul-Wheaton
    Bookmark Topic Watch Topic
  • New Topic