aspose file tools*
The moose likes JDBC and the fly likes difference with lookup Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Spring in Action this week in the Spring forum!
JavaRanch » Java Forums » Databases » JDBC
Bookmark "difference with lookup " Watch "difference with lookup " New topic
Author

difference with lookup

Ravi Kiran Va
Ranch Hand

Joined: Apr 18, 2009
Posts: 2234

Hi ,

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


Please tell me the difference

Save India From Corruption - Anna Hazare.
dariyoosh za
Greenhorn

Joined: Apr 12, 2009
Posts: 20
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
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: difference with lookup