public class SampleConnectionManager
extends java.lang.Object
implements javax.resource.spi.ConnectionManager, java.io.Serializable
This class provides a connection manager used in non-managed environment.
SampleConnectionFactory
,
SampleConnection
,
Serialized FormModifier and Type | Field and Description |
---|---|
static java.lang.String |
COPYRIGHT
Copyright statement.
|
Constructor and Description |
---|
SampleConnectionManager()
Default Constructor
|
Modifier and Type | Method and Description |
---|---|
java.lang.Object |
allocateConnection(javax.resource.spi.ManagedConnectionFactory mcf,
javax.resource.spi.ConnectionRequestInfo info)
Allocate connection using provided information.
|
public static final java.lang.String COPYRIGHT
public java.lang.Object allocateConnection(javax.resource.spi.ManagedConnectionFactory mcf, javax.resource.spi.ConnectionRequestInfo info) throws javax.resource.ResourceException
allocateConnection
in interface javax.resource.spi.ConnectionManager
mcf
- The javax.resource.spi.ManagedConnectionFactory,info
- The javax.resource.spi.ConnectionRequestInfojavax.resource.ResourceException
- Raised when failed to allocate a connection.