当前页面:
在线文档首页 >
JBoss 4.0.1 sp1 j2ee API Documentation 英文版文档
ConnectionManager (JBoss J2EE API) - JBoss 4.0.1 sp1 j2ee API Documentation 英文版文档
javax.resource.spi
Interface ConnectionManager
- All Superinterfaces:
- Serializable
- public interface ConnectionManager
- extends Serializable
The ConnectionManager interface provides the hook which allows a resource
adapter to pass a connection to the Application Server. The Application
Server implements this interface in order to control QoS services to the
resource adapter for connection pools.
allocateConnection
public Object allocateConnection(ManagedConnectionFactory mcf,
ConnectionRequestInfo cxRequestInfo)
throws ResourceException
- Gets called by the resource adapter's connection factory. The resource adapter
uses this method to pass its managed connection factory to the connection manager.
- Parameters:
mcf
- the managed connection factorycxRequestInfo
- the connection request info
- Returns:
- the connection handle
- Throws:
ResourceException
- for an generic error
ApplicationServerInternalException
- for problems in the application server
SecurityException
- for security problems
ResourceAllocationException
- for problems allocating resources
ResourceAdapterInternalException
- for errors from the resource adapter
Copyright © 2002 JBoss Group, LLC. All Rights Reserved.