public class OutboundQueueConnectionFactory extends OutboundConnectionFactory implements jakarta.jms.QueueConnectionFactory
OutboundQueueConnectionFactory
instance is used for
getting a PTP connection to an underlying JORAM server.Modifier and Type | Field and Description |
---|---|
static Logger |
logger |
private static long |
serialVersionUID
define serialVersionUID for interoperability
|
cxManager, mcf, reference
Constructor and Description |
---|
OutboundQueueConnectionFactory(ManagedConnectionFactoryImpl mcf,
jakarta.resource.spi.ConnectionManager cxManager)
Constructs an
OutboundQueueConnectionFactory instance. |
Modifier and Type | Method and Description |
---|---|
jakarta.jms.QueueConnection |
createQueueConnection()
Requests a PTP connection for the default user, eventually returns an
OutboundQueueConnection instance. |
jakarta.jms.QueueConnection |
createQueueConnection(String userName,
String password)
Requests a PTP connection for a given user, eventually returns an
OutboundConnection instance. |
createConnection, createConnection, createContext, createContext, createContext, createContext, getReference, setReference
private static final long serialVersionUID
public static Logger logger
OutboundQueueConnectionFactory(ManagedConnectionFactoryImpl mcf, jakarta.resource.spi.ConnectionManager cxManager)
OutboundQueueConnectionFactory
instance.mcf
- Central manager for outbound connectivity.cxManager
- Manager for connection pooling.public jakarta.jms.QueueConnection createQueueConnection() throws jakarta.jms.JMSException
OutboundQueueConnection
instance.createQueueConnection
in interface jakarta.jms.QueueConnectionFactory
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.QueueConnection createQueueConnection(String userName, String password) throws jakarta.jms.JMSException
OutboundConnection
instance.createQueueConnection
in interface jakarta.jms.QueueConnectionFactory
jakarta.jms.JMSSecurityException
- If connecting is not allowed.jakarta.jms.IllegalStateException
- If the underlying JORAM server
is not reachable.jakarta.jms.JMSException
- Generic exception.Copyright © 2023 ScalAgent D.T.. All rights reserved.