Win a copy of Java Mock Exams (software) this week in the Programmer Certification (OCPJP) forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

connection call

 
Tmmet Johnson
Ranch Hand
Posts: 56
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 1082
Java Oracle Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
As long as you are not sharing connection,you will not run into the probem.

Thanks,
Shailesh
 
What are you doing? You are supposed to be reading this tiny ad!
the new thread boost feature brings a LOT of attention to your favorite threads
https://coderanch.com/t/674455/Thread-Boost-feature
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!