Ticket #280 (closed Enhancement: fixed)
Core: request-wide transactions by annotation
Reported by: | jri | Owned by: | jri |
---|---|---|---|
Priority: | Minor | Milestone: | |
Component: | DeepaMehta Standard Distribution | Version: | 4.0.11 |
Keywords: | Cc: | dgf | |
Complexity: | 5 | Area: | Application Framework / API |
Module: | deepamehta-core |
Description
Developers should be able to create transactions by method annotation.
The annotation could be named e.g. @Transaction or @Transactional
Advantages would be
a) no nested transactions would be created (currently all core service methods create their own transaction)
b) plugin developers would be freed from manually creating transactions for their resource/service methods, e.g.:
@GET @Path("/search") @Transaction public Topic searchTopics(...
Thanks, dgf, for suggesting that approach.
Change History
Note: See
TracTickets for help on using
tickets.