users@glassfish.java.net

Re: _at_ApplicationException-Annotation not found by container

From: <glassfish_at_javadesktop.org>
Date: Fri, 15 Oct 2010 04:27:27 PDT

Yes, the two ejb jars are packaged inside an ear. in the attachment, you can find the sources (from 4 eclipse projects) that represent that structure.
Two ejb jars, EjbJar contains BadApplicationException, EjbJar2 contains GoodApplicationException. Both are annotated with @ApplicationException.

SomeWebBean in EjbJar2 calls getGoodMessage or getBadMessage which throw GoodApplicationException or BadApplicationException respectively. If the ejb-jar.xml is not present only GoodApplicationException causes a rollback, if it is present, both cause the rollback.

Thanks for your help
[Message sent by forum member 'shine4u']

http://forums.java.net/jive/thread.jspa?messageID=485273