Transaction Manager used by multiple threads |
I was looking at using ExportingTransactionManager and ImportingTransactionManager to share a single transaction manager across different threads. Is this possible? If not, is there another way to do this?
Thanks.
Dennis McCarty
Thursday, June 30, 2016
Dennis,
The transaction manager is thread-safe because all transactions are thread-local.
Or did you mean: sharing one transaction by different threads?
Let me know...
Guy Pardon
Sunday, July 10, 2016
Yes, I meant one transaction sharing different threads.
Dennis McCarty
Sunday, July 10, 2016
Correction, sharing one transaction by different threads. Basically, a single main thread to start the transaction and this main thread can spawn child threads. I would like these child threads to use the same transaction as the main thread.
Thanks.
Dennis McCarty
Sunday, July 10, 2016
This can be done but due to the non-mainstream character we removed this from the 4.0 API release.
Contact me at guy at atomikos dot com if you want to proceed...
Thanks
Guy Pardon
Sunday, July 10, 2016
|