This week's book giveaway is in the Kotlin forum.
We're giving away four copies of Kotlin in Action and have Dmitry Jemerov & Svetlana Isakova on-line!
See this thread for details.
Win a copy of Kotlin in Action this week in the Kotlin forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Thridpary MDB listener Increase size  RSS feed

Praful Thakare
Ranch Hand
Posts: 643
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

I am not able to connects the dots between Self-Tuning Thread Pool Threads ,number of MDB's and Open connection to Queue Manager (Listeners).

Following is my setting

1 Self-Tuning Thread Pool : Default i.e 5
2) Initial Beans in Free Pool: 100
3) Max Beans in Free Pool : 200

What i see

Pool Current Count :- 100 (this is as expected)
On start up of server 105 MDB's are created (No problem with this ) (Have put static variable incrementing in constructor)
When Messages are sent to MQ (50-100) the "Beans In Use Count" under Monitoring never shows more then 16
and finally the "open MQ Count" on MQ Explorer is always 16.


1) What do i need to change, for increasing the count of "Beans In Use Count" and "open MQ Count" on MQ Explorer to be more than 16?
2)If the Self-Tuning thread pool is 5, how come 16 beans are executed at once? or its just that 16 are picked from pool and only 5 are executed at given time?

NOTE:- I am using weblogic app server to connecto IBM MQ with JMS Module, so creating the customer WorkManager and attaching it to my listener (MDB) is not supported by weblogic, it says <Warning> <EJB> <BEA-014005> <The configured dispatch policy "com.some.workmanager.mylistener" for message driven bean (MDB) "mylistener" will be ignored: the MDB is not running in a WebLogic thread.>

Vishal Salunkhe
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Are you using bean-managed transaction or container-managed txn?

If it's former then it would be a problem, try using container maanged txn.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!