Package org.ow2.joram.jakarta.connector
Class OutboundTopicConnectionFactory
- java.lang.Object
-
- org.ow2.joram.jakarta.connector.OutboundConnectionFactory
-
- org.ow2.joram.jakarta.connector.OutboundTopicConnectionFactory
-
- All Implemented Interfaces:
jakarta.jms.ConnectionFactory,jakarta.jms.TopicConnectionFactory,jakarta.resource.Referenceable,Serializable,Referenceable
public class OutboundTopicConnectionFactory extends OutboundConnectionFactory implements jakarta.jms.TopicConnectionFactory
AnOutboundTopicConnectionFactoryinstance is used for getting a PubSub connection to an underlying JORAM server.- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description private static booleanDEBUGprivate static Loggerloggerprivate static longserialVersionUIDdefine serialVersionUID for interoperability-
Fields inherited from class org.ow2.joram.jakarta.connector.OutboundConnectionFactory
cxManager, mcf, reference
-
-
Constructor Summary
Constructors Constructor Description OutboundTopicConnectionFactory(ManagedConnectionFactoryImpl mcf, jakarta.resource.spi.ConnectionManager cxManager)Constructs anOutboundTopicConnectionFactoryinstance.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description jakarta.jms.TopicConnectioncreateTopicConnection()Requests a PubSub connection for the default user, eventually returns anOutboundTopicConnectioninstance.jakarta.jms.TopicConnectioncreateTopicConnection(String userName, String password)Requests a PubSub connection for a given user, eventually returns anOutboundConnectioninstance.-
Methods inherited from class org.ow2.joram.jakarta.connector.OutboundConnectionFactory
createConnection, createConnection, createContext, createContext, createContext, createContext, getReference, setReference
-
-
-
-
Field Detail
-
logger
private static final Logger logger
-
DEBUG
private static final boolean DEBUG
-
serialVersionUID
private static final long serialVersionUID
define serialVersionUID for interoperability- See Also:
- Constant Field Values
-
-
Constructor Detail
-
OutboundTopicConnectionFactory
OutboundTopicConnectionFactory(ManagedConnectionFactoryImpl mcf, jakarta.resource.spi.ConnectionManager cxManager)
Constructs anOutboundTopicConnectionFactoryinstance.- Parameters:
mcf- Central manager for outbound connectivity.cxManager- Manager for connection pooling.
-
-
Method Detail
-
createTopicConnection
public jakarta.jms.TopicConnection createTopicConnection() throws jakarta.jms.JMSExceptionRequests a PubSub connection for the default user, eventually returns anOutboundTopicConnectioninstance.- Specified by:
createTopicConnectionin interfacejakarta.jms.TopicConnectionFactory- Throws:
jakarta.jms.JMSSecurityException- If connecting is not allowed.jakarta.jms.IllegalStateException- If the underlying JORAM server is not reachable.jakarta.jms.JMSException- Generic exception.
-
createTopicConnection
public jakarta.jms.TopicConnection createTopicConnection(String userName, String password) throws jakarta.jms.JMSException
Requests a PubSub connection for a given user, eventually returns anOutboundConnectioninstance.- Specified by:
createTopicConnectionin interfacejakarta.jms.TopicConnectionFactory- Throws:
jakarta.jms.JMSSecurityException- If connecting is not allowed.jakarta.jms.IllegalStateException- If the underlying JORAM server is not reachable.jakarta.jms.JMSException- Generic exception.
-
-