rabbitmq / rabbitmq-erlang-client

Erlang client for RabbitMQ
https://www.rabbitmq.com/
Other
184 stars 127 forks source link

Allow declaring exchanges from STOMP #131

Closed sparkyb closed 3 years ago

sparkyb commented 4 years ago

The STOMP plugin uses rabbit_routing_util:ensure_endpoint to declare a queue based on a destination path. However, if that path is an exchange, currently it will not declare the exchange, it must already exist. With this change, if a declare_exchange parameter is passed and set to true, the destination exchange will be declared. Additional parameters may be passed to specify exchange properties: type, durable, autodelete, and arguments. All of these must be prefixed with exchange to distinguish them from parameters that specify similarly named properties of the queue the exchange will be bound to.

pivotal-issuemaster commented 4 years ago

@sparkyb Please sign the Contributor License Agreement!

Click here to manually synchronize the status of this Pull Request.

See the FAQ for frequently asked questions.

pivotal-issuemaster commented 4 years ago

@sparkyb Thank you for signing the Contributor License Agreement!

lukebakken commented 3 years ago

New pull request: https://github.com/rabbitmq/rabbitmq-server/pull/2639