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

Consumer and Producer config #48

Closed
luxifer opened this issue May 31, 2012 · 7 comments · Fixed by #50
Closed

Consumer and Producer config #48

luxifer opened this issue May 31, 2012 · 7 comments · Fixed by #50

Comments

@luxifer
Copy link

luxifer commented May 31, 2012

Default parameters for the consumer and the producer aren't the same. So when you don't explicitly specify all the parameters you will have tha kind of exceptions

PRECONDITION_FAILED - cannot redeclare exchange 'exchange-name' in vhost '/' with different type, durable, internal or autodelete value

with that config.yml

old_sound_rabbit_mq:
    connections:
        default:
            host:      'localhost'
            port:      5672
            user:      'guest'
            password:  'guest'
            vhost:     '/'
    producers:
        sample_task:
            connection: default
            exchange_options: {name: 'exchange-name', type: direct}
    consumers:
        sample_task:
            connection: default
            exchange_options: {name: 'exchange-name', type: direct}
            queue_options:    {name: 'queue-name'}
            callback:         sample_task_service
@videlalvaro
Copy link
Collaborator

We are addressing this issue at the moment.

@luxifer
Copy link
Author

luxifer commented May 31, 2012

Thanks,
Maybe I can work on something?

@videlalvaro
Copy link
Collaborator

Actually a guy already reported this by email and he's taking care of it. He said that he'll fix it this week… so, let's see.

@luxifer
Copy link
Author

luxifer commented May 31, 2012

Ok, let's see..

@vicb
Copy link
Contributor

vicb commented Jun 1, 2012

it will be towards the very end of this week !

@videlalvaro
Copy link
Collaborator

Hehe… I will see to ping him next monday to see what's going on.

vicb added a commit to vicb/RabbitMqBundle that referenced this issue Jun 2, 2012
…hp-amqplib#48)

The exchanges declared under the producers section of the configuration
now have similar default values than the exchanges declared under the
consumers section.

That is
- durable was changed from false to true,
- auto_delete was changed from true to false.
@vicb
Copy link
Contributor

vicb commented Jun 2, 2012

@videlalvaro no need to ping me on Monday I finally found some time before leaving for the week end.

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

Successfully merging a pull request may close this issue.

3 participants