Joram ${version}

org.objectweb.joram.client.connector
Class OutboundQueueConnectionFactory

java.lang.Object
  extended byorg.objectweb.joram.client.connector.OutboundConnectionFactory
      extended byorg.objectweb.joram.client.connector.OutboundQueueConnectionFactory
All Implemented Interfaces:
javax.jms.ConnectionFactory, javax.jms.QueueConnectionFactory, javax.naming.Referenceable, javax.resource.Referenceable, java.io.Serializable

public class OutboundQueueConnectionFactory
extends OutboundConnectionFactory
implements javax.jms.QueueConnectionFactory, java.io.Serializable, javax.resource.Referenceable

An OutboundQueueConnectionFactory instance is used for getting a PTP connection to an underlying JORAM server.

See Also:
Serialized Form

Field Summary
 
Fields inherited from class org.objectweb.joram.client.connector.OutboundConnectionFactory
cxManager, mcf, reference
 
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 org.objectweb.joram.client.connector.OutboundConnectionFactory
createConnection, createConnection, 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
 
Methods inherited from interface javax.resource.Referenceable
setReference
 
Methods inherited from interface javax.naming.Referenceable
getReference
 

Method Detail

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.

Joram ${version}

Copyright ? 2005 Scalagent - All rights reserved