This week's book giveaway is in the Kotlin forum.
We're giving away four copies of Kotlin in Action and have Dmitry Jemerov & Svetlana Isakova on-line!
See this thread for details.
Win a copy of Kotlin in Action this week in the Kotlin forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

How to create Database connection using Datasource Mechanism approach  RSS feed

 
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
Sheriff
Posts: 37230
519
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
Boost this thread!