cancel
Showing results for 
Search instead for 
Did you mean: 

Soap request gets stuck in JMS queue infinitely

Highlighted
New Contributor

Soap request gets stuck in JMS queue infinitely

Hello,

I have an urgent issue to be resolved.

In my soap project , I am sending Soap request in JMS queue and next step in the testcase is to verify the response through groovy script. Sometimes due to environment issue, the requests are getting stuck in the queues, in that case the request runs infinitely. I want to it stop/timeout after certain period and go to next step in the Testcase which is groovy script. But unless it comes out of this soap request step it will not go to next step. Any way to help me out of this?

 

 

If any other info needed pls let me know.

 

Thankyou in advance,

Shobha

5 REPLIES 5
Highlighted
Community Hero

Re: Soap request gets stuck in JMS queue infinitely

Script assertion can be used insted of groovy script step.

Socket timeout in the preferences works for HTTP requests, not sure for JMS case.

Does it always happens? Which JMS vendor?

Possible to show screen shot of endpoint?


Regards,
Rao.
Highlighted
New Contributor

Re: Soap request gets stuck in JMS queue infinitely

Hi Nmrao,

 

Thanks for the response.

I have already tried both script assertion and socket timeout , but did not help.

I think script assertion will only come in picture once that request is complete, which does not happen in my case.

 

Issue comes only when there is environment or any other issue , request gets stuck in JMS queue.

Actually I am  invoking testrunner batch file and scheduled to run it at intervals. So it creates problem at that point.

Sorry i cannot show screenshots of endpoint. 😞

 

 I have googled alot but dead end till now.

Highlighted
Community Hero

Re: Soap request gets stuck in JMS queue infinitely

Do you mean to say, it works at times?


Regards,
Rao.
New Contributor

Re: Soap request gets stuck in JMS queue infinitely

Hi,

yes it works at times. Not sure if you understood my problem. In case the request gets stuck in queue , corresponding soap request runs forever. Is there any way to terminate it and go to next step or maybe terminate that testcase itself in soapUI.

 

 

Highlighted
Community Hero

Re: Soap request gets stuck in JMS queue infinitely

You haven't specified jms vendor.

Anyways, try timeout on jms. You have to check what vendor supports.
https://stackoverflow.com/questions/7526367/jms-timeout-or-timetolive
SOAPUI allows users to send jms properties as headers in the request.


Regards,
Rao.
New Here?
Join us and watch the welcome video:
Top Kudoed Authors