Integration Server 10.7 | JMS Client Development Guide | Sending and Receiving JMS Messages | Receiving a JMS Message Using Built-In Services
 
Receiving a JMS Message Using Built-In Services
 
How to Actively Receive a JMS Message
At times, you might not want to wait for a JMS trigger to execute to receive a message. Instead, you might want to receive a message from the JMS provider on demand. Receiving a message on demand provides more control over when and how Integration Server receives a message; however, it may not be as efficient or practical as using a JMS trigger to listen for and then receive the message. You can use the pub.jms:receive service to retrieve messages on demand from the JMS provider.
To listen for messages and receive them when they are available, create a JMS trigger that listens to the destination. For more information about creating a JMS trigger, see webMethods Service Development Help.