We can define the "maxSession" for MDB to control the concurrent thread by using the Annotation.
@ActivationConfigProperty(propertyName = "maxSession", propertyValue = "10").
But is it possible to set the "maxSession" at runtime? I mean can I define the property value in a properties file and set it to the MDB at runtime. So that I can adjust the value when necessary.
I have same issue, but I fear that it is not possible via java annotations. propertyValue attribute is declared as final, it cannot be changed at runtime.
I think that, if this one is the only mode to configure MDB thread pool, it is a JEE limit.