-
Feb 11th, 2013, 09:31 AM
#1
Use of ChainedTransactionManager forces all TransactionManagers to participate
Hi folks,
I realize this is probably not a 100% supported solution since it's background seems somewhat shady. With the ChainedTransactionManager, all of the child PlatformTransactionManagers are registered with any call to getTransaction, even if they do not end up being used. With a Hibernate transaction manager, this means that it consumes a connection from the DB.
We're trying to use this class to manage rollbacks of messages consumed from JMS and the database. A small percentage of these messages will involve one particular database (database A), but most do not. However, because of the way this class behaves we are holding open connections to A for every message consumed.
Has anyone else encountered this before and perhaps come up with a way to avoid the issue?
-
Feb 11th, 2013, 09:42 AM
#2
I guess I'm starting to see that cases like ours are why more complex transaction frameworks exist.
Tags for this Thread
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules