Joram ${version}

org.objectweb.joram.client.connector
Class OutboundTopicConnectionFactory

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

public class OutboundTopicConnectionFactory
extends OutboundConnectionFactory
implements javax.jms.TopicConnectionFactory, java.io.Serializable, javax.resource.Referenceable

An OutboundTopicConnectionFactory instance is used for getting a PubSub 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.TopicConnection createTopicConnection()
          Requests a PubSub connection for the default user, eventually returns an OutboundTopicConnection instance.
 javax.jms.TopicConnection createTopicConnection(java.lang.String userName, java.lang.String password)
          Requests a PubSub 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

createTopicConnection

public javax.jms.TopicConnection createTopicConnection()
                                                throws javax.jms.JMSException
Requests a PubSub connection for the default user, eventually returns an OutboundTopicConnection instance.

Specified by:
createTopicConnection in interface javax.jms.TopicConnectionFactory
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.

createTopicConnection

public javax.jms.TopicConnection createTopicConnection(java.lang.String userName,
                                                       java.lang.String password)
                                                throws javax.jms.JMSException
Requests a PubSub connection for a given user, eventually returns an OutboundConnection instance.

Specified by:
createTopicConnection in interface javax.jms.TopicConnectionFactory
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