activemq-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Justin Bertram (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (ARTEMIS-549) Add ability to create durable subscription via configuration
Date Thu, 21 Jul 2016 21:41:20 GMT

    [ https://issues.apache.org/jira/browse/ARTEMIS-549?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15388484#comment-15388484
] 

Justin Bertram commented on ARTEMIS-549:
----------------------------------------

This should already be possible since the Stomp implementation creates queues for durable
subscriptions in a deterministic way (i.e. using the format of {{client-id}}.{{subscription-name}}).
 For example, if you wanted to configure a durable subscription on the JMS topic {{myTopic}}
with a client-id of {{myclientid}} and a subscription name of {{mysubscriptionname}} then
first you'd configure the topic:

{code:xml}
   <jms xmlns="urn:activemq:jms">
      <topic name="myTopic"/>
   </jms>
{code}

Then configure the durable subscription:

{code:xml}
   <core xmlns="urn:activemq:core">
      ...
      <queues>
         <queue name="myclientid.mysubscription">
            <address>jms.topic.myTopic</address>
         </queue>
      </queues>
      ...
   </core>
{code}

> Add ability to create durable subscription via configuration
> ------------------------------------------------------------
>
>                 Key: ARTEMIS-549
>                 URL: https://issues.apache.org/jira/browse/ARTEMIS-549
>             Project: ActiveMQ Artemis
>          Issue Type: New Feature
>    Affects Versions: 1.2.0
>            Reporter: Justin Bertram
>




--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Mime
View raw message