I checked this against AMQ 4.1, doesn't work either. Next I checked the source code (AMQ 4.0.2), the org.apache.activemq.transport.stomp has the following headers for:

1. SUBSCRIBE:

   * destination
   * ack
   * id
   * selector

2. CONNECT:

   * login
   * passcode
   * client-id
   * request-id


Nowhere does it mention the custom headers as documented here: http://incubator.apache.org/activemq/stomp.html

The question is, using Stomp protocol how do I create/use durable subscription ? Thanks

- Sandeep

Sandeep Chayapathi wrote:
Using the ProducerTool and ConsumerTool (in examples/src), I was able to create durable subscription and it worked. However with Stomp Im not able to create a durable subscription. I have checked the ruby client too, but it looks like the api does not support this yet.

- Sandeep

Sandeep Chayapathi wrote:
Hi,
Thanks. I have tried to create durable subscription, via Stomp, as documented here: http://incubator.apache.org/activemq/stomp.html but to no avail. Here is the CONNECT & SUBSCRIBE block that Im sending to the server:

=======
CONNECT
client-id:test
passcode:password
login:user
=======

------
SUBSCRIBE
activemq.SubscriptionName:test
destination:/topic/test
ack:auto
session:test
------

Im using ActiveMQ 4.0.2.

- Sandeep

James Strachan wrote:
Either use a topic and durable subscriptions for each consumer or use
virtual topics to achieve the same kind of thing but allowing you to
use queues to consume

http://activemq.org/site/new-features-in-41.html

On 8/22/06, Sandeep Chayapathi <[EMAIL PROTECTED]> wrote:
Hi,
 I have a system where multiple consumers need to process the same
message. For eg: one consumer, generates a email based on the message
and another consumer applies some business rule on the same message, and
so on.

 Initially I had a topic so that all the consumers would receive the
message. However I need to ensure that if a consumer had to be stopped &
restarted, it would process all the message that it missed.  I could
setup a queue for each consumer, but since the consumers can be
added/removed dynamically, it is ruled out. Any idea on how I should
setup activemq for this ? Thanks.

- Sandeep






Reply via email to