Performancing Metrics

Performance blog: SOAP Over JMS using Publisher - Subscriber Communication

Tuesday, January 12, 2010

SOAP Over JMS using Publisher - Subscriber Communication

Publish-Subscribe. Each message is sent from one publisher to many subscribers through a designated topic. The subscribers only receive messages sent after they have subscribed.
 
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 \r\n "",

"7051170660\r\n "\r\n \r\n "

"2009-01-08

" 000000000025835109\r\n "

" \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:

jay said...

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.

Roanoke Doors said...

Thanks ffor writing this