GangXu / as3-stomp

Automatically exported from code.google.com/p/as3-stomp
0 stars 0 forks source link

incomplete broadcast support for topic and fanout exchanges in rabbitmq #10

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
I'm using the latest svn revision of the as3 stomp code.

The SubscribeHeaders object does not contain an 'exchange' header, or a
'routing_key' header, both of which are required in order to subscribe to
fanout or topic exchanges in rabbitmq.  Without the ability to specify
these headers, it is not possible to broadcast messages.

I was able to fix this functionality very quickly, by adding the required
headers to the SubscribeHeaders.as file, and recompiling the code.  After
making the necessary adjustments to the Sender and Receiver clients I was
able to then successfully send messages via the default amq.topic exchange
in rabbitmq.

Although there is a bit of AMQP bleeding through here, this is a very
trivial addition, and would provide some nice added functionality to future
version of this client library.

I have attached my modified versions of SubscribeHeaders.as where I have
added the additional headers.

Original issue reported on code.google.com by joes.mai...@gmail.com on 23 Sep 2008 at 5:05

Attachments:

GoogleCodeExporter commented 8 years ago
Thank you for the code.  I've rolled it into the latest release.

Original comment by dwischu...@gmail.com on 27 Oct 2008 at 5:42