That's weird, I thought I had replied to this.... It should really be in the EJB 3 users forum, but here you are
You have two choices a) Use the EJB 3 @Interceptors - these are performed after all the other interceptors, so if you want to do stuff between authentication and authorization I guess these are no good for you. 2) Modify the main interceptors. You can do this for your deployment only, by deploying an -aop.xml file in the root of your ejb jar. Here's an example from the "aspectdomain" test from the ejb 3 testsuite | @Stateful(name="Stateful") | @AspectDomain("Test Aspect Domain") | public class StatefulBean{ | ... | } | | [EMAIL PROTECTED] ~/cvs/jboss-head/ejb3 | $ unzip -l output/test-lib/aspectdomain.jar | Archive: output/test-lib/aspectdomain.jar | Length Date Time Name | -------- ---- ---- ---- | 0 06-12-06 08:08 META-INF/ | 106 06-12-06 08:08 META-INF/MANIFEST.MF | 0 06-12-06 08:08 org/ | 0 06-12-06 08:08 org/jboss/ | 0 06-12-06 08:08 org/jboss/ejb3/ | 0 06-12-06 08:08 org/jboss/ejb3/test/ | 0 06-12-06 08:08 org/jboss/ejb3/test/aspectdomain/ | 1441 06-12-06 08:08 org/jboss/ejb3/test/aspectdomain/DeploymentDescriptorStatefulBean.class | 216 06-12-06 08:08 org/jboss/ejb3/test/aspectdomain/Stateful.class | 1433 06-12-06 08:08 org/jboss/ejb3/test/aspectdomain/StatefulBean.class | 1015 06-12-06 08:08 org/jboss/ejb3/test/aspectdomain/TestInterceptor.class | 525 04-26-06 12:10 META-INF/jboss.xml | 462 02-20-06 12:13 aspectdomain-ejb3-interceptors-aop.xml | | | View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3950467#3950467 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3950467 _______________________________________________ JBoss-user mailing list JBoss-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jboss-user