Is it worth to disable transaction (with e.g.
@TransactionAttribute(TransactionAttributeType.NEVER)) on an EJB method for optimization purposes?
Such micro-optimizations increase the complexity, but what is the actual benefit?
In this following screencast a Servlet was deployed with and without involving a UserTransaction and the performance difference was measured with JMeter.
Thanks for watching!
See you at Java EE Workshops at MUC Airport!
Java EE 7 Workshops: Bootstrap, Effective, Architectures, June, 13th-15th, Munich's Airport
On demand workshops: Java EE 7 Bootstrap, Effective Java EE 7, Java EE 7 Testing and NEW: Java EE 7 Microservices are available for streaming