messaging icon indicating copy to clipboard operation
messaging copied to clipboard

Define standard MDB activation properties to allow the MDB pool to be configured

Open glassfishrobot opened this issue 11 years ago • 4 comments

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 deployment descriptor element has the sub-elements and , and the new javax.jms.ConnectionFactoryDefinition annotation has the attributes minPoolSize and maxPoolSize. So this does offer precedent for defining pooling properties.

Affected Versions

[2.0]

glassfishrobot avatar Nov 20 '13 11:11 glassfishrobot

  • Issue Imported From: https://github.com/javaee/jms-spec/issues/143
  • Original Issue Raised By:@glassfishrobot
  • Original Issue Assigned To: Unassigned

glassfishrobot avatar Feb 12 '18 18:02 glassfishrobot

@glassfishrobot Commented Reported by @nigeldeakin

glassfishrobot avatar Nov 20 '13 11:11 glassfishrobot

@glassfishrobot Commented This issue was imported from java.net JIRA JMS_SPEC-143

glassfishrobot avatar May 02 '17 10:05 glassfishrobot

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.

m-reza-rahman avatar May 29 '21 21:05 m-reza-rahman