org.objectweb.joram.client.connector
Class DefaultConnectionManager

java.lang.Object
  extended by org.objectweb.joram.client.connector.DefaultConnectionManager
All Implemented Interfaces:
java.io.Serializable, javax.resource.spi.ConnectionManager

public class DefaultConnectionManager
extends java.lang.Object
implements javax.resource.spi.ConnectionManager, java.io.Serializable

The DefaultConnectionManager class is the default connection manager provided with JORAM resource adapter, which intercepts connections requests coming from non managed client applications.

See Also:
Serialized Form

Field Summary
private static DefaultConnectionManager ref
          Static reference to the local DefaultConnectionManager instance.
private static long serialVersionUID
           
 
Constructor Summary
DefaultConnectionManager()
          Creates a DefaultConnectionManager instance.
 
Method Summary
 java.lang.Object allocateConnection(javax.resource.spi.ManagedConnectionFactory mcf, javax.resource.spi.ConnectionRequestInfo cxRequest)
          Returns a javax.jms.Connection connection instance for a non managed application.
(package private) static DefaultConnectionManager getRef()
          Returns the reference to the DefaultConnectionManager instance, creates it if needed.
private  void setFactoryParameters(AbstractConnectionFactory factory, ManagedConnectionFactoryImpl mcf)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

serialVersionUID

private static final long serialVersionUID
See Also:
Constant Field Values

ref

private static DefaultConnectionManager ref
Static reference to the local DefaultConnectionManager instance.

Constructor Detail

DefaultConnectionManager

public DefaultConnectionManager()
Creates a DefaultConnectionManager instance.

Method Detail

allocateConnection

public java.lang.Object allocateConnection(javax.resource.spi.ManagedConnectionFactory mcf,
                                           javax.resource.spi.ConnectionRequestInfo cxRequest)
                                    throws javax.resource.ResourceException
Returns a javax.jms.Connection connection instance for a non managed application.

Specified by:
allocateConnection in interface javax.resource.spi.ConnectionManager
Throws:
javax.resource.spi.CommException - If connecting fails.
javax.resource.spi.SecurityException - If connecting is not authorized.
javax.resource.ResourceException - Generic exception.

setFactoryParameters

private void setFactoryParameters(AbstractConnectionFactory factory,
                                  ManagedConnectionFactoryImpl mcf)

getRef

static DefaultConnectionManager getRef()
Returns the reference to the DefaultConnectionManager instance, creates it if needed.



Copyright © 2010 ScalAgent D.T.. All Rights Reserved.