I'm using AOP to intercept a SLSB method call in order to perform a security check prior to allowing a user access to the method. As part of this process I need to write a log entry which is done via Hibernate. The issue I have is that the security check throws an unchecked AccessControlException which in turn causes a rollback of the hibernate transaction. I have no control over whether the SLSB method has CMT or BMT so I'm not sure as to the best solution. I thought of using JMS which I assume would resolve the problem, but I would prefer a simpler solution if one exists.
Thanks,
John.