1

Is there any connection pool library for Websphere MQ in Java? I tried to implement connection pool for WebSphere MQ using Apache Commons Pool, but it didn't work.

Justin Bertram
  • 29,372
  • 4
  • 21
  • 43
Raju Parashar
  • 312
  • 4
  • 17

1 Answers1

1

Checkout https://github.com/messaginghub/pooled-jms. It was forked from the mature ActiveMQ JMS Pool and enhanced to provide JMS 2.0 functionality. It is generic (i.e. no ties to ActiveMQ) so it will work with any JMS implementation.

Justin Bertram
  • 29,372
  • 4
  • 21
  • 43
  • Did you take a look at the link I posted in my answer? It has the relevant documentation along with an example demonstrating how to use the pool. As far as the API goes, it's essentially just the JMS API. Please refer to the link I provided for additional details. – Justin Bertram Oct 04 '18 at 13:22
  • How we can achieve connection polling without adding this dependency – Nilay Tiwari Oct 28 '20 at 10:31
  • Rather than comment on this question (which has already been answered) you need to ask a new one, @NilayTiwari. – Justin Bertram Oct 28 '20 at 12:27
  • @NilayTiwari, I saw the [other question you posted](https://stackoverflow.com/questions/64571304/jms-connection-pooling-with-ibm-mq-client) which is basically just a duplicate of this one. You didn't say that you didn't want to add this (or any) dependency. If you want a connection pool you will either have to add a dependency or implement your own pool. – Justin Bertram Oct 28 '20 at 18:50