This content has been marked as final.
Show 1 reply
-
1. Re: 3 Transactions per action on stateless bean (LifecycleCMTTxInterceptor vs. CMTTxInterceptor)
tomekadamski Jul 29, 2016 1:00 PM (in response to enda)Hi Tomas,
LifecycleCMTTxInterceptor is executed before PostConstruct/PreDestroy method invocation. CMTTxInterceptor is executed around your business interface method. Please note that according to EJB 3.2 specification lifecycle methods of stateless session bean have "unspecified transaction context" and it is up to application server provider to decide in what transaction context such method will be executed. Wildfly wraps each stateless lifecycle bean invocation in the new transaction hence your analysis result.
For more details please refer to point 8.6.7 of EJB 3.2 specification.
Regards,
Tomek