Correct, if you deploy an EJB 3 bean it constructs an EJB container without weaving. The
configuration for these containers is in ejb3-interceptors-aop.xml. Calls to the ejb are
done via the container and go through the stack of interceptors before hitting the ejb.
For example, if you deploy a stateless session bean it will use the
| <domain name="Stateless Bean" extends="Intercepted Bean"
inheritBindings="true">
|
which uses pointcuts to apply the different interceptors that make up the container. e.g.
the
| <interceptor-ref
name="org.jboss.ejb3.tx.CMTTxInterceptorFactory"/>
|
looks for the TransactionAttribute annotations on the different methods and applies the
correct transactions.
You can either add to these domains in ejb3-interceptors-aop.xml in which case it will
apply to all beans matching your pointcuts, or you can create a custom domain with more
bindings and choose to apply it to a particular bean using the @AspectDomain annotation
http://www.jboss.org/ejb3/docs/tutorial/configuration/configuration.html
explains more about this. You can get there by going to
http://www.jboss.org/community/wiki/EJB3 and then 'Tutorial' and then 'Custom
configuration'
View the original post :
http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4252002#...
Reply to the post :
http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&a...