A sample script to Publish and Subcribe JMS messages to TIBCO using LoadRunner
Action()
{
//Sample Queue Name - TIBQ1.SAP.SyncOrder.ADSKOrder
jms_subscribe_topic("subcribe_step", "subscription_1", "TIBQ1.SAP.SyncOrder.ADSKOrder");
// Publishes messages to a specific topic
jms_publish_message_topic("Publish",
"\r\n
"
"2009-01-08
"
" \r\n
"TIBQ1.SAP.SyncOrder.ADSKOrder");
//Receives published messages to a specific topic on a subscription
jms_receive_message_topic("receive_step", "subscription_1", "TIBQ1.SAP.SyncOrder.ADSKOrder");
//Received messages are saved in the JMS_message parameter
lr_output_message(lr_eval_string("message : \n{JMS_message}\n"));
return 0;
}
JMS RuntimeSettings
JMS Runtime Settings |