How to start a new transaction inside a single EJB

When invoking a method of an EJB we get features like transactions, security or monitoring for free. However, this only works when the method call is intercepted by the container. So, method calls within the same bean do not enjoy this benefits. There is a nice hack to solve this problem.
Paulin Nguimdoh
Paulin Nguimdoh
comment icon 3 05.04.2016