org.apache.activemq.ra
Class SimpleConnectionManager

java.lang.Object
  extended by 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.

See Also:
Serialized Form

Constructor Summary
SimpleConnectionManager()
           
 
Method Summary
 java.lang.Object allocateConnection(javax.resource.spi.ManagedConnectionFactory connectionFactory, javax.resource.spi.ConnectionRequestInfo info)
           
 void connectionClosed(javax.resource.spi.ConnectionEvent event)
           
 void connectionErrorOccurred(javax.resource.spi.ConnectionEvent event)
           
 void localTransactionCommitted(javax.resource.spi.ConnectionEvent event)
           
 void localTransactionRolledback(javax.resource.spi.ConnectionEvent event)
           
 void localTransactionStarted(javax.resource.spi.ConnectionEvent event)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SimpleConnectionManager

public SimpleConnectionManager()
Method Detail

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 © 2005-2011 FuseSource, Corp.. All Rights Reserved.