can i create multiple connections during one transaction and perform commit on them provided the connection are taken from data source in weblogic. ??? please help
can i create multiple connections during one transaction and perform commit on them provided
Share
You mean from different datasource?
Of course you can. That’s what JTA are for.
Just make sure that involved datasources’ driver are XA-awared.
Edited
I got what you mean.
The application I developed has such feature. Assume you have some basic flow control or handler structure for your request processing routine, you can always start a new transaction just for the error handling part, commit that new tranasction, and rollback the original one.
With Spring + Declarative transaction control you need to have a transaction declared around the error handling routine, with a REQUIRES_NEW propagation policy