Class OutboundQueueConnectionFactory
- java.lang.Object
-
- org.objectweb.joram.client.connector.OutboundConnectionFactory
-
- org.objectweb.joram.client.connector.OutboundQueueConnectionFactory
-
- All Implemented Interfaces:
Serializable,ConnectionFactory,QueueConnectionFactory,Referenceable,Referenceable
public class OutboundQueueConnectionFactory extends OutboundConnectionFactory implements QueueConnectionFactory
AnOutboundQueueConnectionFactoryinstance is used for getting a PTP 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 OutboundQueueConnectionFactory(ManagedConnectionFactoryImpl mcf, ConnectionManager cxManager)Constructs anOutboundQueueConnectionFactoryinstance.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description QueueConnectioncreateQueueConnection()Requests a PTP connection for the default user, eventually returns anOutboundQueueConnectioninstance.QueueConnectioncreateQueueConnection(String userName, String password)Requests a PTP 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
-
serialVersionUID
private static final long serialVersionUID
define serialVersionUID for interoperability- See Also:
- Constant Field Values
-
logger
private static final Logger logger
-
DEBUG
private static final boolean DEBUG
-
-
Constructor Detail
-
OutboundQueueConnectionFactory
OutboundQueueConnectionFactory(ManagedConnectionFactoryImpl mcf, ConnectionManager cxManager)
Constructs anOutboundQueueConnectionFactoryinstance.- Parameters:
mcf- Central manager for outbound connectivity.cxManager- Manager for connection pooling.
-
-
Method Detail
-
createQueueConnection
public QueueConnection createQueueConnection() throws JMSException
Requests a PTP connection for the default user, eventually returns anOutboundQueueConnectioninstance.- Specified by:
createQueueConnectionin interfaceQueueConnectionFactory- Throws:
JMSSecurityException- If connecting is not allowed.IllegalStateException- If the underlying JORAM server is not reachable.JMSException- Generic exception.
-
createQueueConnection
public QueueConnection createQueueConnection(String userName, String password) throws JMSException
Requests a PTP connection for a given user, eventually returns anOutboundConnectioninstance.- Specified by:
createQueueConnectionin interfaceQueueConnectionFactory- Throws:
JMSSecurityException- If connecting is not allowed.IllegalStateException- If the underlying JORAM server is not reachable.JMSException- Generic exception.
-
-