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
Modifier and TypeClassDescriptionstatic class
static class
This class will ensure the broker is properly recovered when wired with the Geronimo transaction manager. -
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionjakarta.jms.ConnectionFactory
jakarta.transaction.TransactionManager
void
void
setConnectionFactory
(jakarta.jms.ConnectionFactory connectionFactory) void
setPassword
(String password) void
setResourceName
(String resourceName) void
setTransactionManager
(jakarta.transaction.TransactionManager transactionManager) void
setUserName
(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)
-