[jboss-dev-forums] [JBoss ESB Development] - Durable Subscriptions - JMS Listeners

Tom Fennelly do-not-reply at jboss.com
Mon Jun 21 12:12:45 EDT 2010


Tom Fennelly [http://community.jboss.org/people/tfennelly] created the discussion

"Durable Subscriptions - JMS Listeners"

To view the discussion, visit: http://community.jboss.org/message/548994#548994

--------------------------------------------------------------
I'm looking at adding durable subscriptions for the JMS listeners ala  https://jira.jboss.org/browse/JBESB-1890 https://jira.jboss.org/browse/JBESB-1890

What I have at the moment results in a config like the following (note the +durableSubscriptionName+ attribute):

<jms-listener name="JMS-Gateway" busidref="quickstart-topic" is-gateway="true" durableSubscriptionName="quickTopic_service2" />



So... at the moment it's not actually on the <jms-message-fileter> config as per the JIRA.  I think it needs to be on the listener because each subscriber needs to have a unique subscription name, or you get an exception from the JMS Provider i.e. if you have 2 listeners listening to the same topic and both are durable, they both need to have unique subscription names i.e. it's on a per listener basis.

There's also a new (optional) clientId attribute on the jms-listener.  This is needed for durable subs.  It is set on the associated JMS Connection, which means it becomes part of the pool key, so as to have a connection pool per clientId.  If the clientId is not configured on the listener (but +durableSubscriptionName+ is configured), we default to the clientId to the listener name value.

Does this seem OK, or am I mising something?

--------------------------------------------------------------

Reply to this message by going to Community
[http://community.jboss.org/message/548994#548994]

Start a new discussion in JBoss ESB Development at Community
[http://community.jboss.org/choose-container!input.jspa?contentType=1&containerType=14&container=2032]

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/jboss-dev-forums/attachments/20100621/a17213ac/attachment.html 


More information about the jboss-dev-forums mailing list