messaging
messaging copied to clipboard
Define standard MDB activation properties to allow the MDB pool to be configured
Should there be standard activation properties to allow the pool of MDB instances to be configured?
It's not clear whether this is desirable or not.
MDBs are defined in the EJB specification, not the JMS specification, so we would need to work with the EJB expert group on this.
MDBs aren't just for JMS, so we would need to consider is whether we'd want to define standard pooling properties just for JMS, or for all MDBs.
The EJB spec doesn't require a MDB (whether JMS or not) to be implemented using a pool of MDB instances. So in standardising pooling we may be trespassing on what is currently an implementation detail.
Most MDB pools are configured using multiple properties such as initialPoolSize, minPoolSize, maxPoolSize, steadyPoolSize and so on, depending on how the pool is implemented and what features it offers (e.g. some pools may allow the pool to grow and shrink whilst others might be fixed-size). Which of these are could be standardised and which of these would we have to leave as an implementation detail? It would probably be inappropriate to attempt to standardise them all.
On the other hand, the new Java EE 7 resource configuration features do introduce a notion of pooling for JMS connections (not MDBs). The new
Affected Versions
[2.0]
- Issue Imported From: https://github.com/javaee/jms-spec/issues/143
- Original Issue Raised By:@glassfishrobot
- Original Issue Assigned To: Unassigned
@glassfishrobot Commented Reported by @nigeldeakin
@glassfishrobot Commented This issue was imported from java.net JIRA JMS_SPEC-143
I would do this as part of modernized CDI based listeners and leave MDB behind.
Reza Rahman Jakarta EE Ambassador, Author, Blogger, Speaker
Please note views expressed here are my own as an individual community member and do not reflect the views of my employer.