Win a copy of Design for the Mind this week in the Design 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
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic