Ah ok, I did not get the whole context. AFAIR, it's the desired behavior. If the ApplicationException is not in the module it's ignored which is relevant as per the spec. If you want to use an ApplicationException from another module, you have to declare it in the current module.
JLouis 2013/3/13 cchet <[email protected]> > openejb-demo_does_not_find_application_exception_in_different_module.zip > < > http://openejb.979440.n4.nabble.com/file/n4661484/openejb-demo_does_not_find_application_exception_in_different_module.zip > > > > Here i send you the demo maven projects which shows this issue. > *OpenEjbServiceAPI:* > Contains the ServiceAPI and the exceptions > > *OpenEjbServiceImpl:* > Contains the service impl and the tests. > > If the supertype excption > 'com.clevercure.demo.openejb.service.exception.ApplicationException' > (annotated with @ApplicationException) is added to the > OpenEjbServiceImpl#META-INF/ejb-jar.xml (application-exception) then the > test will work, otherwise the thrown application exception is wrapped into > an EJBException. > > > > -- > View this message in context: > http://openejb.979440.n4.nabble.com/OpenEjb-cannot-find-ApplicationExcption-in-different-module-API-module-tp4661442p4661484.html > Sent from the OpenEJB User mailing list archive at Nabble.com. > -- Jean-Louis
