File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
Win a copy of Clojure in Action this week in the Clojure forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

difference with lookup

 
Ravi Kiran Va
Ranch Hand
Posts: 2234
Eclipse IDE Firefox Browser Redhat
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi ,

Under what conditions it is desirable to use lookup with ("java:comp/mydatasource) and using lookup(“mydatasource”);


Please tell me the difference
 
dariyoosh za
Greenhorn
Posts: 20
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Ravi Pavan wrote:Hi ,

Under what conditions it is desirable to use lookup with ("java:comp/mydatasource) and using lookup(“mydatasource”);


Please tell me the difference


Well, take a look to Sun JNDI tutorial, to understand the difference:

http://java.sun.com/products/jndi/tutorial/index.html
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic