public class OutboundConnectionFactory extends Object implements ConnectionFactory, Serializable, Referenceable
OutboundConnectionFactory
instance is used for
getting a connection to an underlying JORAM server.Modifier and Type | Field and Description |
---|---|
protected ConnectionManager |
cxManager
Manager for connection pooling.
|
static 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,
ConnectionManager cxManager)
Constructs an
OutboundConnectionFactory instance. |
Modifier and Type | Method and Description |
---|---|
Connection |
createConnection()
Requests a connection for the default user, eventually returns an
OutboundConnection instance. |
Connection |
createConnection(String userName,
String password)
Requests a connection for a given user, eventually returns an
OutboundConnection instance. |
JMSContext |
createContext() |
JMSContext |
createContext(int sessionMode) |
JMSContext |
createContext(String userName,
String password) |
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 Logger logger
protected ManagedConnectionFactoryImpl mcf
protected ConnectionManager cxManager
protected Reference reference
OutboundConnectionFactory(ManagedConnectionFactoryImpl mcf, ConnectionManager cxManager)
OutboundConnectionFactory
instance.mcf
- Central manager for outbound connectivity.cxManager
- Manager for connection pooling.public Connection createConnection() throws JMSException
OutboundConnection
instance.createConnection
in interface ConnectionFactory
JMSSecurityException
- If connecting is not allowed.IllegalStateException
- If the underlying JORAM server
is not reachable.JMSException
- Generic exception.public Connection createConnection(String userName, String password) throws JMSException
OutboundConnection
instance.createConnection
in interface ConnectionFactory
JMSSecurityException
- If connecting is not allowed.IllegalStateException
- If the underlying JORAM server
is not reachable.JMSException
- Generic exception.public void setReference(Reference ref)
public Reference getReference()
getReference
in interface Referenceable
public JMSContext createContext()
public JMSContext createContext(String userName, String password)
public JMSContext createContext(String userName, String password, int sessionMode)
public JMSContext createContext(int sessionMode)
Copyright © 2023 ScalAgent D.T.. All rights reserved.