Search code examples
jbossglassfishmessage-driven-bean

How to configure pool size of Message Driven Bean


I would like to configure the pool size of a MDB but just one. I deploy my application on JBOSS 6 or Glassfish 3 so the solution must be standard.

I found for JBOSS maxSession for @ActivationConfigProperty but it is not standard For glassfish i don't find anything to create sun-ejb-jar.xml ...

Can you help me ? thanks.


Solution

  • For glassfish, you can specify bean's max-pool-size to 1 in glassfish-ejb-jar.xml. See deployment guide.