org.apache.activemq.ra
Class SimpleConnectionManager
java.lang.Object
org.apache.activemq.ra.SimpleConnectionManager
- All Implemented Interfaces:
- java.io.Serializable, java.util.EventListener, javax.resource.spi.ConnectionEventListener, javax.resource.spi.ConnectionManager
public class SimpleConnectionManager
- extends java.lang.Object
- implements javax.resource.spi.ConnectionManager, javax.resource.spi.ConnectionEventListener
A simple implementation of a ConnectionManager.
An Application Server will have a better implementation with pooling and security etc.
- Version:
- $Revision$
- See Also:
- Serialized Form
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
SimpleConnectionManager
public SimpleConnectionManager()
allocateConnection
public java.lang.Object allocateConnection(javax.resource.spi.ManagedConnectionFactory connectionFactory,
javax.resource.spi.ConnectionRequestInfo info)
throws javax.resource.ResourceException
- Specified by:
allocateConnection
in interface javax.resource.spi.ConnectionManager
- Throws:
javax.resource.ResourceException
- See Also:
ConnectionManager.allocateConnection(javax.resource.spi.ManagedConnectionFactory, javax.resource.spi.ConnectionRequestInfo)
connectionClosed
public void connectionClosed(javax.resource.spi.ConnectionEvent event)
- Specified by:
connectionClosed
in interface javax.resource.spi.ConnectionEventListener
- See Also:
ConnectionEventListener.connectionClosed(javax.resource.spi.ConnectionEvent)
localTransactionStarted
public void localTransactionStarted(javax.resource.spi.ConnectionEvent event)
- Specified by:
localTransactionStarted
in interface javax.resource.spi.ConnectionEventListener
- See Also:
ConnectionEventListener.localTransactionStarted(javax.resource.spi.ConnectionEvent)
localTransactionCommitted
public void localTransactionCommitted(javax.resource.spi.ConnectionEvent event)
- Specified by:
localTransactionCommitted
in interface javax.resource.spi.ConnectionEventListener
- See Also:
ConnectionEventListener.localTransactionCommitted(javax.resource.spi.ConnectionEvent)
localTransactionRolledback
public void localTransactionRolledback(javax.resource.spi.ConnectionEvent event)
- Specified by:
localTransactionRolledback
in interface javax.resource.spi.ConnectionEventListener
- See Also:
ConnectionEventListener.localTransactionRolledback(javax.resource.spi.ConnectionEvent)
connectionErrorOccurred
public void connectionErrorOccurred(javax.resource.spi.ConnectionEvent event)
- Specified by:
connectionErrorOccurred
in interface javax.resource.spi.ConnectionEventListener
- See Also:
ConnectionEventListener.connectionErrorOccurred(javax.resource.spi.ConnectionEvent)
Copyright © 2009 Apache Software Foundation. All Rights Reserved.