Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

org.activemq.ra
Class DefaultConnectionManager  view DefaultConnectionManager download DefaultConnectionManager.java

java.lang.Object
  extended byorg.activemq.ra.DefaultConnectionManager
All Implemented Interfaces:
javax.resource.spi.ConnectionEventListener, javax.resource.spi.ConnectionManager, java.util.EventListener, java.io.Serializable

public class DefaultConnectionManager
extends java.lang.Object
implements javax.resource.spi.ConnectionManager, javax.resource.spi.ConnectionEventListener

A simple implementation of a ConnectionManager. An App Server will have a better implementation with pooling and security etc.

Version:
$Revision: 1.1.1.1 $

Field Summary
private static org.apache.commons.logging.Log log
           
 
Constructor Summary
DefaultConnectionManager()
           
 
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
 

Field Detail

log

private static final org.apache.commons.logging.Log log
Constructor Detail

DefaultConnectionManager

public DefaultConnectionManager()
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

connectionClosed

public void connectionClosed(javax.resource.spi.ConnectionEvent event)
Specified by:
connectionClosed in interface javax.resource.spi.ConnectionEventListener

localTransactionStarted

public void localTransactionStarted(javax.resource.spi.ConnectionEvent event)
Specified by:
localTransactionStarted in interface javax.resource.spi.ConnectionEventListener

localTransactionCommitted

public void localTransactionCommitted(javax.resource.spi.ConnectionEvent event)
Specified by:
localTransactionCommitted in interface javax.resource.spi.ConnectionEventListener

localTransactionRolledback

public void localTransactionRolledback(javax.resource.spi.ConnectionEvent event)
Specified by:
localTransactionRolledback in interface javax.resource.spi.ConnectionEventListener

connectionErrorOccurred

public void connectionErrorOccurred(javax.resource.spi.ConnectionEvent event)
Specified by:
connectionErrorOccurred in interface javax.resource.spi.ConnectionEventListener