org.ow2.jasmine.adapter.jmx.pool.outbound
Class ConnectionManagerImpl

java.lang.Object
  extended by org.ow2.jasmine.adapter.jmx.pool.outbound.ConnectionManagerImpl
All Implemented Interfaces:
java.io.Serializable, javax.resource.spi.ConnectionManager

public class ConnectionManagerImpl
extends java.lang.Object
implements javax.resource.spi.ConnectionManager

The connection Manager. Provides a hook for a resource adapter to pass a connection request to an application server.

Author:
Guillaume Renault
See Also:
Serialized Form

Constructor Summary
ConnectionManagerImpl()
          Create an instance.
 
Method Summary
 java.lang.Object allocateConnection(javax.resource.spi.ManagedConnectionFactory mcf, javax.resource.spi.ConnectionRequestInfo info)
          The method allocateConnection gets called by the resource adapter's connection factory instance.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ConnectionManagerImpl

public ConnectionManagerImpl()
Create an instance.

Method Detail

allocateConnection

public final java.lang.Object allocateConnection(javax.resource.spi.ManagedConnectionFactory mcf,
                                                 javax.resource.spi.ConnectionRequestInfo info)
                                          throws javax.resource.ResourceException
The method allocateConnection gets called by the resource adapter's connection factory instance. This lets connection factory instance (provided by the resource adapter) pass a connection request to the ConnectionManager instance. The connectionRequestInfo parameter represents information specific to the resource adapter for handling of the connection request.

Specified by:
allocateConnection in interface javax.resource.spi.ConnectionManager
Parameters:
mcf - used by application server to delegate connection matching/creation.
info - connection request Information.
Returns:
connection handle with an EIS specific connection interface.
Throws:
javax.resource.ResourceException - Generic exception.
See Also:
ConnectionManager.allocateConnection(ManagedConnectionFactory, ConnectionRequestInfo)


Copyright © 2008 OW2 Consortium. All Rights Reserved.