This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan on-line!
See this thread for details.
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 Android Security Essentials Live Lessons this week in the Android 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
 
Similar Threads
NameNotFoundException
Modifying web.xml after enterprise application is already deployed
Datasource could not be located in Websphere5.0 connecting with SQL Server
Question about @Resource annotation
Is there any difference in using bean property and value in different styles