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("subcribe_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"));