On 4/17/07, Alvaro Carrasco <[EMAIL PROTECTED]> 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/

Reply via email to