How to fix JMS Listener issue illegalstateexception: Pool not open in Spring boot with ASB

Dhanjee Yadav 0 Reputation points
2024-09-05T17:22:13.9866667+00:00

Issue: JMS Listener is not consuming the message throwing exception like illegalstateexception: Pool not open

  • Dependencies:

spring-cloud-azure-dependencies: 5.9.1

spring-cloud-azure-starter-servicebus-jms: 5.9.1

spring-boot-starter-parent: 3.0.13

  • Application.yaml:

jms:

servicebus:

enabled: false

connection-string:

passwordless-enabled: false

namespace: xxxxxxx

pricing-tier: premium

pool:

enabled: true

maxConnections: 25

idle-timeout: :360000

listener:

acknowledge-mode: CLIENT

auto-startup: true

concurrency: 2

max-concurrency: 10

Exception:

org.springframework.jms.IllegalStateException: java.lang.IllegalStateException: Pool not open

at org.springframework.jms.support.JmsUtils.convertJmsAccessException(JmsUtils.java:274) ~[spring-jms-6.0.17.jar!/:6.0.17] 

at org.springframework.jms.support.JmsAccessor.convertJmsAccessException(JmsAccessor.java:184) ~[spring-jms-6.0.17.jar!/:6.0.17] 

at org.springframework.jms.core.JmsTemplate.execute(JmsTemplate.java:510) ~[spring-jms-6.0.17.jar!/:6.0.17] 

at org.springframework.jms.core.JmsTemplate.send(JmsTemplate.java:587) ~[spring-jms-6.0.17.jar!/:6.0.17] 
Azure Service Bus
Azure Service Bus
An Azure service that provides cloud messaging as a service and hybrid integration.
653 questions
Azure Spring Apps
Azure Spring Apps
An Azure platform as a service for running Spring Boot applications at cloud scale. Previously known as Azure Spring Cloud.
130 questions
0 comments No comments
{count} votes

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.