com.ibm.commerce.messaging.adapters.jcasample

Class SampleConnectionManager

  • java.lang.Object
    • com.ibm.commerce.messaging.adapters.jcasample.SampleConnectionManager
  • All Implemented Interfaces:
    java.io.Serializable, javax.resource.spi.ConnectionManager


    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.

    See Also:
    SampleConnectionFactory, SampleConnection, Serialized Form
    • Field Summary

      Fields 
      Modifier and Type Field and Description
      static java.lang.String COPYRIGHT
      Copyright statement.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      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.
      • Methods inherited from class java.lang.Object

        equals, 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(javax.resource.spi.ManagedConnectionFactory mcf,
                                                   javax.resource.spi.ConnectionRequestInfo info)
                                            throws javax.resource.ResourceException
        Allocate connection using provided information.
        Specified by:
        allocateConnection in interface javax.resource.spi.ConnectionManager
        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.