• 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
  • 0
  • 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: 33684
316
Eclipse IDE Java VI Editor
  • 0
  • 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