Package org.apache.activemq.jms.pool
Class GenericResourceManager
java.lang.Object
org.apache.activemq.jms.pool.GenericResourceManager
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
Nested ClassesModifier and TypeClassDescriptionstatic classstatic classThis class will ensure the broker is properly recovered when wired with the Geronimo transaction manager. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionjakarta.jms.ConnectionFactoryjakarta.transaction.TransactionManagervoidvoidsetConnectionFactory(jakarta.jms.ConnectionFactory connectionFactory) voidsetPassword(String password) voidsetResourceName(String resourceName) voidsetTransactionManager(jakarta.transaction.TransactionManager transactionManager) voidsetUserName(String userName)
-
Constructor Details
-
GenericResourceManager
public GenericResourceManager()
-
-
Method Details
-
recoverResource
public void recoverResource() -
getPassword
-
setPassword
-
getUserName
-
setUserName
-
getResourceName
-
setResourceName
-
getTransactionManager
public jakarta.transaction.TransactionManager getTransactionManager() -
setTransactionManager
public void setTransactionManager(jakarta.transaction.TransactionManager transactionManager) -
getConnectionFactory
public jakarta.jms.ConnectionFactory getConnectionFactory() -
setConnectionFactory
public void setConnectionFactory(jakarta.jms.ConnectionFactory connectionFactory)
-