Web Services Functions (Soap, WEB_SERVICE, Silverlight) > Alphabetical List of Functions > jms_receive_message_queue

jms_receive_message_queue

Receives a message from a queue.

Example: jms_receive_message_queue Web Services Functions (SOAP, WEB_SERVICE, Silverlight)
int jms_receive_message_queue( const char * StepName, const char * ReceiveQueueName);

This function returns LR_PASS (0) on success or LR_FAIL (1) on failure. Note that LR_PASS and LR_FAIL generally indicate whether the function call completed without an exception, and not that the test step succeeded.

All input string arguments (char type) except the step name can be parameterized using standard parameterization.

StepName The name of the step, as it appears in the test tree. Any text can be used.
ReceiveQueueName The JNDI name of the queue from which to receive the message.

The jms_receive_message_queue function receives a message from a queue.

VuGen identifies the queue by calling a lookup method on a JNDI context defined in the JMS run-time settings.

To filter the next received message, insert the jms_set_message_property function before this function call. Filters for queues only apply to the next received message. Filters for topics apply for the duration of the subscription.

When received, the message is saved in a VuGen output parameter called JMS_message.

This function fails, causing the script to stop (if the Continue on Error run-time setting is not selected) if: