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.client.container.ClosedInterceptor" scope="PER_INSTANCE"/>                  	
   <interceptor class="org.jboss.jms.client.container.FailoverValveInterceptor" scope="PER_INSTANCE"/>

   <aspect class="org.jboss.jms.client.container.StateCreationAspect" scope="PER_VM"/>
   <aspect class="org.jboss.jms.client.container.ConsumerAspect" scope="PER_VM"/>
   <aspect class="org.jboss.jms.client.container.ProducerAspect" scope="PER_VM"/>
   <aspect class="org.jboss.jms.client.container.SessionAspect" scope="PER_VM"/>
   <aspect class="org.jboss.jms.client.container.BrowserAspect" scope="PER_INSTANCE"/>
   <aspect class="org.jboss.jms.client.container.ConnectionAspect" scope="PER_INSTANCE"/>
   <aspect class="org.jboss.jms.client.container.ClusteringAspect" scope="PER_INSTANCE"/>
 
   <!--
       Clustered ConnectionFactory Stack
   -->

   <bind pointcut="execution(* org.jboss.jms.client.delegate.ClientClusteredConnectionFactoryDelegate->createConnectionDelegate(..))">
      <advice name="handleCreateConnectionDelegate" aspect="org.jboss.jms.client.container.ClusteringAspect"/>
   </bind>

   <!--
        (Non-clustered) ConnectionFactory Stack
   -->

   <bind pointcut="execution(* org.jboss.jms.client.delegate.ClientConnectionFactoryDelegate->createConnectionDelegate(..))">
      <advice name="handleCreateConnectionDelegate" aspect="org.jboss.jms.client.container.StateCreationAspect"/>
   </bind>

   <!--
        Connection Stack
   -->

   <bind pointcut="execution(* org.jboss.jms.client.delegate.ClientConnectionDelegate->$implementing{org.jboss.jms.delegate.ConnectionDelegate}(..))">
      <interceptor-ref name="org.jboss.jms.client.container.ClosedInterceptor"/>                     
   </bind>
   <bind pointcut="execution(* org.jboss.jms.client.delegate.ClientConnectionDelegate->$implementing{org.jboss.jms.delegate.ConnectionEndpoint}(..))">
      <interceptor-ref name="org.jboss.jms.client.container.FailoverValveInterceptor"/>         
   </bind>      
   <bind pointcut="execution(* org.jboss.jms.client.delegate.ClientConnectionDelegate->start())">
       <advice name="handleStart" aspect="org.jboss.jms.client.container.ConnectionAspect"/>
   </bind>
   <bind pointcut="execution(* org.jboss.jms.client.delegate.ClientConnectionDelegate->stop())">
      <advice name="handleStop" aspect="org.jboss.jms.client.container.ConnectionAspect"/>
   </bind>
   <bind pointcut="execution(* org.jboss.jms.client.delegate.ClientConnectionDelegate->createConnectionConsumer(..))">
      <advice name="handleCreateConnectionConsumer" aspect="org.jboss.jms.client.container.SessionAspect"/>
   </bind>
   <bind pointcut="execution(* org.jboss.jms.client.delegate.ClientConnectionDelegate->getClientID())">
      <advice name="handleGetClientID" aspect="org.jboss.jms.client.container.ConnectionAspect"/>
   </bind>
   <bind pointcut="execution(* org.jboss.jms.client.delegate.ClientConnectionDelegate->setClientID(..))">
      <advice name="handleSetClientID" aspect="org.jboss.jms.client.container.ConnectionAspect"/>
   </bind>
   <bind pointcut="execution(* org.jboss.jms.client.delegate.ClientConnectionDelegate->getExceptionListener())">
      <advice name="handleGetExceptionListener" aspect="org.jboss.jms.client.container.ConnectionAspect"/>
   </bind>
   <bind pointcut="execution(* org.jboss.jms.client.delegate.ClientConnectionDelegate->setExceptionListener(..))">
      <advice name="handleSetExceptionListener" aspect="org.jboss.jms.client.container.ConnectionAspect"/>
   </bind>
   <bind pointcut="execution(* org.jboss.jms.client.delegate.ClientConnectionDelegate->getConnectionMetaData())">
      <advice name="handleGetConnectionMetaData" aspect="org.jboss.jms.client.container.ConnectionAspect"/>
   </bind>
   <bind pointcut="execution(* org.jboss.jms.client.delegate.ClientConnectionDelegate->createSessionDelegate(..))">
      <advice name="handleCreateSessionDelegate" aspect="org.jboss.jms.client.container.ConnectionAspect"/>
   </bind>         
   <bind pointcut="execution(* org.jboss.jms.client.delegate.ClientConnectionDelegate->close())">
      <advice name="handleClose" aspect="org.jboss.jms.client.container.ConnectionAspect"/>
   </bind>
   <bind pointcut="execution(* org.jboss.jms.client.delegate.ClientConnectionDelegate->registerFailoverListener(..))">
      <advice name="handleRegisterFailoverListener" aspect="org.jboss.jms.client.container.ConnectionAspect"/>
   </bind>
   <bind pointcut="execution(* org.jboss.jms.client.delegate.ClientConnectionDelegate->unregisterFailoverListener(..))">
      <advice name="handleUnregisterFailoverListener" aspect="org.jboss.jms.client.container.ConnectionAspect"/>
   </bind>
   <bind pointcut="execution(* org.jboss.jms.client.delegate.ClientConnectionDelegate->createSessionDelegate(..))">
      <advice name="handleCreateSessionDelegate" aspect="org.jboss.jms.client.container.StateCreationAspect"/>
   </bind>

   <!--
        Session Stack
   -->

   <bind pointcut="execution(* org.jboss.jms.client.delegate.ClientSessionDelegate->$implementing{org.jboss.jms.delegate.SessionDelegate}(..))">
      <interceptor-ref name="org.jboss.jms.client.container.ClosedInterceptor"/>                   
   </bind>
   <bind pointcut="execution(* org.jboss.jms.client.delegate.ClientSessionDelegate->$implementing{org.jboss.jms.delegate.SessionEndpoint}(..))">
      <interceptor-ref name="org.jboss.jms.client.container.FailoverValveInterceptor"/>         
   </bind> 
   <bind pointcut="execution(* org.jboss.jms.client.delegate.ClientSessionDelegate->createMessage())">
      <advice name="handleCreateMessage" aspect="org.jboss.jms.client.container.SessionAspect"/>
   </bind>
   <bind pointcut="execution(* org.jboss.jms.client.delegate.ClientSessionDelegate->createBytesMessage())">
      <advice name="handleCreateBytesMessage" aspect="org.jboss.jms.client.container.SessionAspect"/>
   </bind>
   <bind pointcut="execution(* org.jboss.jms.client.delegate.ClientSessionDelegate->createMapMessage())">
      <advice name="handleCreateMapMessage" aspect="org.jboss.jms.client.container.SessionAspect"/>
   </bind>
   <bind pointcut="execution(* org.jboss.jms.client.delegate.ClientSessionDelegate->createObjectMessage(..))">
      <advice name="handleCreateObjectMessage" aspect="org.jboss.jms.client.container.SessionAspect"/>
   </bind>
   <bind pointcut="execution(* org.jboss.jms.client.delegate.ClientSessionDelegate->createStreamMessage())">
      <advice name="handleCreateStreamMessage" aspect="org.jboss.jms.client.container.SessionAspect"/>
   </bind>
   <bind pointcut="execution(* org.jboss.jms.client.delegate.ClientSessionDelegate->createTextMessage(..))">
      <advice name="handleCreateTextMessage" aspect="org.jboss.jms.client.container.SessionAspect"/>
   </bind>
   <bind pointcut="execution(* org.jboss.jms.client.delegate.ClientSessionDelegate->setMessageListener(..))">
      <advice name="handleSetMessageListener" aspect="org.jboss.jms.client.container.SessionAspect"/>
   </bind>
   <bind pointcut="execution(* org.jboss.jms.client.delegate.ClientSessionDelegate->getMessageListener())">
      <advice name="handleGetMessageListener" aspect="org.jboss.jms.client.container.SessionAspect"/>
   </bind>
   <bind pointcut="execution(* org.jboss.jms.client.delegate.ClientSessionDelegate->addAsfMessage(..))">
      <advice name="handleAddAsfMessage" aspect="org.jboss.jms.client.container.SessionAspect"/>
   </bind>   
   <bind pointcut="execution(* org.jboss.jms.client.delegate.ClientSessionDelegate->run())">
      <advice name="handleRun" aspect="org.jboss.jms.client.container.SessionAspect"/>
   </bind>      
   <bind pointcut="execution(* org.jboss.jms.client.delegate.ClientSessionDelegate->getAcknowledgeMode())">
      <advice name="handleGetAcknowledgeMode" aspect="org.jboss.jms.client.container.SessionAspect"/>
   </bind>
   <bind pointcut="execution(* org.jboss.jms.client.delegate.ClientSessionDelegate->getTransacted())">
      <advice name="handleGetTransacted" aspect="org.jboss.jms.client.container.SessionAspect"/>
   </bind>
   <bind pointcut="execution(* org.jboss.jms.client.delegate.ClientSessionDelegate->getXAResource())">
      <advice name="handleGetXAResource" aspect="org.jboss.jms.client.container.SessionAspect"/>
   </bind>
   <bind pointcut="execution(* org.jboss.jms.client.delegate.ClientSessionDelegate->preDeliver(..))">
      <advice name="handlePreDeliver" aspect="org.jboss.jms.client.container.SessionAspect"/>
   </bind>
   <bind pointcut="execution(* org.jboss.jms.client.delegate.ClientSessionDelegate->postDeliver(..))">
      <advice name="handlePostDeliver" aspect="org.jboss.jms.client.container.SessionAspect"/>
   </bind>
   <bind pointcut="execution(* org.jboss.jms.client.delegate.ClientSessionDelegate->acknowledgeAll(..))">
      <advice name="handleAcknowledgeAll" aspect="org.jboss.jms.client.container.SessionAspect"/>
   </bind>
   <bind pointcut="execution(* org.jboss.jms.client.delegate.ClientSessionDelegate->recover())">
      <advice name="handleRecover" aspect="org.jboss.jms.client.container.SessionAspect"/>
   </bind>   
   <bind pointcut="execution(* org.jboss.jms.client.delegate.ClientSessionDelegate->redeliver(..))">
      <advice name="handleRedeliver" aspect="org.jboss.jms.client.container.SessionAspect"/>
   </bind>
   <bind pointcut="execution(* org.jboss.jms.client.delegate.ClientSessionDelegate->closing(..))">
      <advice name="handleClosing" aspect="org.jboss.jms.client.container.SessionAspect"/>         
   </bind>
   <bind pointcut="execution(* org.jboss.jms.client.delegate.ClientSessionDelegate->close())">
      <advice name="handleClose" aspect="org.jboss.jms.client.container.SessionAspect"/>         
   </bind>   
   <bind pointcut="execution(* org.jboss.jms.client.delegate.ClientSessionDelegate->commit())">
      <advice name="handleCommit" aspect="org.jboss.jms.client.container.SessionAspect"/>
   </bind>
   <bind pointcut="execution(* org.jboss.jms.client.delegate.ClientSessionDelegate->rollback())">
      <advice name="handleRollback" aspect="org.jboss.jms.client.container.SessionAspect"/>
   </bind>
   <bind pointcut="execution(* org.jboss.jms.client.delegate.ClientSessionDelegate->send(..))">
      <advice name="handleSend" aspect="org.jboss.jms.client.container.SessionAspect"/>
   </bind>
   <bind pointcut="execution(* org.jboss.jms.client.delegate.ClientSessionDelegate->createConsumerDelegate(..))">
      <advice name="handleCreateConsumerDelegate" aspect="org.jboss.jms.client.container.ConsumerAspect"/>         
   </bind>   
   <bind pointcut="execution(* org.jboss.jms.client.delegate.ClientSessionDelegate->createConsumerDelegate(..))">
      <advice name="handleCreateConsumerDelegate" aspect="org.jboss.jms.client.container.StateCreationAspect"/>
   </bind>
   <bind pointcut="execution(* org.jboss.jms.client.delegate.ClientSessionDelegate->createProducerDelegate(..))">
      <advice name="handleCreateProducerDelegate" aspect="org.jboss.jms.client.container.StateCreationAspect"/>
   </bind>
   <bind pointcut="execution(* org.jboss.jms.client.delegate.ClientSessionDelegate->createBrowserDelegate(..))">
      <advice name="handleCreateBrowserDelegate" aspect="org.jboss.jms.client.container.StateCreationAspect"/>
   </bind>
   
   <!--
        Consumer Stack
   -->

   <bind pointcut="execution(* org.jboss.jms.client.delegate.ClientConsumerDelegate->$implementing{org.jboss.jms.delegate.ConsumerDelegate}(..))">
      <interceptor-ref name="org.jboss.jms.client.container.ClosedInterceptor"/>                
   </bind>  
   <bind pointcut="execution(* org.jboss.jms.client.delegate.ClientConsumerDelegate->$implementing{org.jboss.jms.delegate.ConsumerEndpoint}(..))">
      <interceptor-ref name="org.jboss.jms.client.container.FailoverValveInterceptor"/>         
   </bind>         
   <bind pointcut="execution(* org.jboss.jms.client.delegate.ClientConsumerDelegate->getMessageListener())">
      <advice name="handleGetMessageListener" aspect="org.jboss.jms.client.container.ConsumerAspect"/>         
   </bind>
   <bind pointcut="execution(* org.jboss.jms.client.delegate.ClientConsumerDelegate->setMessageListener(..))">
      <advice name="handleSetMessageListener" aspect="org.jboss.jms.client.container.ConsumerAspect"/>         
   </bind>   
   <bind pointcut="execution(* org.jboss.jms.client.delegate.ClientConsumerDelegate->receive(..))">
      <advice name="handleReceive" aspect="org.jboss.jms.client.container.ConsumerAspect"/>         
   </bind>  
   <bind pointcut="execution(* org.jboss.jms.client.delegate.ClientConsumerDelegate->receiveNoWait())">
      <advice name="handleReceiveNoWait" aspect="org.jboss.jms.client.container.ConsumerAspect"/>         
   </bind>    
   <bind pointcut="execution(* org.jboss.jms.client.delegate.ClientConsumerDelegate->closing(..))">
      <advice name="handleClosing" aspect="org.jboss.jms.client.container.ConsumerAspect"/>         
   </bind>
   <bind pointcut="execution(* org.jboss.jms.client.delegate.ClientConsumerDelegate->getDestination())">
      <advice name="handleGetDestination" aspect="org.jboss.jms.client.container.ConsumerAspect"/>         
   </bind>
   <bind pointcut="execution(* org.jboss.jms.client.delegate.ClientConsumerDelegate->getNoLocal())">
      <advice name="handleGetNoLocal" aspect="org.jboss.jms.client.container.ConsumerAspect"/>         
   </bind>
   <bind pointcut="execution(* org.jboss.jms.client.delegate.ClientConsumerDelegate->getMessageSelector())">
      <advice name="handleGetMessageSelector" aspect="org.jboss.jms.client.container.ConsumerAspect"/>         
   </bind>      

   
   <!--
        Producer Stack
   -->   
   <bind pointcut="execution(* org.jboss.jms.client.delegate.ClientProducerDelegate->$implementing{org.jboss.jms.delegate.ProducerDelegate}(..))">   
      <interceptor-ref name="org.jboss.jms.client.container.ClosedInterceptor"/>        
   </bind>        
   <bind pointcut="execution(* org.jboss.jms.client.delegate.ClientProducerDelegate->getDeliveryMode())">
      <advice name="handleGetDeliveryMode" aspect="org.jboss.jms.client.container.ProducerAspect"/>         
   </bind>     
   <bind pointcut="execution(* org.jboss.jms.client.delegate.ClientProducerDelegate->getDestination())">
      <advice name="handleGetDestination" aspect="org.jboss.jms.client.container.ProducerAspect"/>         
   </bind>   
   <bind pointcut="execution(* org.jboss.jms.client.delegate.ClientProducerDelegate->getDisableMessageID())">
      <advice name="handleGetDisableMessageID" aspect="org.jboss.jms.client.container.ProducerAspect"/>         
   </bind>   
   <bind pointcut="execution(* org.jboss.jms.client.delegate.ClientProducerDelegate->getDisableMessageTimestamp())">
      <advice name="handleGetDisableMessageTimestamp" aspect="org.jboss.jms.client.container.ProducerAspect"/>         
   </bind>   
   <bind pointcut="execution(* org.jboss.jms.client.delegate.ClientProducerDelegate->getPriority())">
      <advice name="handleGetPriority" aspect="org.jboss.jms.client.container.ProducerAspect"/>         
   </bind>   
   <bind pointcut="execution(* org.jboss.jms.client.delegate.ClientProducerDelegate->getTimeToLive())">
      <advice name="handleGetTimeToLive" aspect="org.jboss.jms.client.container.ProducerAspect"/>         
   </bind>   
   <bind pointcut="execution(* org.jboss.jms.client.delegate.ClientProducerDelegate->send(..))">
      <advice name="handleSend" aspect="org.jboss.jms.client.container.ProducerAspect"/>         
   </bind>   
   <bind pointcut="execution(* org.jboss.jms.client.delegate.ClientProducerDelegate->setDeliveryMode(..))">
      <advice name="handleSetDeliveryMode" aspect="org.jboss.jms.client.container.ProducerAspect"/>         
   </bind>   
   <bind pointcut="execution(* org.jboss.jms.client.delegate.ClientProducerDelegate->setDestination(..))">
      <advice name="handleSetDestination" aspect="org.jboss.jms.client.container.ProducerAspect"/>         
   </bind>
   <bind pointcut="execution(* org.jboss.jms.client.delegate.ClientProducerDelegate->setDisableMessageID(..))">
      <advice name="handleSetDisableMessageID" aspect="org.jboss.jms.client.container.ProducerAspect"/>         
   </bind>    
   <bind pointcut="execution(* org.jboss.jms.client.delegate.ClientProducerDelegate->setDisableMessageTimestamp(..))">
      <advice name="handleSetDisableMessageTimestamp" aspect="org.jboss.jms.client.container.ProducerAspect"/>         
   </bind>   
   <bind pointcut="execution(* org.jboss.jms.client.delegate.ClientProducerDelegate->setPriority(..))">
      <advice name="handleSetPriority" aspect="org.jboss.jms.client.container.ProducerAspect"/>         
   </bind>      
   <bind pointcut="execution(* org.jboss.jms.client.delegate.ClientProducerDelegate->setTimeToLive(..))">
      <advice name="handleSetTimeToLive" aspect="org.jboss.jms.client.container.ProducerAspect"/>         
   </bind> 
   <bind pointcut="execution(* org.jboss.jms.client.delegate.ClientProducerDelegate->closing(..))">
      <advice name="handleClosing" aspect="org.jboss.jms.client.container.ProducerAspect"/>
   </bind>
   <bind pointcut="execution(* org.jboss.jms.client.delegate.ClientProducerDelegate->close())">
      <advice name="handleClose" aspect="org.jboss.jms.client.container.ProducerAspect"/>
   </bind>    
   <!-- Producers never go to the server - so no need for a failover interceptor -->   

   <!--
        Browser Stack
   -->
   <bind pointcut="execution(* org.jboss.jms.client.delegate.ClientBrowserDelegate->$implementing{org.jboss.jms.delegate.BrowserDelegate}(..))">
      <interceptor-ref name="org.jboss.jms.client.container.ClosedInterceptor"/>      
   </bind>   
   <bind pointcut="execution(* org.jboss.jms.client.delegate.ClientBrowserDelegate->$implementing{org.jboss.jms.delegate.BrowserEndpoint}(..))">
      <interceptor-ref name="org.jboss.jms.client.container.FailoverValveInterceptor"/>         
   </bind>      
   <bind pointcut="execution(* org.jboss.jms.client.delegate.ClientBrowserDelegate->nextMessage())">
      <advice name="handleNextMessage" aspect="org.jboss.jms.client.container.BrowserAspect"/>
   </bind>
   <bind pointcut="execution(* org.jboss.jms.client.delegate.ClientBrowserDelegate->hasNextMessage())">
      <advice name="handleHasNextMessage" aspect="org.jboss.jms.client.container.BrowserAspect"/>
   </bind>         
</aop>
New to GrepCode? Check out our FAQ X