Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unable to use default exchange #33

Open
verwilst opened this issue Nov 28, 2017 · 4 comments
Open

Unable to use default exchange #33

verwilst opened this issue Nov 28, 2017 · 4 comments

Comments

@verwilst
Copy link

Setting exchange to '' gives the error that the exchange parameter isn't provided in the config.
$channel->basic_publish() in php-amqplib accepts '' as the default exchange though, sending to a queue with the same name as the routing key.
Another issue ( after commenting the empty($this->getProperty('exchange')) check ), is that you always declare an exchange. That is denied for the default exchange. Commenting out the exchange-declare block as well makes me successfully deliver a message to my queue through the default exchange.

@verwilst
Copy link
Author

verwilst commented Nov 28, 2017

I am aware that i can get to the same result by using amq.direct, and binding the queue to the identically-named routing key btw. ;-) But that one requires a bind for every queue, which isnt needed when using the default exchange.

@stevenklar
Copy link
Collaborator

stevenklar commented Jul 13, 2018

Reconsider the use of exchange in certain situations should also fix other issues. (e. g. #36 and #37)
Feel free to propose an example if you are still interested.

@MattBearson
Copy link
Contributor

Hi guys, I got pretty the same problem, but with consumer, if I want to consume messages just from a queue, it will create a default topic and assign it to the queue. I think we should have a possibility to consume just a queue without assigning it to the default topic.

@liviublidar
Copy link

@stevenklar same as #78 ?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants