| javax.jms.TopicConnection
TopicConnection | public interface TopicConnection extends Connection(Code) | | A TopicConnection object is an active connection to a
publish/subscribe JMS provider. A client uses a TopicConnection
object to create one or more TopicSession objects
for producing and consuming messages.
A TopicConnection can be used to create a
TopicSession , from which
specialized topic-related objects can be created.
A more general, and recommended approach is to use the
Connection object.
The TopicConnection object
should be used to support existing code.
See Also: javax.jms.Connection See Also: javax.jms.ConnectionFactory See Also: javax.jms.TopicConnectionFactory |
Method Summary | |
ConnectionConsumer | createConnectionConsumer(Topic topic, String messageSelector, ServerSessionPool sessionPool, int maxMessages) Creates a connection consumer for this connection (optional operation).
This is an expert facility not used by regular JMS clients.
Parameters: topic - the topic to access Parameters: messageSelector - only messages with properties matching themessage selector expression are delivered. | ConnectionConsumer | createDurableConnectionConsumer(Topic topic, String subscriptionName, String messageSelector, ServerSessionPool sessionPool, int maxMessages) Create a durable connection consumer for this connection (optional operation). | TopicSession | createTopicSession(boolean transacted, int acknowledgeMode) Creates a TopicSession object.
Parameters: transacted - indicates whether the session is transacted Parameters: acknowledgeMode - indicates whether the consumer or theclient will acknowledge any messages it receives; ignored if the sessionis transacted. |
createConnectionConsumer | ConnectionConsumer createConnectionConsumer(Topic topic, String messageSelector, ServerSessionPool sessionPool, int maxMessages) throws JMSException(Code) | | Creates a connection consumer for this connection (optional operation).
This is an expert facility not used by regular JMS clients.
Parameters: topic - the topic to access Parameters: messageSelector - only messages with properties matching themessage selector expression are delivered. A value of null oran empty string indicates that there is no message selector for the message consumer. Parameters: sessionPool - the server session pool to associate with this connection consumer Parameters: maxMessages - the maximum number of messages that can beassigned to a server session at one time the connection consumer exception: JMSException - if the TopicConnection object failsto create a connection consumer due to someinternal error or invalid arguments for sessionPool and messageSelector . exception: InvalidDestinationException - if an invalid topic is specified. exception: InvalidSelectorException - if the message selector is invalid. See Also: javax.jms.ConnectionConsumer |
createDurableConnectionConsumer | ConnectionConsumer createDurableConnectionConsumer(Topic topic, String subscriptionName, String messageSelector, ServerSessionPool sessionPool, int maxMessages) throws JMSException(Code) | | Create a durable connection consumer for this connection (optional operation).
This is an expert facility not used by regular JMS clients.
Parameters: topic - the topic to access Parameters: subscriptionName - durable subscription name Parameters: messageSelector - only messages with properties matching themessage selector expression are delivered. A value of null oran empty string indicates that there is no message selector for the message consumer. Parameters: sessionPool - the server session pool to associate with this durable connection consumer Parameters: maxMessages - the maximum number of messages that can beassigned to a server session at one time the durable connection consumer exception: JMSException - if the TopicConnection object failsto create a connection consumer due to someinternal error or invalid arguments for sessionPool and messageSelector . exception: InvalidDestinationException - if an invalid topic is specified. exception: InvalidSelectorException - if the message selector is invalid. See Also: javax.jms.ConnectionConsumer |
createTopicSession | TopicSession createTopicSession(boolean transacted, int acknowledgeMode) throws JMSException(Code) | | Creates a TopicSession object.
Parameters: transacted - indicates whether the session is transacted Parameters: acknowledgeMode - indicates whether the consumer or theclient will acknowledge any messages it receives; ignored if the sessionis transacted. Legal values are Session.AUTO_ACKNOWLEDGE , Session.CLIENT_ACKNOWLEDGE , and Session.DUPS_OK_ACKNOWLEDGE . a newly created topic session exception: JMSException - if the TopicConnection object failsto create a session due to some internal error orlack of support for the specific transactionand acknowledgement mode. See Also: Session.AUTO_ACKNOWLEDGE See Also: See Also: Session.CLIENT_ACKNOWLEDGE See Also: See Also: Session.DUPS_OK_ACKNOWLEDGE See Also: |
|
|