JBoss Community

how to catch cmp-transaction errors

created by Reinhard Eder in EJB3 - View the full discussion

I would like to provide to partner systems no exceptions, everything should be cought and returned an standardized info message.

 

So I also came around container managed-transactions. They cannot be cought by a standard interceptor like



@aroundInvoke

 

 

public void catchException(InvocationContext ctx)

{

     try

     {

           return ctx.proceed();

     }

    catch (Exception ex)

    {

         ... do exception handling

    }

}





So how to catch them ?

Reply to this message by going to Community

Start a new discussion in EJB3 at Community