Connected application hangs if the router instace is halted

View: New views
4 Messages — Rating Filter:   Alert me  

Connected application hangs if the router instace is halted

by indi_nabbel :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Dear Experts,

Before putting the application in production I was testing the swift mq messaging solution in our web application.

For test I connect my webapplication to the swiftmq queue and send few jms messages. After that I halted the active instance of the jms router using the explorer application shipped along with the swiftmq.

Now QueueSender.send() method hangs for the period of 15 mins. Same thing happens with the explorer application if router is shut down using the command line on the server. Explorer application stops responding and hang for the period of 10 -15 mins.

What should I do or change so that the application will not hang and send mehod call will return immediately with some exception. My application opens the connection at the start up and holds it in the singleton producer for the lifetime of the application.

Looking forward for your response.

Thanks in advance.

Best Regards

Re: Connected application hangs if the router instace is halted

by IIT Software :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

It tries to reconnect internally and transparently because transparent reconnect is enabled by default. Look here.

If you don't want transparent reconnect, you must disable it in the connection factory you use from your app. Example:

          <connection-factory name="QueueConnectionFactory" reconnect-enabled="false"/>



Re: Connected application hangs if the router instace is halted

by indi_nabbel :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Thanks for reply, I would try it tomorrow.

Re: Connected application hangs if the router instace is halted

by indi_nabbel :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Thanks for reply, I would try it tomorrow.