Version 2

     

    <?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.ExceptionInterceptor" scope="PER_VM"></interceptor>
       <interceptor class="org.jboss.jms.client.container.LogInterceptor" scope="PER_VM"></interceptor>
       <interceptor class="org.jboss.jms.client.container.ClosedInterceptor" scope="PER_INSTANCE"></interceptor>                     
       <interceptor class="org.jboss.jms.client.container.ConcurrencyInterceptor" scope="PER_INSTANCE"></interceptor>
    
       <aspect class="org.jboss.jms.client.container.StateCreationAspect" scope="PER_VM"></aspect>
       <aspect class="org.jboss.jms.client.container.ReceiverAspect" scope="PER_VM"></aspect>
       <aspect class="org.jboss.jms.client.container.ConsumerAspect" scope="PER_VM"></aspect>
       <aspect class="org.jboss.jms.client.container.ProducerAspect" scope="PER_VM"></aspect>
       <aspect class="org.jboss.jms.client.container.SessionAspect" scope="PER_VM"></aspect>
       <aspect class="org.jboss.jms.client.container.TransactionAspect" scope="PER_VM"></aspect>
       <aspect class="org.jboss.jms.client.container.AsfAspect" scope="PER_INSTANCE"></aspect>
       <aspect class="org.jboss.jms.client.container.BrowserAspect" scope="PER_INSTANCE"></aspect>
       <aspect class="org.jboss.jms.client.container.ConnectionAspect" scope="PER_INSTANCE"></aspect>
       <aspect class="org.jboss.jms.client.container.FactoryAspect" scope="PER_INSTANCE"></aspect>
    
       <!-- ConnectionFactory Stack-->       
       <bind pointcut="execution(* org.jboss.jms.client.delegate.ClientConnectionFactoryDelegate->$implementing{org.jboss.jms.delegate.ConnectionFactoryDelegate}(..))">
          <interceptor-ref name="org.jboss.jms.client.container.LogInterceptor"></interceptor-ref>
          <interceptor-ref name="org.jboss.jms.client.container.ExceptionInterceptor"></interceptor-ref>
       </bind>  
       <bind pointcut="execution(* org.jboss.jms.client.delegate.ClientConnectionFactoryDelegate->createConnectionDelegate(..))">
          <advice name="handleCreateConnectionDelegate" aspect="org.jboss.jms.client.container.StateCreationAspect"></advice>
       </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.LogInterceptor"></interceptor-ref>
          <interceptor-ref name="org.jboss.jms.client.container.ExceptionInterceptor"></interceptor-ref>     
          <interceptor-ref name="org.jboss.jms.client.container.ClosedInterceptor"></interceptor-ref>              
       </bind> 
       <bind pointcut="execution(* org.jboss.jms.client.delegate.ClientConnectionDelegate->createConnectionConsumer(..))">
          <advice name="handleCreateConnectionConsumer" aspect="org.jboss.jms.client.container.AsfAspect"></advice>
       </bind>
       <bind pointcut="execution(* org.jboss.jms.client.delegate.ClientConnectionDelegate->getClientID())">
          <advice name="handleGetClientID" aspect="org.jboss.jms.client.container.ConnectionAspect"></advice>
       </bind>
       <bind pointcut="execution(* org.jboss.jms.client.delegate.ClientConnectionDelegate->setClientID(..))">
          <advice name="handleSetClientID" aspect="org.jboss.jms.client.container.ConnectionAspect"></advice>
       </bind>
       <bind pointcut="execution(* org.jboss.jms.client.delegate.ClientConnectionDelegate->getExceptionListener())">
          <advice name="handleGetExceptionListener" aspect="org.jboss.jms.client.container.ConnectionAspect"></advice>
       </bind>
       <bind pointcut="execution(* org.jboss.jms.client.delegate.ClientConnectionDelegate->setExceptionListener(..))">
          <advice name="handleSetExceptionListener" aspect="org.jboss.jms.client.container.ConnectionAspect"></advice>
       </bind>
       <bind pointcut="execution(* org.jboss.jms.client.delegate.ClientConnectionDelegate->getConnectionMetaData())">
          <advice name="handleGetConnectionMetaData" aspect="org.jboss.jms.client.container.ConnectionAspect"></advice>
       </bind>
       <bind pointcut="execution(* org.jboss.jms.client.delegate.ClientConnectionDelegate->createSessionDelegate(..))">
          <advice name="handleCreateSessionDelegate" aspect="org.jboss.jms.client.container.ConnectionAspect"></advice>
       </bind>     
       <bind pointcut="execution(* org.jboss.jms.client.delegate.ClientConnectionDelegate->createSessionDelegate(..))">
          <advice name="handleCreateSessionDelegate" aspect="org.jboss.jms.client.container.StateCreationAspect"></advice>
       </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.LogInterceptor"></interceptor-ref>
          <interceptor-ref name="org.jboss.jms.client.container.ExceptionInterceptor"></interceptor-ref>     
          <interceptor-ref name="org.jboss.jms.client.container.ClosedInterceptor"></interceptor-ref>      
       </bind>
       <bind pointcut="execution(* org.jboss.jms.client.delegate.ClientSessionDelegate->createMessage())">
          <advice name="handleCreateMessage" aspect="org.jboss.jms.client.container.FactoryAspect"></advice>
       </bind>
       <bind pointcut="execution(* org.jboss.jms.client.delegate.ClientSessionDelegate->createBytesMessage())">
          <advice name="handleCreateBytesMessage" aspect="org.jboss.jms.client.container.FactoryAspect"></advice>
       </bind>
       <bind pointcut="execution(* org.jboss.jms.client.delegate.ClientSessionDelegate->createMapMessage())">
          <advice name="handleCreateMapMessage" aspect="org.jboss.jms.client.container.FactoryAspect"></advice>
       </bind>
       <bind pointcut="execution(* org.jboss.jms.client.delegate.ClientSessionDelegate->createObjectMessage(..))">
          <advice name="handleCreateObjectMessage" aspect="org.jboss.jms.client.container.FactoryAspect"></advice>
       </bind>
       <bind pointcut="execution(* org.jboss.jms.client.delegate.ClientSessionDelegate->createStreamMessage())">
          <advice name="handleCreateStreamMessage" aspect="org.jboss.jms.client.container.FactoryAspect"></advice>
       </bind>
       <bind pointcut="execution(* org.jboss.jms.client.delegate.ClientSessionDelegate->createTextMessage(..))">
          <advice name="handleCreateTextMessage" aspect="org.jboss.jms.client.container.FactoryAspect"></advice>
       </bind>
       <bind pointcut="execution(* org.jboss.jms.client.delegate.ClientSessionDelegate->setMessageListener(..))">
          <advice name="handleSetMessageListener" aspect="org.jboss.jms.client.container.AsfAspect"></advice>
       </bind>
       <bind pointcut="execution(* org.jboss.jms.client.delegate.ClientSessionDelegate->getMessageListener())">
          <advice name="handleGetMessageListener" aspect="org.jboss.jms.client.container.AsfAspect"></advice>
       </bind>
       <bind pointcut="execution(* org.jboss.jms.client.delegate.ClientSessionDelegate->addAsfMessage(..))">
          <advice name="handleAddAsfMessage" aspect="org.jboss.jms.client.container.AsfAspect"></advice>
       </bind>  
       <bind pointcut="execution(* org.jboss.jms.client.delegate.ClientSessionDelegate->run())">
          <advice name="handleRun" aspect="org.jboss.jms.client.container.AsfAspect"></advice>
       </bind>     
       <bind pointcut="execution(* org.jboss.jms.client.delegate.ClientSessionDelegate->getAcknowledgeMode())">
          <advice name="handleGetAcknowledgeMode" aspect="org.jboss.jms.client.container.SessionAspect"></advice>
       </bind>
       <bind pointcut="execution(* org.jboss.jms.client.delegate.ClientSessionDelegate->getTransacted())">
          <advice name="handleGetTransacted" aspect="org.jboss.jms.client.container.SessionAspect"></advice>
       </bind>
       <bind pointcut="execution(* org.jboss.jms.client.delegate.ClientSessionDelegate->getXAResource())">
          <advice name="handleGetXAResource" aspect="org.jboss.jms.client.container.SessionAspect"></advice>
       </bind>
       <bind pointcut="execution(* org.jboss.jms.client.delegate.ClientSessionDelegate->postDeliver(..))">
          <advice name="handlePostDeliver" aspect="org.jboss.jms.client.container.SessionAspect"></advice>
       </bind>
       <bind pointcut="execution(* org.jboss.jms.client.delegate.ClientSessionDelegate->recover())">
          <advice name="handleRecover" aspect="org.jboss.jms.client.container.SessionAspect"></advice>
       </bind>  
       <bind pointcut="execution(* org.jboss.jms.client.delegate.ClientSessionDelegate->commit())">
          <advice name="handleCommit" aspect="org.jboss.jms.client.container.TransactionAspect"></advice>
       </bind>
       <bind pointcut="execution(* org.jboss.jms.client.delegate.ClientSessionDelegate->rollback())">
          <advice name="handleRollback" aspect="org.jboss.jms.client.container.TransactionAspect"></advice>
       </bind>
       <bind pointcut="execution(* org.jboss.jms.client.delegate.ClientSessionDelegate->preDeliver(..))">
          <advice name="handlePreDeliver" aspect="org.jboss.jms.client.container.TransactionAspect"></advice>
       </bind>  
       <bind pointcut="execution(* org.jboss.jms.client.delegate.ClientSessionDelegate->createConsumerDelegate(..))">
          <advice name="handleCreateConsumerDelegate" aspect="org.jboss.jms.client.container.ConsumerAspect"></advice>        
       </bind>  
       <bind pointcut="execution(* org.jboss.jms.client.delegate.ClientSessionDelegate->createConsumerDelegate(..))">
          <advice name="handleCreateConsumerDelegate" aspect="org.jboss.jms.client.container.StateCreationAspect"></advice>
       </bind>
       <bind pointcut="execution(* org.jboss.jms.client.delegate.ClientSessionDelegate->createProducerDelegate(..))">
          <advice name="handleCreateProducerDelegate" aspect="org.jboss.jms.client.container.StateCreationAspect"></advice>
       </bind>
       <bind pointcut="execution(* org.jboss.jms.client.delegate.ClientSessionDelegate->createBrowserDelegate(..))">
          <advice name="handleCreateBrowserDelegate" aspect="org.jboss.jms.client.container.StateCreationAspect"></advice>
       </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.LogInterceptor"></interceptor-ref>
          <interceptor-ref name="org.jboss.jms.client.container.ExceptionInterceptor"></interceptor-ref>     
          <interceptor-ref name="org.jboss.jms.client.container.ClosedInterceptor"></interceptor-ref>         
       </bind>      
       <bind pointcut="execution(* org.jboss.jms.client.delegate.ClientConsumerDelegate->getMessageListener())">
          <advice name="handleGetMessageListener" aspect="org.jboss.jms.client.container.ReceiverAspect"></advice>        
       </bind>
       <bind pointcut="execution(* org.jboss.jms.client.delegate.ClientConsumerDelegate->setMessageListener(..))">
          <advice name="handleSetMessageListener" aspect="org.jboss.jms.client.container.ReceiverAspect"></advice>        
       </bind>  
       <bind pointcut="execution(* org.jboss.jms.client.delegate.ClientConsumerDelegate->receive(..))">
          <advice name="handleReceive" aspect="org.jboss.jms.client.container.ReceiverAspect"></advice>        
       </bind> 
       <bind pointcut="execution(* org.jboss.jms.client.delegate.ClientConsumerDelegate->receiveNoWait())">
          <advice name="handleReceiveNoWait" aspect="org.jboss.jms.client.container.ReceiverAspect"></advice>        
       </bind>   
       <bind pointcut="execution(* org.jboss.jms.client.delegate.ClientConsumerDelegate->closing())">
          <advice name="handleClosing" aspect="org.jboss.jms.client.container.ConsumerAspect"></advice>        
       </bind>
       <bind pointcut="execution(* org.jboss.jms.client.delegate.ClientConsumerDelegate->getDestination())">
          <advice name="handleGetDestination" aspect="org.jboss.jms.client.container.ConsumerAspect"></advice>        
       </bind>
       <bind pointcut="execution(* org.jboss.jms.client.delegate.ClientConsumerDelegate->getNoLocal())">
          <advice name="handleGetNoLocal" aspect="org.jboss.jms.client.container.ConsumerAspect"></advice>        
       </bind>
       <bind pointcut="execution(* org.jboss.jms.client.delegate.ClientConsumerDelegate->getMessageSelector())">
          <advice name="handleGetMessageSelector" aspect="org.jboss.jms.client.container.ConsumerAspect"></advice>        
       </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.LogInterceptor"></interceptor-ref>
          <interceptor-ref name="org.jboss.jms.client.container.ExceptionInterceptor"></interceptor-ref>     
          <interceptor-ref name="org.jboss.jms.client.container.ClosedInterceptor"></interceptor-ref> 
       </bind>       
       <bind pointcut="execution(* org.jboss.jms.client.delegate.ClientProducerDelegate->getDeliveryMode())">
          <advice name="handleGetDeliveryMode" aspect="org.jboss.jms.client.container.ProducerAspect"></advice>        
       </bind>    
       <bind pointcut="execution(* org.jboss.jms.client.delegate.ClientProducerDelegate->getDestination())">
          <advice name="handleGetDestination" aspect="org.jboss.jms.client.container.ProducerAspect"></advice>        
       </bind>  
       <bind pointcut="execution(* org.jboss.jms.client.delegate.ClientProducerDelegate->getDisableMessageID())">
          <advice name="handleGetDisableMessageID" aspect="org.jboss.jms.client.container.ProducerAspect"></advice>        
       </bind>  
       <bind pointcut="execution(* org.jboss.jms.client.delegate.ClientProducerDelegate->getDisableMessageTimestamp())">
          <advice name="handleGetDisableMessageTimestamp" aspect="org.jboss.jms.client.container.ProducerAspect"></advice>        
       </bind>  
       <bind pointcut="execution(* org.jboss.jms.client.delegate.ClientProducerDelegate->getPriority())">
          <advice name="handleGetPriority" aspect="org.jboss.jms.client.container.ProducerAspect"></advice>        
       </bind>  
       <bind pointcut="execution(* org.jboss.jms.client.delegate.ClientProducerDelegate->getTimeToLive())">
          <advice name="handleGetTimeToLive" aspect="org.jboss.jms.client.container.ProducerAspect"></advice>        
       </bind>  
       <bind pointcut="execution(* org.jboss.jms.client.delegate.ClientProducerDelegate->send(..))">
          <advice name="handleSend" aspect="org.jboss.jms.client.container.ProducerAspect"></advice>        
       </bind>  
       <bind pointcut="execution(* org.jboss.jms.client.delegate.ClientProducerDelegate->setDeliveryMode(..))">
          <advice name="handleSetDeliveryMode" aspect="org.jboss.jms.client.container.ProducerAspect"></advice>        
       </bind>  
       <bind pointcut="execution(* org.jboss.jms.client.delegate.ClientProducerDelegate->setDestination(..))">
          <advice name="handleSetDestination" aspect="org.jboss.jms.client.container.ProducerAspect"></advice>        
       </bind>
       <bind pointcut="execution(* org.jboss.jms.client.delegate.ClientProducerDelegate->setDisableMessageID(..))">
          <advice name="handleSetDisableMessageID" aspect="org.jboss.jms.client.container.ProducerAspect"></advice>        
       </bind>   
       <bind pointcut="execution(* org.jboss.jms.client.delegate.ClientProducerDelegate->setDisableMessageTimestamp(..))">
          <advice name="handleSetDisableMessageTimestamp" aspect="org.jboss.jms.client.container.ProducerAspect"></advice>        
       </bind>  
       <bind pointcut="execution(* org.jboss.jms.client.delegate.ClientProducerDelegate->setPriority(..))">
          <advice name="handleSetPriority" aspect="org.jboss.jms.client.container.ProducerAspect"></advice>        
       </bind>     
       <bind pointcut="execution(* org.jboss.jms.client.delegate.ClientProducerDelegate->setTimeToLive(..))">
          <advice name="handleSetTimeToLive" aspect="org.jboss.jms.client.container.ProducerAspect"></advice>        
       </bind>  
       <bind pointcut="execution(* org.jboss.jms.client.delegate.ClientProducerDelegate->send(..))">
          <advice name="handleSend" aspect="org.jboss.jms.client.container.TransactionAspect"></advice>
       </bind>
      
       <!-- 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.LogInterceptor"></interceptor-ref>
          <interceptor-ref name="org.jboss.jms.client.container.ExceptionInterceptor"></interceptor-ref>     
          <interceptor-ref name="org.jboss.jms.client.container.ClosedInterceptor"></interceptor-ref>
       </bind>     
       <bind pointcut="execution(* org.jboss.jms.client.delegate.ClientBrowserDelegate->nextMessage())">
          <advice name="handleNextMessage" aspect="org.jboss.jms.client.container.BrowserAspect"></advice>
       </bind>
       <bind pointcut="execution(* org.jboss.jms.client.delegate.ClientBrowserDelegate->hasNextMessage())">
          <advice name="handleHasNextMessage" aspect="org.jboss.jms.client.container.BrowserAspect"></advice>
       </bind>       
    </aop>
    

     

    Back to JBossMessagingConfigurationAndManagementDesign