[jboss-user] [EJB 3.0] - Make a default interceptor the inner interceptor

pete.muir@jboss.org do-not-reply at jboss.com
Fri Mar 6 09:26:34 EST 2009


Given

<ejb-jar xmlns="http://java.sun.com/xml/ns/javaee" 
  |          xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" 
  |          xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/ejb-jar_3_0.xsd"
  |          version="3.0">
  |          
  |    <interceptors>
  |      <interceptor>
  |        <interceptor-class>org.jboss.seam.ejb.SeamInterceptor</interceptor-class>
  |      </interceptor>
  |    </interceptors>
  |    
  |    <assembly-descriptor>
  |       <interceptor-binding>
  |          <ejb-name>*</ejb-name>
  |          <interceptor-class>org.jboss.seam.ejb.SeamInterceptor</interceptor-class>
  |       </interceptor-binding>
  |    </assembly-descriptor>
  |    
  | </ejb-jar>

how can I make sure that SeamInterceptor is always the inner most interceptor in the stack? I see that the EJB3 spec allows me specify a total order (if I know the interceptors to order), but I can't see how to ask for an interceptor to be inside unknown interceptors.

So, is there a spec'd way to do this? Or a JBoss way?

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

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



More information about the jboss-user mailing list