alexandrratush / as3-stomp

AS3 Stomp library, forked from https://code.google.com/p/as3-stomp/
5 stars 1 forks source link

activemq.exclusive cannot be set to false #13

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?

Setup a flash client to subscribe to a queue using the following code:

var stomp:StompClient = new StompClient();
stomp.connect("localhost", 61613);
var subscribeHeaders: SubscribeHeaders = new SubscribeHeaders();
subscribeHeaders.amqExclusive = "false";
stomp.subscribe(queue, subscribeHeaders); 

What is the expected output? What do you see instead?
Expected output is that two flash clients running the same swf file are able to 
consume a message X on the queue.

Instead only one of the clients get to consume the message.

What version of the product are you using? On what operating system?
The OS is windows 7 with flex builder 4.  We use Apache ActiveMQ v5.x

Please provide any additional information below.

Original issue reported on code.google.com by reuben.t...@gmail.com on 29 Jun 2010 at 3:50

GoogleCodeExporter commented 9 years ago
Hi Reuben,

I'll take a look.  Have you considered using a topic rather than a queue?

Original comment by dwischu...@gmail.com on 29 Jun 2010 at 4:14

GoogleCodeExporter commented 9 years ago
 Hi,
    Thanks for your reply.  I just tested this using topics and it works fine. I'm not very familiar with the protocol so I am not sure if the exclusive flag is intended to be used only with topics.  Although we prefer to use queues, we might be able to get away with using topics instead with our application. 

Original comment by reuben.t...@gmail.com on 29 Jun 2010 at 4:36