Atomikos Forum |
|
I have a requirement where I need to call a method with transaction propagation level based on the incoming request. Lets say for request 1 to method A, depending on certain criteria, propagation level is set to Required_new. Where as request2 comes for method A, with Required propagation level (propagation level will be decided run time). So need an ability to set different propagation levels on a single method at runtime based on some criteria which depends on the incoming request.We are using spring's declarative transaction management with annotation (@transaction (....)). What are the ways to do this.
Please let me know if Atomikos has a solution to this. Thanks,
I would say this is nothing atomikos should do - it should be done by the one, who does initiate the tx, so spring.
I don't know how your criteria can be accessed - but i guess i would use this solution: Take your own Annotation, based on the Transaction annotation code base and modify the code according your needs. |