public class DefaultConnectionManager extends Object implements javax.resource.spi.ConnectionManager, Serializable
DefaultConnectionManager
class is the default connection
manager provided with JORAM resource adapter, which intercepts connections
requests coming from non managed client applications.Modifier and Type | Field and Description |
---|---|
static org.objectweb.util.monolog.api.Logger |
logger |
private static DefaultConnectionManager |
ref
Static reference to the local
DefaultConnectionManager
instance. |
private static long |
serialVersionUID |
Constructor and Description |
---|
DefaultConnectionManager()
Creates a
DefaultConnectionManager instance. |
Modifier and Type | Method and Description |
---|---|
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) |
private static final long serialVersionUID
public static org.objectweb.util.monolog.api.Logger logger
private static DefaultConnectionManager ref
DefaultConnectionManager
instance.public DefaultConnectionManager()
DefaultConnectionManager
instance.public Object allocateConnection(javax.resource.spi.ManagedConnectionFactory mcf, javax.resource.spi.ConnectionRequestInfo cxRequest) throws javax.resource.ResourceException
javax.jms.Connection
connection instance for
a non managed application.allocateConnection
in interface javax.resource.spi.ConnectionManager
javax.resource.spi.CommException
- If connecting fails.javax.resource.spi.SecurityException
- If connecting is not authorized.javax.resource.ResourceException
- Generic exception.private void setFactoryParameters(AbstractConnectionFactory factory, ManagedConnectionFactoryImpl mcf)
static DefaultConnectionManager getRef()
DefaultConnectionManager
instance, creates it if needed.Copyright © 2018 ScalAgent D.T.. All Rights Reserved.