org.apache.activemq.pool
Class ActiveMQResourceManager

java.lang.Object
  extended by org.apache.activemq.pool.ActiveMQResourceManager

public class ActiveMQResourceManager
extends Object

This class allows wiring the ActiveMQ broker and the Geronimo transaction manager in a way that will allow the transaction manager to correctly recover XA transactions. For example, it can be used the following way:

   
      
   

   
       
       
       
       
   

   
         
         
         
   
 


Nested Class Summary
static class ActiveMQResourceManager.ConnectionAndWrapperNamedXAResource
           
static class ActiveMQResourceManager.Recovery
          This class will ensure the broker is properly recovered when wired with the Geronimo transaction manager.
 
Constructor Summary
ActiveMQResourceManager()
           
 
Method Summary
 ConnectionFactory getConnectionFactory()
           
 String getResourceName()
           
 TransactionManager getTransactionManager()
           
 void recoverResource()
           
 void setConnectionFactory(ConnectionFactory connectionFactory)
           
 void setResourceName(String resourceName)
           
 void setTransactionManager(TransactionManager transactionManager)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ActiveMQResourceManager

public ActiveMQResourceManager()
Method Detail

recoverResource

public void recoverResource()

getResourceName

public String getResourceName()

setResourceName

public void setResourceName(String resourceName)

getTransactionManager

public TransactionManager getTransactionManager()

setTransactionManager

public void setTransactionManager(TransactionManager transactionManager)

getConnectionFactory

public ConnectionFactory getConnectionFactory()

setConnectionFactory

public void setConnectionFactory(ConnectionFactory connectionFactory)


Copyright © 2005-2013 The Apache Software Foundation. All Rights Reserved.