I am trying to add an Interceptor to the chain, but without success. Does this 
actually work with EJB3 session beans? Because when I set a break-point in my 
bean in the debugger the stack shows lots of AOP interceptors, but none of the 
interceptors from the container-configuration.
And I don't need to list the session bean in the ejb-jar.xml if I use 
annotations, right?

My jboss.xml is:
<jboss>
  |   <enterprise-beans>
  |     <session>
  |       <ejb-name>MyBean</ejb-name>
  |       <configuration-name>My Stateless SessionBean</configuration-name>
  |     </session>
  |   </enterprise-beans>
  |   <container-configurations>
  |     <container-configuration extends="Standard Stateless SessionBean">
  |       <container-name>My Stateless SessionBean</container-name>
  |       <container-interceptors>
  |         
<interceptor>org.jboss.ejb.plugins.ProxyFactoryFinderInterceptor</interceptor>
  |         
<interceptor>org.jboss.ejb.plugins.CleanShutdownInterceptor</interceptor>
  |         <interceptor>org.jboss.ejb.plugins.SecurityInterceptor</interceptor>
  | <!-- I WANT THIS ONE TO LOAD -->
  |         <interceptor>my.test.Log4JInterceptor</interceptor>
  |         <!-- CMT -->
  |         <interceptor 
transaction="Container">org.jboss.ejb.plugins.TxInterceptorCMT</interceptor>
  |         <interceptor 
transaction="Container">org.jboss.ejb.plugins.CallValidationInterceptor</interceptor>
  |         <interceptor 
transaction="Container">org.jboss.webservice.server.ServiceEndpointInterceptor 
</interceptor>
  |         <interceptor 
transaction="Container">org.jboss.ejb.plugins.StatelessSessionInstanceInterceptor</interceptor>
  |         <!-- BMT -->
  |         <interceptor 
transaction="Bean">org.jboss.ejb.plugins.StatelessSessionInstanceInterceptor</interceptor>
  |         <interceptor 
transaction="Bean">org.jboss.ejb.plugins.TxInterceptorBMT</interceptor>
  |         <interceptor 
transaction="Bean">org.jboss.ejb.plugins.CallValidationInterceptor</interceptor>
  |         <interceptor 
transaction="Bean">org.jboss.webservice.server.ServiceEndpointInterceptor 
</interceptor>
  |         
<interceptor>org.jboss.resource.connectionmanager.CachedConnectionInterceptor</interceptor>
  |       </container-interceptors>
  |     </container-configuration>
  |   </container-configurations>
  | </jboss>

View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3926829#3926829

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3926829


-------------------------------------------------------
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642
_______________________________________________
JBoss-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/jboss-user

Reply via email to