Ticket #1086 (closed defect: fixed)
TransactionInterceptor should analyse @Transactional annotation instead of requiring TransactionAware interface.
| Reported by: | dragisak | Owned by: | dragisak |
|---|---|---|---|
| Priority: | unassigned | Milestone: | |
| Component: | ambra | Version: | 0.9.1-SNAPSHOT |
| Keywords: | Cc: |
Description (last modified by amit) (diff)
It would be better for TransactionInterceptor to read the @Transactional annotations instead of using a marker interface, both because annotations are more powerful (including having parameters), because marker interfaces were a crutch before annotations were added to java, and because this allows us to reuse the @Transactional annotations already there everywhere in a transparent manner. It also allows different transactional requirements for different methods in an Action.
In this case this opens up the possibility of using the transaction-interceptor for everything, as that way we'd get the (more desireable, IMO) behaviour of a single transaction spawning both the request and response processing (though really no db operations should be performed during response processing).
