I am adding a RESTful API to an existing application (JBoss 4, EJB 2, adding RESTEasy). The application currently has a beans session with container-managed transactions. To get started, I invoke remote interfaces on Enterprise Beans. The use of EJB is phasing out, so new features will be added without writing new methods in Beans.
Does JAX-RS or JBoss 4 support transactional support in resource methods? Or do I need to write my own transaction code in each of the resource methods?
JAX-RS has PreProcessInterceptors and PostProcessInterceptors, but doesn't seem to have an interceptor that terminates the call.
source
share