users@glassfish.java.net

<jms-durable-subscription-name> vs. <activation-config-property-name> ?

From: <glassfish_at_javadesktop.org>
Date: Tue, 04 Dec 2007 19:13:00 PST

Is it preferred to specify the durable subscription name using the <jms-durable-subscription-name> or as a activation-config property?

Is one way for backward compatibility? Which is preferred?

Also, is it possible to define a subscription to a topic at the MQ level rather than in a bean deployment descriptor? This doesn't seem to be an option.

The connection pool connector-resource takes a ClientId property, but lacks a corresponding way of entering the subscription name. Aren't both ClientID and SubscriptionName required?

    <ejb>
      <ejb-name>HubToFabSea01SubscriberMDBean</ejb-name>
      <jndi-name>jms/HubToFabTopic</jndi-name>
      <mdb-connection-factory>
        <jndi-name>jms/HubToFabSea01TopicFactory</jndi-name>
      </mdb-connection-factory>
     [b] <jms-durable-subscription-name>FabSea01DurableSubscription</jms-durable-subscription-name>[/b] <mdb-resource-adapter>
        <activation-config>
           <activation-config-property>
             <activation-config-property-name>acknowledgeMode</activation-config-property-name>
             <activation-config-property-value>Auto-acknowledge</activation-config-property-value>
           </activation-config-property>
           <activation-config-property>
             <activation-config-property-name>destinationType</activation-config-property-name>
             <activation-config-property-value>javax.jms.Topic</activation-config-property-value>
           </activation-config-property>
           <activation-config-property>
             <activation-config-property-name>subscriptionDurability</activation-config-property-name>
             <activation-config-property-value>Durable</activation-config-property-value>
           </activation-config-property>
<!-- ***** also see the jms/HubToFabSan01TopicFactory entry in sun-resources.xml ***** -->
           <activation-config-property>
             <activation-config-property-name>clientId</activation-config-property-name>
             <activation-config-property-value>FabSea01</activation-config-property-value>
           </activation-config-property>
[b] <activation-config-property>
             <activation-config-property-name>subscriptionName</activation-config-property-name>
             <activation-config-property-value>FabSea01</activation-config-property-value>
           </activation-config-property>[/b]
<!-- ***** -->
           </activation-config>
      </mdb-resource-adapter>
    </ejb>
[Message sent by forum member 'frenchdrip' (frenchdrip)]

http://forums.java.net/jive/thread.jspa?messageID=248555