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

Creating a Queue object without asserting an Exchange first #990

Open
sezanzeb opened this issue Apr 17, 2024 · 0 comments
Open

Creating a Queue object without asserting an Exchange first #990

sezanzeb opened this issue Apr 17, 2024 · 0 comments

Comments

@sezanzeb
Copy link

sezanzeb commented Apr 17, 2024

Using jackrabbit, there doesn't seem to be a way to bind a new queue to an existing exchange.

The only way to bind queues and exchanges there is:

rabbit.direct('bar').queue({ name: 'foo' })

This is problematic, if the exchange that already exists in RabbitMQ has options (like durable) that don't match this, in which case this will throw an error.

In other libraries, you typically have the option to bind queues and exchanges only based on their name.

In amqplib, there is bindQueue.

There doesn't seem to be a way to get jackrabbits queue object without going through an exchange object first.

@sezanzeb sezanzeb changed the title Creating a queue object without asserting and Exchange first Creating a queue binding without asserting an Exchange first Apr 17, 2024
@sezanzeb sezanzeb changed the title Creating a queue binding without asserting an Exchange first Creating a queue object without asserting an Exchange first Apr 17, 2024
@sezanzeb sezanzeb changed the title Creating a queue object without asserting an Exchange first Creating a Queue object without asserting an Exchange first Apr 17, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant