1

Everytime my application starts up it is spinning two "active" MDB connections, and we want to restrict it to only 1 active while the rest should be inactive. I tried putting the following

maxPoolDepth="1"
maxMessages="1"

But still there are two active session every time I startup the application on Open liberty. Whereas it works fine only single thread on local developer's machine when he added maxPoolDepth="1". It only keep 1 session active at a time.

Also note when I change the maxPoolDepth to 0 on the server then there are no active connections, but when I change it to 1 it opens two active connections.

Daniyal
  • 11
  • 2
  • Are you trying to limit the number of concurrent messages being processed by the MDB ? Or are you monitoring the number of connections somehow? (Or both?) Are you using MQ or Liberty embedded messaging as the JMS provider? – Scott Kurz Aug 08 '21 at 11:19
  • hi @ScottKurz , trying to limit the number of concurrent message processing, we want only 1 thread "active" for that queue., irrespective of number of connections. using MQ at the backend. – Daniyal Aug 13 '21 at 13:55
  • Were you able to find a solution to this? I'm trying to do the same with OpenLiberty – Zak Mar 08 '23 at 18:34

0 Answers0