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 |
2 comments:
i am getting below error at jms_subscribe_topic
Error: Failed to subscribe subscription1 on M.MKY_LTY.GLOBAL.XXXEngine.xxx.Evalxxxx.Request due to the following exception : java.lang.NullPointerException
java.lang.NullPointerException
at com.mercury.ws.jms.SessionManagerImpl.getTopicSession(SessionManagerImpl.java:81)
at com.mercury.ws.jms.JMSSupportImpl.subscribeTopic(JMSSupportImpl.java:125)
at com.mercury.ws.jms.JMSBridge.subscribe_topic(JMSBridge.java:68)
Action.c(48): Error: JMS call execution failed
Action.c(48): Continuing after error in Vuser script.
Thanks ffor writing this
Post a Comment