[rabbitmq-discuss] STOMP Plugin: Alternative exchange other than amq.topic?
Steve Powell
steve at rabbitmq.com
Tue Feb 21 18:25:07 GMT 2012
Hi Ken,
It is possible for you to SEND to the exchange of your choice from a STOMP
application, using a destination of the form: /exchange/<name>/<pattern> (see
http://www.rabbitmq.com/stomp.html#d.ed) and there is no reason why this
shouldn't be a topic exchange of your own making.
If you need to SUBSCRIBE to AMQP destinations you can use the destination
/amq/queue/<name> (but the queue must exist).
Between them, these should allow you to use STOMP with federated exchanges
without plugin modifications.
Let us know how you get on.
Steve Powell (a federated bunny)
----------some more definitions from the SPD----------
vermin (v.) Treating the dachshund for roundworm.
chinchilla (n.) Cooling device for the lower jaw.
socialcast (n.) Someone to whom everyone is speaking but nobody likes.
On 20 Feb 2012, at 16:19, Ken Simon wrote:
> Greetings,
>
> I'm trying to get federation working (via the rabbitmq_federation
> plugin) in our environment of STOMP hosts, and to do so I have to
> enable federation in the STOMP plugin's exchange: amq.topic. This
> unfortunately doesn't seem to work because amq.* exchanges are
> reserved and cannot be re-declared.
>
> My solution at this point has been to edit the source of the STOMP
> plugin and point it at an exchange called "stomp_topic" (which I made
> up, but could be anything) instead of the default amq.topic. Then I
> just configure the federation plugin to work with that exchange and it
> works fine.
>
> My question is, is there a better way of doing this? I hate
> maintaining my own downstream changes to plugins if I don't have to.
> The docs say that the STOMP plugin routes all messages through
> amq.topic, so it appears that's not configurable. But wouldn't it
> make sense to allow use of an exchange that's not reserved? Or am I
> missing something, and this is actually way easier? I'm having
> trouble finding any documented cases of people using both STOMP and
> federation.
>
> Thanks,
>
> --
> Ken
> _______________________________________________
> rabbitmq-discuss mailing list
> rabbitmq-discuss at lists.rabbitmq.com
> https://lists.rabbitmq.com/cgi-bin/mailman/listinfo/rabbitmq-discuss
More information about the rabbitmq-discuss
mailing list