JBoss Community

Re: Why application exceptions are wrapped in EJBException on AS 6.1?

created by Carlo de Wolf in EJB3 - View the full discussion

Nice work.

 

You may want to use the ExtendedAdvisor:

if (ExtendedAdvisorHelper.getExtendedAdvisor(advisor).isAnnotationPresent(ex, ApplicationException.class))
{
   throw ex;
}

 

The ExtendedAdvisor also takes descriptor metadata into account.

Reply to this message by going to Community

Start a new discussion in EJB3 at Community