org.apache.activemq.jms.pool
Class GenericResourceManager

java.lang.Object
  extended by org.apache.activemq.jms.pool.GenericResourceManager
Direct Known Subclasses:
ActiveMQResourceManager

public class GenericResourceManager
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 GenericResourceManager.ConnectionAndWrapperNamedXAResource
           
static class GenericResourceManager.Recovery
          This class will ensure the broker is properly recovered when wired with the Geronimo transaction manager.
 
Constructor Summary
GenericResourceManager()
           
 
Method Summary
 ConnectionFactory getConnectionFactory()
           
 String getPassword()
           
 String getResourceName()
           
 TransactionManager getTransactionManager()
           
 String getUserName()
           
 void recoverResource()
           
 void setConnectionFactory(ConnectionFactory connectionFactory)
           
 void setPassword(String password)
           
 void setResourceName(String resourceName)
           
 void setTransactionManager(TransactionManager transactionManager)
           
 void setUserName(String userName)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

GenericResourceManager

public GenericResourceManager()
Method Detail

recoverResource

public void recoverResource()

getPassword

public String getPassword()

setPassword

public void setPassword(String password)

getUserName

public String getUserName()

setUserName

public void setUserName(String userName)

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.