org.objectweb.jonas_jms
Class JTopicConnection
java.lang.Object
org.objectweb.jonas_jms.JConnection
org.objectweb.jonas_jms.JTopicConnection
- All Implemented Interfaces:
- Connection, TopicConnection
public class JTopicConnection
- extends JConnection
- implements TopicConnection
Methods inherited from class org.objectweb.jonas_jms.JConnection |
close, createConnectionConsumer, createDurableConnectionConsumer, createSession, finalClose, getClientID, getExceptionListener, getMetaData, getUser, sessionClose, sessionOpen, setClientID, setExceptionListener, start, stop |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
xatc
protected XATopicConnection xatc
JTopicConnection
public JTopicConnection(JConnectionFactory jcf,
XATopicConnectionFactory xatcf,
String user,
String passwd)
throws JMSException
- Constructor of a JTopicConnection for a specified user.
- Parameters:
user
- user's namepasswd
- user's password
- Throws:
JMSException
JTopicConnection
public JTopicConnection(JConnectionFactory jcf,
XATopicConnectionFactory xatcf)
throws JMSException
- Constructor of a JQueueConnection for an anonymous user.
- Throws:
JMSException
createTopicSession
public TopicSession createTopicSession(boolean transacted,
int acknowledgeMode)
throws JMSException
- Create a TopicSession
- Specified by:
createTopicSession
in interface TopicConnection
- Parameters:
transacted
- - if true, the session is transacted.acknowledgeMode
- - indicates whether the consumer or the client will
acknowledge any messages it receives.
This parameter will be ignored if the session is transacted.
- Returns:
- a newly created topic session.
- Throws:
JMSException
- - if JMS Connection fails to create a session.
createConnectionConsumer
public ConnectionConsumer createConnectionConsumer(Topic topic,
String messageSelector,
ServerSessionPool sessionPool,
int maxMessages)
throws JMSException
- Specified by:
createConnectionConsumer
in interface TopicConnection
- Throws:
JMSException
- - if JMS Connection fails to create a ConnectionConsumer
Copyright © 2007 OW2 Consortium. All Rights Reserved.