Class OutboundTopicConnectionFactory
- java.lang.Object
-
- org.objectweb.joram.client.connector.OutboundConnectionFactory
-
- org.objectweb.joram.client.connector.OutboundTopicConnectionFactory
-
- All Implemented Interfaces:
Serializable,ConnectionFactory,TopicConnectionFactory,Referenceable,Referenceable
public class OutboundTopicConnectionFactory extends OutboundConnectionFactory implements 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.objectweb.joram.client.connector.OutboundConnectionFactory
cxManager, mcf, reference
-
-
Constructor Summary
Constructors Constructor Description OutboundTopicConnectionFactory(ManagedConnectionFactoryImpl mcf, ConnectionManager cxManager)Constructs anOutboundTopicConnectionFactoryinstance.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description TopicConnectioncreateTopicConnection()Requests a PubSub connection for the default user, eventually returns anOutboundTopicConnectioninstance.TopicConnectioncreateTopicConnection(String userName, String password)Requests a PubSub connection for a given user, eventually returns anOutboundConnectioninstance.-
Methods inherited from class org.objectweb.joram.client.connector.OutboundConnectionFactory
createConnection, createConnection, createContext, createContext, createContext, createContext, getReference, setReference
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface javax.jms.ConnectionFactory
createConnection, createConnection, createContext, createContext, createContext, createContext
-
-
-
-
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, ConnectionManager cxManager)
Constructs anOutboundTopicConnectionFactoryinstance.- Parameters:
mcf- Central manager for outbound connectivity.cxManager- Manager for connection pooling.
-
-
Method Detail
-
createTopicConnection
public TopicConnection createTopicConnection() throws JMSException
Requests a PubSub connection for the default user, eventually returns anOutboundTopicConnectioninstance.- Specified by:
createTopicConnectionin interfaceTopicConnectionFactory- Throws:
JMSSecurityException- If connecting is not allowed.IllegalStateException- If the underlying JORAM server is not reachable.JMSException- Generic exception.
-
createTopicConnection
public TopicConnection createTopicConnection(String userName, String password) throws JMSException
Requests a PubSub connection for a given user, eventually returns anOutboundConnectioninstance.- Specified by:
createTopicConnectionin interfaceTopicConnectionFactory- Throws:
JMSSecurityException- If connecting is not allowed.IllegalStateException- If the underlying JORAM server is not reachable.JMSException- Generic exception.
-
-