public class OutboundConnectionFactory extends Object implements javax.jms.ConnectionFactory, Serializable, javax.resource.Referenceable
OutboundConnectionFactory
instance is used for
getting a connection to an underlying JORAM server.Modifier and Type | Field and Description |
---|---|
protected javax.resource.spi.ConnectionManager |
cxManager
Manager for connection pooling.
|
static org.objectweb.util.monolog.api.Logger |
logger |
protected ManagedConnectionFactoryImpl |
mcf
Central manager for outbound connectivity.
|
protected Reference |
reference
Naming reference of this instance.
|
private static long |
serialVersionUID
define serialVersionUID for interoperability
|
Constructor and Description |
---|
OutboundConnectionFactory(ManagedConnectionFactoryImpl mcf,
javax.resource.spi.ConnectionManager cxManager)
Constructs an
OutboundConnectionFactory instance. |
Modifier and Type | Method and Description |
---|---|
javax.jms.Connection |
createConnection()
Requests a connection for the default user, eventually returns an
OutboundConnection instance. |
javax.jms.Connection |
createConnection(String userName,
String password)
Requests a connection for a given user, eventually returns an
OutboundConnection instance. |
javax.jms.JMSContext |
createContext() |
javax.jms.JMSContext |
createContext(int sessionMode) |
javax.jms.JMSContext |
createContext(String userName,
String password) |
javax.jms.JMSContext |
createContext(String userName,
String password,
int sessionMode) |
Reference |
getReference()
Returns the naming reference of this factory.
|
void |
setReference(Reference ref)
Sets the naming reference of this factory.
|
private static final long serialVersionUID
public static org.objectweb.util.monolog.api.Logger logger
protected ManagedConnectionFactoryImpl mcf
protected javax.resource.spi.ConnectionManager cxManager
protected Reference reference
OutboundConnectionFactory(ManagedConnectionFactoryImpl mcf, javax.resource.spi.ConnectionManager cxManager)
OutboundConnectionFactory
instance.mcf
- Central manager for outbound connectivity.cxManager
- Manager for connection pooling.public javax.jms.Connection createConnection() throws javax.jms.JMSException
OutboundConnection
instance.createConnection
in interface javax.jms.ConnectionFactory
javax.jms.JMSSecurityException
- If connecting is not allowed.javax.jms.IllegalStateException
- If the underlying JORAM server
is not reachable.javax.jms.JMSException
- Generic exception.public javax.jms.Connection createConnection(String userName, String password) throws javax.jms.JMSException
OutboundConnection
instance.createConnection
in interface javax.jms.ConnectionFactory
javax.jms.JMSSecurityException
- If connecting is not allowed.javax.jms.IllegalStateException
- If the underlying JORAM server
is not reachable.javax.jms.JMSException
- Generic exception.public void setReference(Reference ref)
public Reference getReference()
getReference
in interface Referenceable
public javax.jms.JMSContext createContext()
createContext
in interface javax.jms.ConnectionFactory
public javax.jms.JMSContext createContext(String userName, String password)
createContext
in interface javax.jms.ConnectionFactory
public javax.jms.JMSContext createContext(String userName, String password, int sessionMode)
createContext
in interface javax.jms.ConnectionFactory
public javax.jms.JMSContext createContext(int sessionMode)
createContext
in interface javax.jms.ConnectionFactory
Copyright © 2018 ScalAgent D.T.. All Rights Reserved.