One Developer
One Developer

Reputation: 566

Spring Boot connecting to IBM MQ Cloud

I'm trying to send a message to a IBM MQ queue from my spring boot service. I could send/receive the message from the IBM MQ installed on my laptop.

However when I replaced the configuration to connect to the IBM MQ Cloud, this is not working

Configuration is as follows:

enter image description here

getting the following error

enter image description here

Note:

Upvotes: 1

Views: 580

Answers (2)

PS_01
PS_01

Reputation: 81

Usually, the most common reason for Error Code 2009: MQRC_CONECTION_BROKEN is that your JMS client opens up multiple connections to the queue and they remain unclosed even though they're not being used. You then eventually run out of channels. You can increase the channel size to more than double of what is required.

Check your FFST log file generated by IBM MQ classes for JMS. It gives you detailed info on connections/errors:

First Failure Support Technology ( FFST ) files

Upvotes: 1

Tnadev
Tnadev

Reputation: 10082

It seems to be a known issue:

The connection may be broken for a number of different reasons. The 2009 return code indicates that something prevented a successful connection to the Queue Manager. The most common causes for this are the following are:

  1. A firewall that is terminating the connection
  2. An IOException that causes the socket to be closed
  3. An explicit action to cause the socket to be closed by one end
  4. The queue manager is offline
  5. The maximum number of channels allowed by the queue manager are open
  6. A configuration problem in the Queue Connection Factory (QCF)

Can you please try suggestions from here

Upvotes: 1

Related Questions