Win a copy of Re-engineering Legacy Software this week in the Refactoring forum
or Docker in Action in the Cloud/Virtualization forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

How to create Database connection using Datasource Mechanism approach

 
Somesh Rathi
Ranch Hand
Posts: 31
Eclipse IDE Hibernate Oracle
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
author & internet detective
Marshal
Posts: 34095
337
Eclipse IDE Java VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic