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