Share this page

# Example: jms_subscribe_topic

This example shows how to set a custom selector for a subscription. Any message for a specific topic whose flag value is set to "no" is received.

`jms_set_message_property("selector_step", "JMSSelector", "flag = \'no\'");`

jms_subscribe_topic`("subscribe_step", "subscription_1", "testTopic");`

`jms_publish_message_topic("publish_step", "message to publish", "testTopic");`

`jms_receive_message_topic("receive_step", "subscription_1", "testTopic");`

`lr_output_message(lr_eval_string("message : \n{JMS_message}\n"));`

Tips to improve your search results... VuGen Function Reference Version 25.1-25.3 Function Reference 25.1-25.3 All View Local Help Center View Online Help Center Version: