Start line:  
End line:  

Snippet Preview

Snippet HTML Code

Stack Overflow Questions
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE aop PUBLIC
   "-//JBoss//DTD JBOSS AOP 1.0//EN"
   "http://www.jboss.org/aop/dtd/jboss-aop_1_0.dtd">
<aop>

   <interceptor class="org.jboss.jms.server.container.ServerLogInterceptor" scope="PER_VM"/>
   <interceptor class="org.jboss.jms.server.container.CachingInterceptor" scope="PER_VM"/>      
   <aspect class="org.jboss.jms.server.container.SecurityAspect" scope="PER_INSTANCE"/>
   
   <!-- Connection -->
   <bind pointcut="execution(* org.jboss.jms.server.endpoint.advised.ConnectionAdvised->$implementing{org.jboss.jms.delegate.ConnectionEndpoint}(..))">
      <interceptor-ref name="org.jboss.jms.server.container.ServerLogInterceptor"/>
   </bind>   

   <bind pointcut="execution(* org.jboss.jms.server.endpoint.advised.ConnectionAdvised->sendTransaction(..))">
      <advice name="handleSendTransaction" aspect="org.jboss.jms.server.container.SecurityAspect"/>
   </bind>

   <!-- Session -->
   <bind pointcut="execution(* org.jboss.jms.server.endpoint.advised.SessionAdvised->$implementing{org.jboss.jms.delegate.SessionEndpoint}(..))">
      <interceptor-ref name="org.jboss.jms.server.container.ServerLogInterceptor"/>
   </bind>
   <bind pointcut="execution(* org.jboss.jms.server.endpoint.advised.SessionAdvised->createBrowserDelegate(..))">
      <advice name="handleCreateBrowserDelegate" aspect="org.jboss.jms.server.container.SecurityAspect"/>
   </bind>
   <bind pointcut="execution(* org.jboss.jms.server.endpoint.advised.SessionAdvised->createConsumerDelegate(..))">
      <advice name="handleCreateConsumerDelegate" aspect="org.jboss.jms.server.container.SecurityAspect"/>
   </bind>   
   <bind pointcut="execution(* org.jboss.jms.server.endpoint.advised.SessionAdvised->send(..))">
      <advice name="handleSend" aspect="org.jboss.jms.server.container.SecurityAspect"/>
   </bind>
   
   <!-- Consumer -->
   <bind pointcut="execution(* org.jboss.jms.server.endpoint.advised.ConsumerAdvised->$implementing{org.jboss.jms.delegate.ConsumerEndpoint}(..))">
      <interceptor-ref name="org.jboss.jms.server.container.ServerLogInterceptor"/>
   </bind>


   <!-- Browser -->
   <bind pointcut="execution(* org.jboss.jms.server.endpoint.advised.BrowserAdvised->$implementing{org.jboss.jms.delegate.BrowserEndpoint}(..))">
      <interceptor-ref name="org.jboss.jms.server.container.ServerLogInterceptor"/>
   </bind>
   
</aop>
New to GrepCode? Check out our FAQ X