• 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: 17309
11
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: 17309
11
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
 
Happiness is not a goal ... it's a by-product of a life well lived - Eleanor Roosevelt. Tiny ad:
the new thread boost feature: great for the advertiser and smooth for the coderanch user
https://coderanch.com/t/674455/Thread-Boost-feature
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!