Win a copy of Kubernetes in Action this week in the Cloud/Virtualization forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

connection call  RSS feed

 
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,
 
Ranch Hand
Posts: 1084
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
 
Don't get me started about those stupid light bulbs.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!