org.objectweb.joram.client.connector
Class OutboundQueueConnectionFactory
java.lang.Object
org.objectweb.joram.client.connector.OutboundConnectionFactory
org.objectweb.joram.client.connector.OutboundQueueConnectionFactory
- All Implemented Interfaces:
- java.io.Serializable, javax.jms.ConnectionFactory, javax.jms.QueueConnectionFactory, javax.naming.Referenceable
public class OutboundQueueConnectionFactory
- extends OutboundConnectionFactory
- implements javax.jms.QueueConnectionFactory
An OutboundQueueConnectionFactory
instance is used for
getting a PTP connection to an underlying JORAM server.
- See Also:
- Serialized Form
Field Summary |
private static long |
serialVersionUID
define serialVersionUID for interoperability |
Method Summary |
javax.jms.QueueConnection |
createQueueConnection()
Requests a PTP connection for the default user, eventually returns an
OutboundQueueConnection instance. |
javax.jms.QueueConnection |
createQueueConnection(java.lang.String userName,
java.lang.String password)
Requests a PTP connection for a given user, eventually returns an
OutboundConnection instance. |
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 |
serialVersionUID
private static final long serialVersionUID
- define serialVersionUID for interoperability
- See Also:
- Constant Field Values
OutboundQueueConnectionFactory
OutboundQueueConnectionFactory(ManagedConnectionFactoryImpl mcf,
javax.resource.spi.ConnectionManager cxManager)
- Constructs an
OutboundQueueConnectionFactory
instance.
- Parameters:
mcf
- Central manager for outbound connectivity.cxManager
- Manager for connection pooling.
createQueueConnection
public javax.jms.QueueConnection createQueueConnection()
throws javax.jms.JMSException
- Requests a PTP connection for the default user, eventually returns an
OutboundQueueConnection
instance.
- Specified by:
createQueueConnection
in interface javax.jms.QueueConnectionFactory
- Throws:
javax.jms.JMSSecurityException
- If connecting is not allowed.
javax.jms.IllegalStateException
- If the underlying JORAM server
is not reachable.
javax.jms.JMSException
- Generic exception.
createQueueConnection
public javax.jms.QueueConnection createQueueConnection(java.lang.String userName,
java.lang.String password)
throws javax.jms.JMSException
- Requests a PTP connection for a given user, eventually returns an
OutboundConnection
instance.
- Specified by:
createQueueConnection
in interface javax.jms.QueueConnectionFactory
- Throws:
javax.jms.JMSSecurityException
- If connecting is not allowed.
javax.jms.IllegalStateException
- If the underlying JORAM server
is not reachable.
javax.jms.JMSException
- Generic exception.
Copyright © 2010 ScalAgent D.T.. All Rights Reserved.