TopicSession object provides methods for creating TopicPublisher, TopicSubscriber, and TemporaryTopic objects.
More...
#include <javax_jms_TopicSession.h>
Inheritance diagram for javax::jms::TopicSession:


Public Types | |
| enum | { xmogDefaultFlags = xmog_base::GLOBAL, xmogMajorVersion = 3, xmogMinorVersion = 2, xmogPatchVersion = 9, xmogBuildNumber = 2047 } |
|
typedef ::xmog_java_array_template< ::javax::jms::TopicSession > | array1D |
|
typedef ::xmog_java_array_template< ::xmog_java_array_template< ::javax::jms::TopicSession > > | array2D |
Public Member Functions | |
| virtual ::javax::jms::TopicSubscriber | createDurableSubscriber (const ::javax::jms::Topic &topic, const ::java::lang::String &name, const ::java::lang::String &messageSelector, bool noLocal,::xmog_localenv *p_xenv=NULL, xmog_flags f_xflags=xmogDefaultFlags) |
| Creates a durable subscriber to the specified topic, using a message selector or specifying whether messages published by its own connection should be delivered to it. | |
| virtual ::javax::jms::TopicSubscriber | createDurableSubscriber (const ::javax::jms::Topic &topic, const ::java::lang::String &name,::xmog_localenv *p_xenv=NULL, xmog_flags f_xflags=xmogDefaultFlags) |
| Creates a durable subscriber to the specified topic. | |
| virtual ::javax::jms::TopicPublisher | createPublisher (const ::javax::jms::Topic &topic,::xmog_localenv *p_xenv=NULL, xmog_flags f_xflags=xmogDefaultFlags) |
| Creates a publisher for the specified topic. | |
| virtual ::javax::jms::TopicSubscriber | createSubscriber (const ::javax::jms::Topic &topic, const ::java::lang::String &messageSelector, bool noLocal,::xmog_localenv *p_xenv=NULL, xmog_flags f_xflags=xmogDefaultFlags) |
| Creates a nondurable subscriber to the specified topic, using a message selector or specifying whether messages published by its own connection should be delivered to it. | |
| virtual ::javax::jms::TopicSubscriber | createSubscriber (const ::javax::jms::Topic &topic,::xmog_localenv *p_xenv=NULL, xmog_flags f_xflags=xmogDefaultFlags) |
| Creates a nondurable subscriber to the specified topic. | |
| virtual ::javax::jms::TemporaryTopic | createTemporaryTopic (::xmog_localenv *p_xenv=NULL, xmog_flags f_xflags=xmogDefaultFlags) |
Creates a TemporaryTopic object. | |
| virtual ::javax::jms::Topic | createTopic (const ::java::lang::String &topicName,::xmog_localenv *p_xenv=NULL, xmog_flags f_xflags=xmogDefaultFlags) |
Creates a topic identity given a Topic name. | |
| virtual void | unsubscribe (const ::java::lang::String &name,::xmog_localenv *p_xenv=NULL, xmog_flags f_xflags=xmogDefaultFlags) |
| Unsubscribes a durable subscription that has been created by a client. | |
TopicSession object provides methods for creating TopicPublisher, TopicSubscriber, and TemporaryTopic objects.
It also provides a method for deleting its client's durable subscribers.
A TopicSession is used for creating Pub/Sub specific objects. In general, use the Session object, and use TopicSession only to support existing code. Using the Session object simplifies the programming model, and allows transactions to be used across the two messaging domains.
A TopicSession cannot be used to create objects specific to the point-to-point domain. The following methods inherit from Session, but must throw an IllegalStateException if used from TopicSession:
createBrowser createQueue createTemporaryQueue
Rich Burridge
Kate Stout
|
||||||||||||||||||||||||||||
|
Creates a durable subscriber to the specified topic, using a message selector or specifying whether messages published by its own connection should be delivered to it.
If a client needs to receive all the messages published on a topic, including the ones published while the subscriber is inactive, it uses a durable
Sessions with durable subscribers must always provide the same client identifier. In addition, each client must specify a name which uniquely identifies (within client identifier) each durable subscription it creates. Only one session at a time can have a
A client can change an existing durable subscription by creating a durable
Reimplemented from javax::jms::Session. |
|
||||||||||||||||||||
|
Creates a durable subscriber to the specified topic.
If a client needs to receive all the messages published on a topic, including the ones published while the subscriber is inactive, it uses a durable
Sessions with durable subscribers must always provide the same client identifier. In addition, each client must specify a name that uniquely identifies (within client identifier) each durable subscription it creates. Only one session at a time can have a
A client can change an existing durable subscription by creating a durable
In some cases, a connection may both publish and subscribe to a topic. The subscriber
Reimplemented from javax::jms::Session. |
|
||||||||||||||||
|
Creates a publisher for the specified topic.
A client uses a
|
|
||||||||||||||||||||||||
|
Creates a nondurable subscriber to the specified topic, using a message selector or specifying whether messages published by its own connection should be delivered to it.
A client uses a
Regular Messages filtered out by a subscriber's message selector will never be delivered to the subscriber. From the subscriber's perspective, they do not exist.
In some cases, a connection may both publish and subscribe to a topic. The subscriber
|
|
||||||||||||||||
|
Creates a nondurable subscriber to the specified topic.
A client uses a
Regular
In some cases, a connection may both publish and subscribe to a topic. The subscriber
|
|
||||||||||||
|
Creates a
Its lifetime will be that of the
Reimplemented from javax::jms::Session. |
|
||||||||||||||||
|
Creates a topic identity given a This facility is provided for the rare cases where clients need to dynamically manipulate topic identity. This allows the creation of a topic identity with a provider-specific name. Clients that depend on this ability are not portable.
Note that this method is not for creating the physical topic. The physical creation of topics is an administrative task and is not to be initiated by the JMS API. The one exception is the creation of temporary topics, which is accomplished with the
Reimplemented from javax::jms::Session. |
|
||||||||||||||||
|
Unsubscribes a durable subscription that has been created by a client. This method deletes the state being maintained on behalf of the subscriber by its provider.
It is erroneous for a client to delete a durable subscription while there is an active
Reimplemented from javax::jms::Session. |
1.4.1