Skip to main content

[ejb-spec issues] [JIRA] Work started: (EJB_SPEC-41) Define mandatory activation config properties for JMS MDBs

  • From: "marina vatkina (JIRA)" <jira-no-reply@...>
  • To: issues@...
  • Subject: [ejb-spec issues] [JIRA] Work started: (EJB_SPEC-41) Define mandatory activation config properties for JMS MDBs
  • Date: Tue, 29 Jan 2013 22:30:53 +0000 (GMT+00:00)
  • Auto-submitted: auto-generated


     [ 
http://java.net/jira/browse/EJB_SPEC-41?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Work on EJB_SPEC-41 started by marina vatkina.

> Define mandatory activation config properties for JMS MDBs
> ----------------------------------------------------------
>
>                 Key: EJB_SPEC-41
>                 URL: http://java.net/jira/browse/EJB_SPEC-41
>             Project: ejb-spec
>          Issue Type: Improvement
>    Affects Versions: 3.2
>            Reporter: Nigel Deakin
>            Assignee: marina vatkina
>            Priority: Critical
>             Fix For: 3.2
>
>
> 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|http://java.net/jira/browse/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 
> {noformat}
> @MessageDriven(activationConfig =  {
>     @ActivationConfigProperty(propertyName = "subscriptionDurability.", 
> propertyValue = "Durable"),
>     @ActivationConfigProperty(propertyName = "clientId", propertyValue = 
> "MyMDB"),
>     @ActivationConfigProperty(propertyName = "subscriptionName", 
> propertyValue = "MySub")
> })
> {noformat}
> or in {{ejb-jar.xml}}:
> {noformat}
> <ejb-jar>
>   <enterprise-beans>
>     <message-driven>
>       <ejb-name>test.MyMDB</ejb-name>
>       <activation-config>
>          <activation-config-property>
>             
> <activation-config-property-name>subscriptionDurability</activation-config-property-name>
>             
> <activation-config-property-value>Durable</activation-config-property-value>
>          </activation-config-property>
>          <activation-config-property>
>             
> <activation-config-property-name>clientId</activation-config-property-name>
>             
> <activation-config-property-value>MyMDB</activation-config-property-value>
>          </activation-config-property>
>          <activation-config-property>
>             
> <activation-config-property-name>subscriptionName</activation-config-property-name>
>             
> <activation-config-property-value>MySub</activation-config-property-value>
>          </activation-config-property>                  
>       </activation-config>
>     </message-driven>
>   </enterprise-beans>
> </ejb-jar>
> {noformat}

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: 
http://java.net/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        


[ejb-spec issues] [JIRA] Work started: (EJB_SPEC-41) Define mandatory activation config properties for JMS MDBs

marina vatkina (JIRA) 01/29/2013
 
 
Close
loading
Please Confirm
Close