3 Replies Latest reply on Jun 1, 2006 9:17 PM by William DeCoste

    ApplicationException in ejb-jar.xml

    J-C jc Apprentice

      I try to specify that an exception is an application exception using ejb-jar.xml. I wrote:

      <?xml version="1.0" encoding="UTF-8"?>
      <ejb-jar>
       <description>Sample</description>
       <display-name>Sample</display-name>
       <application-exception>
       <exception-class>mypackage.OptimisticVerificationException</exception-class>
       <rollback>false</rollback>
       </application-exception>
      </ejb-jar>
      


      Unfortunatelly JBoss embeddable EJB3 rc6 seems to ignore exception definition. Any idea of what's going wrong in my XML ?

      I have try to use annotation, it works fine. Unfortunatelly for some of the exception I can not change source code. I need to define exception as application exception out of the source code.