question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

JMS for Service Bus standard AMQP session timeout

See original GitHub issue

Copied from https://github.com/microsoft/azure-spring-boot/issues/930.

hi Team, We have a issue with JMS AMQP session timeout. And it make the system cannot get the message for a while.

the error message is :

Aug 01, 2020 11:25:50 AM org.springframework.jms.connection.SingleConnectionFactory onException
WARNING: Encountered a JMSException - resetting the underlying JMS Connection org.apache.qpid.amqp_1_0.jms.MessageConsumerException: Force detach the link because the session is remotely ended.
at org.apache.qpid.amqp_1_0.jms.impl.MessageConsumerImpl$1.run(MessageConsumerImpl.java:143)
at java.lang.Thread.run(Thread.java:745)

Aug 01, 2020 11:25:50 AM org.springframework.jms.listener.DefaultMessageListenerContainer handleListenerSetupFailure
WARNING: Setup of JMS message listener invoker failed for destination 'org.apache.qpid.amqp_1_0.jms.impl.QueueImpl@6c292189' - trying to recover. Cause: Force detach the link because the session is remotely ended

We checked the document from https://docs.microsoft.com/en-us/azure/developer/java/spring-framework/configure-spring-boot-starter-java-app-with-azure-service-bus it only have spring.jms.servicebus.idle-timeout | Specify the idle timeout in milliseconds. The recommended value for this tutorial is 1800000.

In addition, for this document https://docs.microsoft.com/en-us/azure/service-bus-messaging/service-bus-java-how-to-use-jms-api-amqp also don’t have the session error information.

I checked online, there have one person said:

The JMS Session instance can not be used concurrently by multiple threads, so the best advise is to create the JMS Session on each thread you are using and close the jms session when you have finished that unit of work (sending a message or a collection of messages in a transaction)

Is that correct? for this issue how we can do anything to prevent it. Thank you

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:5 (2 by maintainers)

github_iconTop GitHub Comments

2reactions
Scarlettliuyccommented, Aug 26, 2020

hi team thank you so much for your help, the issue has fixed. After change the session timeout time, the issue not happen any more.

we are grateful for all of yours help, you can close this issue first.

Best regards, Scarlett

0reactions
chenrujuncommented, Aug 27, 2020

Hi, @Scarlettliuyc Thank you very much for your feedback.

Could you please tell us how to change the session timeout time ?

Read more comments on GitHub >

github_iconTop Results From Across the Web

Use AMQP with the Java Message Service 1.1 API and Azure ...
This article explains how to use Service Bus messaging features from Java applications by using the popular JMS API standard. These messaging ...
Read more >
Azure Service Bus : Amqp Idle Timeout condition = amqp:link ...
This error occurs when an order exceeds the idle time then the connection with the Azure Service Bus fails and in order to...
Read more >
Integration Server support for AMQP with providers (Azure ...
Having a short idle timeout will have frequent connection refresh, so I would recommend to change the default idle timeout. The documentation ...
Read more >
How to Connect to Microsoft Azure Service Bus with the JMS ...
Once a message is returned by a queue in Service Bus, it is locked for a certain amount of time configured in the...
Read more >
Using Azure Service Bus with Spring JMS - Ramblings, Technical
Because it is based on the AMQP 1.0 standard, Service Bus can be used across ... At the time of this writing, version...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found