activemq-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "James Strachan" <james.strac...@gmail.com>
Subject Re: Stomp and durable-subscriber-name
Date Tue, 17 Apr 2007 18:31:35 GMT
On 4/17/07, Alvaro Carrasco <alvaro@epliant.com> wrote:
> Hi,
>  From the docs, it seems that to create a durable subscriber using stomp
> you need to use the header: activemq.subscriberName
>
> Why are we not using the header "durable-subscriber-name" described in
> http://stomp.codehaus.org/Stomp+JMS? (maybe that didn't exist when the
> stomp transport was written)
>
> I think, all it would take is adding the header to the
> Stomp.Headers.Subscribe interface and setting it in FrameTranslator.java:
>
>           +  o =
> headers.remove(Stomp.Headers.Subscribe.DURABLE_SUBSCRIBER_NAME);
>           + if (o != null) {
>           +      msg.setObjectProperty("activemq.subscriptionName",
> (string) o);
>           + }
>
>
> Alvaro

Its purely a case that the Stomp+JMS came later. We really could do
with revving Stomp to 1.0 or 1.1 to tidy up a few headers we'd used.

I think the latest ActiveMQ should support the cleaner header names
from Stomp+JMS (if it doesn't we can fix it easily).
-- 

James
-------
http://radio.weblogs.com/0112098/

Mime
View raw message