Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Creating a message selector subscription

The createConsumer and  and createDurableSubscriber methods allow you to specify a message selector as an argument when you create a message consumer.

You can create a message selector subscriber for a topic as shown in the following example:example given below. Note that the nolocal parameter is set to 'false' as it is not supported by WSO2 MB. However, messages will be delivered to the subscriber irrespective of the nolocal parameter.

Code Block
String messgeSelector="JMSType='AAAA'"; 
topicSession.createSubscriber(topic,messgeSelector,true)

...

false)