-
Notifications
You must be signed in to change notification settings - Fork 1
Define mandatory activation config properties for JMS MDBs #41
Comments
Reported by @nigeldeakin |
Issue-Links: |
Was assigned to mvatkina |
@nigeldeakin said:
to this:
|
mvatkina said: |
mvatkina said: |
Marked as fixed on Monday, February 25th 2013, 5:27:37 pm |
smarlow said: Another question, depending on the response to the above. May the MDB container set a unique subscriptionName, if the subscriptionName is not provided? Thank you, |
This issue was imported from java.net JIRA EJB_SPEC-41 |
This is a request for the EJB 3.2 spec to add additional activation configuration properties clientId and subscriptionName for JMS message-driven beans as follows:
Section 5.4 of the EJB 3.1 spec currently defines the the following activation configuration properties for JMS message-driven beans:
acknowledgeMode (optional, default is AUTO_ACKNOWLEDGE)
messageSelector (default is an empty String)
destinationType (optional, no default)
subscriptionDurability (default is NonDurable)
This should be extended to define the following additional activation configuration properties:
clientId
subscriptionName
These property names match those recommended in JCA 1.6.
If set, clientId would be used to set clientId for the connection used by the MDB, and must be unique in accordance with JMS 1.1. There would be no default value. JMS 1.1 states that clientId must be set if a durable subscription is being used. However in JMS 2.0 JMS_SPEC-39 proposes that this requirement would be removed and clientId would always be optional.
If a durable subscription is being used, then JMS requires that subscriptionName be set. In the case of a MDB the subscriptionName is normally given a name unique to the MDB, to distinguish it from other MDBs and other applications subscribed to the same topic. It is therefore proposed that the EJB specification state that if the subscription is durable and subscriptionName is not set then the container will automatically set subscriptionName to the name of the MDB.
As with the existing activation configuration properties for JMS message-driven beans defined in the EJB specification, clientId and subscriptionName could be specified either using the MessageDriven annotation
or in ejb-jar.xml:
Affected Versions
[3.2]
The text was updated successfully, but these errors were encountered: