public class OutboundTopicConnectionFactory extends OutboundConnectionFactory implements jakarta.jms.TopicConnectionFactory
OutboundTopicConnectionFactory
instance is used for
getting a PubSub 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 |
---|
OutboundTopicConnectionFactory(ManagedConnectionFactoryImpl mcf,
jakarta.resource.spi.ConnectionManager cxManager)
Constructs an
OutboundTopicConnectionFactory instance. |
Modifier and Type | Method and Description |
---|---|
jakarta.jms.TopicConnection |
createTopicConnection()
Requests a PubSub connection for the default user, eventually returns an
OutboundTopicConnection instance. |
jakarta.jms.TopicConnection |
createTopicConnection(String userName,
String password)
Requests a PubSub connection for a given user, eventually returns an
OutboundConnection instance. |
createConnection, createConnection, createContext, createContext, createContext, createContext, getReference, setReference
public static Logger logger
private static final long serialVersionUID
OutboundTopicConnectionFactory(ManagedConnectionFactoryImpl mcf, jakarta.resource.spi.ConnectionManager cxManager)
OutboundTopicConnectionFactory
instance.mcf
- Central manager for outbound connectivity.cxManager
- Manager for connection pooling.public jakarta.jms.TopicConnection createTopicConnection() throws jakarta.jms.JMSException
OutboundTopicConnection
instance.createTopicConnection
in interface jakarta.jms.TopicConnectionFactory
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.TopicConnection createTopicConnection(String userName, String password) throws jakarta.jms.JMSException
OutboundConnection
instance.createTopicConnection
in interface jakarta.jms.TopicConnectionFactory
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.