As far as I can understand how declarative transaction works, I think it works best when the tx is nicely embedded within a method boundary.
Imagine a case where there is an extraordinarily long session involving multiple http requests (user think time in between). This can be done programmatically using Filters. basically, first servlet starts a session. each intermediate servlet processing will be looking for a flag which indicates the end of the unit-of-work. last one closes the session.
Is declarative transaction even applicable in this case?


Reply With Quote
