com.ibm.commerce.messaging.adapters.jcasample
Class SampleConnectionManager
java.lang.Object
|
+--com.ibm.commerce.messaging.adapters.jcasample.SampleConnectionManager
- All Implemented Interfaces:
- java.io.Serializable
- public class SampleConnectionManager
- extends java.lang.Object
- implements java.io.Serializable
This class provides a connection manager used in non-managed
environment.
- See Also:
-
SampleConnectionFactory
,
SampleConnection
,
Serialized
Form
Field Summary |
static java.lang.String |
COPYRIGHT
Copyright statement. |
Method Summary |
java.lang.Object |
allocateConnection(ManagedConnectionFactory mcf,
ConnectionRequestInfo info)
Allocate connection using provided information. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll,
toString, wait, wait, wait |
COPYRIGHT
public static final java.lang.String COPYRIGHT
- Copyright statement.
- See Also:
-
Constant Field Values
SampleConnectionManager
public SampleConnectionManager()
- Default Constructor
allocateConnection
public java.lang.Object allocateConnection(ManagedConnectionFactory mcf,
ConnectionRequestInfo info)
throws ResourceException
- Allocate connection using provided information.
-
- Parameters:
mcf
- The javax.resource.spi.ManagedConnectionFactory,
info
- The javax.resource.spi.ConnectionRequestInfo
- Returns:
- The connection object
- Throws:
javax.resource.ResourceException
- Raised when failed to
allocate a connection.
ResourceException