com.mulesoft.adapter.ra
Class SPIConnectionManager

java.lang.Object
  extended by com.mulesoft.adapter.ra.SPIConnectionManager
All Implemented Interfaces:
Serializable, javax.resource.spi.ConnectionManager

public class SPIConnectionManager
extends Object
implements javax.resource.spi.ConnectionManager, Serializable

The default ConnectionManager implementation for the non-managed scenario (two-tier approach, non-J2EE approach). Although this JCA mandatory feature is not used in the XI AF it is implemented here to fulfill the JCA 1.0 specification.

See Also:
Serialized Form

Constructor Summary
SPIConnectionManager()
           
 
Method Summary
 Object allocateConnection(javax.resource.spi.ManagedConnectionFactory mcf, javax.resource.spi.ConnectionRequestInfo info)
          Returns a managed connection.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SPIConnectionManager

public SPIConnectionManager()
Method Detail

allocateConnection

public Object allocateConnection(javax.resource.spi.ManagedConnectionFactory mcf,
                                 javax.resource.spi.ConnectionRequestInfo info)
                          throws javax.resource.ResourceException
Returns a managed connection. This sample implementation does not support any sophisticated connection pooling algorithm but returns always CciConnection for new managed connections. (SPI JCA 1.0)

Specified by:
allocateConnection in interface javax.resource.spi.ConnectionManager
Parameters:
mcf - ManagedConnectionFactory to use to create a new managed connection
info - Additional ConnectionRequestInfo data to select the connection
Returns:
Returns a new CciConnection of a new managed connection
Throws:
NotSupportedException - Thrown if managed connection cannot be created or if CciConnection cannot be allocated
javax.resource.ResourceException


Copyright © 2012. All Rights Reserved.