org.objectweb.joram.client.connector
Class OutboundTopicConnectionFactory

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

public class OutboundTopicConnectionFactory
extends OutboundConnectionFactory
implements javax.jms.TopicConnectionFactory

An OutboundTopicConnectionFactory instance is used for getting a PubSub connection to an underlying JORAM server.

See Also:
Serialized Form

Field Summary
private static long serialVersionUID
          define serialVersionUID for interoperability
 
Fields inherited from class org.objectweb.joram.client.connector.OutboundConnectionFactory
cxManager, mcf, reference
 
Constructor Summary
OutboundTopicConnectionFactory(ManagedConnectionFactoryImpl mcf, javax.resource.spi.ConnectionManager cxManager)
          Constructs an OutboundTopicConnectionFactory instance.
 
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
 

Field Detail

serialVersionUID

private static final long serialVersionUID
define serialVersionUID for interoperability

See Also:
Constant Field Values
Constructor Detail

OutboundTopicConnectionFactory

OutboundTopicConnectionFactory(ManagedConnectionFactoryImpl mcf,
                               javax.resource.spi.ConnectionManager cxManager)
Constructs an OutboundTopicConnectionFactory instance.

Parameters:
mcf - Central manager for outbound connectivity.
cxManager - Manager for connection pooling.
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.


Copyright © 2010 ScalAgent D.T.. All Rights Reserved.