wood burning stoves 2.0*
The moose likes JDBC and the fly likes connection call Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Java 8 in Action this week in the Java 8 forum!
JavaRanch » Java Forums » Databases » JDBC
Bookmark "connection call" Watch "connection call" New topic
Author

connection call

Tmmet Johnson
Ranch Hand

Joined: Nov 03, 2004
Posts: 56
Hi ,
I am using datasource to get the jdbc oracle connection.
I have a singleton class which has datasource as member variable and has two methods - getInstance () and getConnection().
This singleton class's getConnection() will be called in all DAOs.

Will I run into any performance or deadlock issues in the above

Please let me know.
Thanks in advance,
Shailesh Chandra
Ranch Hand

Joined: Aug 13, 2004
Posts: 1081

As long as you are not sharing connection,you will not run into the probem.

Thanks,
Shailesh


Gravitation cannot be held responsible for people falling in love ~ Albert Einstein
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: connection call
 
Similar Threads
Singleton for datasource?
Singleton Instance
Weblogic 8.1 and JDBC
Improper use of singleton?
JNDI design question