org.ow2.jotm.jms
Class JTopicConnectionFactory
java.lang.Object
org.ow2.jotm.jms.JConnectionFactory
org.ow2.jotm.jms.JTopicConnectionFactory
- All Implemented Interfaces:
- Serializable, ConnectionFactory, TopicConnectionFactory, Referenceable
public class JTopicConnectionFactory
- extends JConnectionFactory
- implements TopicConnectionFactory
- See Also:
- Serialized Form
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
JTopicConnectionFactory
public JTopicConnectionFactory(String name,
XATopicConnectionFactory xatcf,
org.objectweb.util.monolog.api.Logger logger)
- Constructor.
- Parameters:
name - ConnectionFactory namexatcf - underlaying XAConnectionFactory
createTopicConnection
public TopicConnection createTopicConnection()
throws JMSException
- Create a topic connection for an anonymous user.
- Specified by:
createTopicConnection in interface TopicConnectionFactory
- Returns:
- a newly created topic connection.
- Throws:
JMSException - - if JMS Provider fails to create a Topic
Connection due to some internal error.
createTopicConnection
public TopicConnection createTopicConnection(String userName,
String password)
throws JMSException
- Create a topic connection with specified user identity.
The connection is created in stopped mode. No messages will
be delivered until Connection.start method is explicitly called.
- Specified by:
createTopicConnection in interface TopicConnectionFactory
- Parameters:
userName - - the caller's user namepassword - - the caller's password
- Throws:
JMSException - - if JMS Provider fails to create Topic Connection
due to some internal error. required resources for a Topic Connection.
Copyright ? 2005-2010 OW2 Consortium. All Rights Reserved.