Yes, you can either declare your own domain or extend one, either in
ejb3-interceptors-aop.xml or in your-application-aop.xml.
Extending is basically like creating a new domain, but gives you all the parent domain
aspects "for free". Typically you will want to include more interceptors and use
the ones from the ejb3 container?
If you want to find the calling class, it isn't supported out of the box, but you may
have some luck with
a) creating caller pointcuts that implement bean interfaces, e.g. something like
...
b) in your caller interceptor putting the caller in a ThreadLocal
c) Modify the client proxies for @Remote interfaces to pick that info up from the TL and
put it into the invocation, so it gets sent to the container. This is done by creating a
new stack in ejb3-interceptors-aop.xml and using the @RemoteBinding annotation. OR for
@Local interfaces, which do not have an interceptor stack, you could still make use of the
TL in your ejb container interceptor
View the original post :
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4000830#...
Reply to the post :
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&a...