jbossas/jboss-as — pull request #3819 by jaikiran (2013-01-08 13:50:11+00:00)
Title: [master only] Add support for AS7-5897

The commits here introduce support for the "container-interceptor" feature requested in https://issues.jboss.org/browse/AS7-5897.

User applications can now specify container-interceptors in their jboss-ejb3.xml and those interceptors will then run before some of the JBoss specific server side interceptors. This will allow the user application specific container-interceptors to pass along necessary information to the JBoss specific server interceptors during the invocation. These container-interceptors can even short-circuit the invocation if they want too.

The container-interceptors have been supported keeping in mind that we don't want to introduce any dependency on any JBoss specific libraries so that the ability to support this feature, in future becomes easier from a user point of view. These container-interceptors are merely Java EE interceptors and can be specified in the jboss-ejb3.xml as shown in the testcase here https://github.com/jaikiran/jboss-as/blob/a5aa71aa354e3fbcbb0ba19f49b16f10854f5619/testsuite/integration/basic/src/test/java/org/jboss/as/test/integration/ejb/container/interceptor/jboss-ejb3.xml