Win a copy of Programmer's Guide to Java SE 8 Oracle Certified Associate (OCA) this week in the OCAJP forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Two TransactionTemplate use my single application.

 
selva raja
Ranch Hand
Posts: 69
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Dear experts,

In my spring application i have used two different daos,DataSourceTransactionManager, and TransactionTemplate(module1,common1) in various places. Please find below code more info,


Dao1.xml:




Dao2.xml:




Is there going to create any performance issues?

Thanks,
SR

 
Mark Spritzler
ranger
Sheriff
Posts: 17278
6
IntelliJ IDE Mac Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
What is your purpose for having two of them. Are you talking to two different databases? Need XA DataSources? Two-phase commit?

Mark
 
selva raja
Ranch Hand
Posts: 69
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks... I am using single database. These codes already there in production.
Is there going to create any performance issues?


Thanks,
SR
 
Mark Spritzler
ranger
Sheriff
Posts: 17278
6
IntelliJ IDE Mac Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
No the Template is using the TransactionManager. You would use the Template if you want to use a callback interface implementation to manually code Transactions yourself if you want to punish yourself. ;)

Mark
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic