Package org.apache.activemq.ra
Class SimpleConnectionManager
- java.lang.Object
-
- org.apache.activemq.ra.SimpleConnectionManager
-
- All Implemented Interfaces:
Serializable,EventListener,ConnectionEventListener,ConnectionManager
public class SimpleConnectionManager extends Object implements ConnectionManager, ConnectionEventListener
A simple implementation of a ConnectionManager. An Application Server will have a better implementation with pooling and security etc.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description SimpleConnectionManager()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ObjectallocateConnection(ManagedConnectionFactory connectionFactory, ConnectionRequestInfo info)voidconnectionClosed(ConnectionEvent event)voidconnectionErrorOccurred(ConnectionEvent event)voidlocalTransactionCommitted(ConnectionEvent event)voidlocalTransactionRolledback(ConnectionEvent event)voidlocalTransactionStarted(ConnectionEvent event)
-
-
-
Method Detail
-
allocateConnection
public Object allocateConnection(ManagedConnectionFactory connectionFactory, ConnectionRequestInfo info) throws ResourceException
- Specified by:
allocateConnectionin interfaceConnectionManager- Throws:
ResourceException- See Also:
ConnectionManager.allocateConnection(javax.resource.spi.ManagedConnectionFactory, javax.resource.spi.ConnectionRequestInfo)
-
connectionClosed
public void connectionClosed(ConnectionEvent event)
- Specified by:
connectionClosedin interfaceConnectionEventListener- See Also:
ConnectionEventListener.connectionClosed(javax.resource.spi.ConnectionEvent)
-
localTransactionStarted
public void localTransactionStarted(ConnectionEvent event)
- Specified by:
localTransactionStartedin interfaceConnectionEventListener- See Also:
ConnectionEventListener.localTransactionStarted(javax.resource.spi.ConnectionEvent)
-
localTransactionCommitted
public void localTransactionCommitted(ConnectionEvent event)
- Specified by:
localTransactionCommittedin interfaceConnectionEventListener- See Also:
ConnectionEventListener.localTransactionCommitted(javax.resource.spi.ConnectionEvent)
-
localTransactionRolledback
public void localTransactionRolledback(ConnectionEvent event)
- Specified by:
localTransactionRolledbackin interfaceConnectionEventListener- See Also:
ConnectionEventListener.localTransactionRolledback(javax.resource.spi.ConnectionEvent)
-
connectionErrorOccurred
public void connectionErrorOccurred(ConnectionEvent event)
- Specified by:
connectionErrorOccurredin interfaceConnectionEventListener- See Also:
ConnectionEventListener.connectionErrorOccurred(javax.resource.spi.ConnectionEvent)
-
-