This week's book giveaways are in the Java EE and JavaScript forums.
We're giving away four copies each of The Java EE 7 Tutorial Volume 1 or Volume 2(winners choice) and jQuery UI in Action and have the authors on-line!
See this thread and this one for details.
The moose likes EJB and other Java EE Technologies and the fly likes  How to create Database connection using Datasource Mechanism approach Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of The Java EE 7 Tutorial Volume 1 or Volume 2 this week in the Java EE forum
or jQuery UI in Action in the JavaScript forum!
JavaRanch » Java Forums » Java » EJB and other Java EE Technologies
Bookmark " How to create Database connection using Datasource Mechanism approach" Watch " How to create Database connection using Datasource Mechanism approach" New topic
Author

How to create Database connection using Datasource Mechanism approach

Somesh Rathi
Ranch Hand

Joined: Apr 27, 2006
Posts: 31
Hi Friends,
I want to know how to create the database connection using Datasource interface mechanism..

I want to know about the JNDI Lookup Mechanism, Connection pooling & singleton approach used in this mechanism to establish the connection..


It would be helpful if you can provide any example pls ..

Many thanks in advance !

Regards,
Somesh
Jeanne Boyarsky
internet detective
Marshal

Joined: May 26, 2003
Posts: 30361
    
150

Somesh,
The JDBC tutorial contains a description of this along with an example. After you read it, feel free to post a reply with any remaining questions.


[Blog] [JavaRanch FAQ] [How To Ask Questions The Smart Way] [Book Promos]
Blogging on Certs: SCEA Part 1, Part 2 & 3, Core Spring 3, OCAJP, OCPJP beta, TOGAF part 1 and part 2
 
jQuery in Action, 2nd edition
 
subject: How to create Database connection using Datasource Mechanism approach