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.
Constructor Summary
SampleConnectionManager()
Default Constructor
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
Field Detail

COPYRIGHT

public static final java.lang.String COPYRIGHT
Copyright statement.
See Also:
Constant Field Values
Constructor Detail

SampleConnectionManager

public SampleConnectionManager()
Default Constructor
Method Detail

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

Feedback