cancel
Showing results for 
Search instead for 
Did you mean: 

How to config JMS setting for using the same sent/received queue ?

Occasional Contributor

How to config JMS setting for using the same sent/received queue ?

Hi,

I want to use Soapui to test JMS webservice, and we use the same queue for sent/receive queues like this: 

jms://SmartOTP_EMS::queue_vn.smartotp_gw.1.0::queue_vn.smartotp_gw.1.0

 

But there is a problem: The respone window always show request message, and I didn't get the response content correctly. 

 

Do you know how to fix this in (we don't want to use different queues for destinations) ?

5 REPLIES 5
Moderator

Re: How to config JMS setting for using the same sent/received queue ?

Hi taibc,

 

Thank you for your post. The response which you get will depend on what you get in the queue at the moment. 

 

For example, if your queue is empty, and, then,  you run this test step in ReadyAPI:

jms://SmartOTP_EMS::queue_vn.smartotp_gw.1.0::queue_vn.smartotp_gw.1.0

you will get the same message as you have in the request.

 

But, if you have the "Another message" in the queue and you run the same test step in ReadyAPI, you will get the "Another message" as a response. And, the Request message will stay in the queue until someone gets it from there.

 


Anastasia
Customer Care Team

Did my reply answer your question? Give Kudos or Accept it as a Solution to help others.
Occasional Contributor

Re: How to config JMS setting for using the same sent/received queue ?

@Nastya_Khovrina : Thank you,

 

As you said: "The response which you get will depend on what you get in the queue at the moment.".

 

How can I config to sure that I get the correct response content (I don't want to receive another message). In soapui, we can use JMSCorrelationID for this ?

Moderator

Re: How to config JMS setting for using the same sent/received queue ?

taibc,

 

Yes, you can use the JMSCorrelationID header for this.

 


Anastasia
Customer Care Team

Did my reply answer your question? Give Kudos or Accept it as a Solution to help others.
Occasional Contributor

Re: How to config JMS setting for using the same sent/received queue ?

@Nastya_Khovrina Could you please send me a demo for using JMSCorrelationID  header with the same queue (send/receive)

Moderator

Re: How to config JMS setting for using the same sent/received queue ?

Hi taibc,

 

Unfortunately, we don't have a ready example at hand. Maybe the following articles will be useful for you:

https://docs.oracle.com/html/E13943_04/WebLogic.Messaging.IMessage.JMSCorrelationID.html

https://www-01.ibm.com/support/docview.wss?uid=swg21440780

https://stackoverflow.com/questions/23299147/how-to-set-jmsmessageid-and-jmscorrelationid-properly

 

 


Anastasia
Customer Care Team

Did my reply answer your question? Give Kudos or Accept it as a Solution to help others.
New Here?
Join us and watch the welcome video:
Top Kudoed Authors