Hi All,
I have installed Active MQ and created a Queue named GURU and trying to send a message using Loadrunner Webservice PROTOCOL script,i have configured the below runtime settings:-
My Loadrunner script:-
Action()
{
jms_set_general_property("Attempt1",
"JMS_MESSAGE_TYPE",
"TextMessage");
jms_send_message_queue("Send2",
"HI THIS FROM LR",
"GURU");
return 0;
}
When i ran the above code i am getting the following error:-
Error:Failed to send message HI THIS FROM LR to GURU due to the following exception : javax.naming.NameNotFoundException: GURU
javax.naming.NameNotFoundException: GURU
at org.apache.activemq.jndi.ReadOnlyContext.lookup(ReadOnlyContext.java:235)
at javax.naming.InitialContext.lookup(Unknown Source)
at com.mercury.ws.jms.SessionManagerImpl.getQueue(SessionManagerImpl.java:94)
at com.mercury.ws.jms.JMSSupportImpl.sendMessageQueue(JMSSupportImpl.java:96)
at com.mercury.ws.jms.JMSBridge.send_message_queue(JMSBridge.java:43)
Action.c(23): Error:JMS call execution failed
Ending action Action.
Please let me know what went wrong here.
NOTE:-I am able to send a message to Queue named GURU by ACTIVE MQ web console.