Package com.sun.messaging.jms
Interface TopicConnection
- All Superinterfaces:
- AutoCloseable,- jakarta.jms.Connection,- jakarta.jms.TopicConnection
public interface TopicConnection
extends jakarta.jms.TopicConnection
Provide interface to create a MQ NO_ACKNOWLEDGE Topic Session.
- 
Method SummaryModifier and TypeMethodDescriptionjakarta.jms.TopicSessioncreateTopicSession(int acknowledgeMode) Creates aTopicSessionobject.Methods inherited from interface jakarta.jms.Connectionclose, createConnectionConsumer, createSession, createSession, createSession, createSharedConnectionConsumer, createSharedDurableConnectionConsumer, getClientID, getExceptionListener, getMetaData, setClientID, setExceptionListener, start, stopMethods inherited from interface jakarta.jms.TopicConnectioncreateConnectionConsumer, createDurableConnectionConsumer, createTopicSession
- 
Method Details- 
createTopicSessionjakarta.jms.TopicSession createTopicSession(int acknowledgeMode) throws jakarta.jms.JMSException Creates aTopicSessionobject.- Parameters:
- acknowledgeMode- indicates whether the consumer or the client will acknowledge any messages it receives; Legal values are- Session.AUTO_ACKNOWLEDGE,- Session.CLIENT_ACKNOWLEDGE,- Session.DUPS_OK_ACKNOWLEDGE, and- com.sun.messaging.jms.Session.NO_ACKNOWLEDGE
- Returns:
- a newly created session
- Throws:
- jakarta.jms.JMSException- if the- TopicConnectionobject fails to create a session due to some internal error or lack of support for the specific transaction and acknowledgement mode.
- See Also:
 
 
-