{"action":"created","issue":{"url":"https://api.github.com/repos/fiunchinho/rabbitmq-service-provider/issues/3","labels_url":"https://api.github.com/repos/fiunchinho/rabbitmq-service-provider/issues/3/labels{/name}","comments_url":"https://api.github.com/repos/fiunchinho/rabbitmq-service-provider/issues/3/comments","events_url":"https://api.github.com/repos/fiunchinho/rabbitmq-service-provider/issues/3/events","html_url":"https://github.com/fiunchinho/rabbitmq-service-provider/issues/3","id":62722833,"number":3,"title":"producers make amq.gen-XXXXX queue.... ","user":{"login":"pinouf","id":1128445,"avatar_url":"https://avatars.githubusercontent.com/u/1128445?v=3","gravatar_id":"","url":"https://api.github.com/users/pinouf","html_url":"https://github.com/pinouf","followers_url":"https://api.github.com/users/pinouf/followers","following_url":"https://api.github.com/users/pinouf/following{/other_user}","gists_url":"https://api.github.com/users/pinouf/gists{/gist_id}","starred_url":"https://api.github.com/users/pinouf/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pinouf/subscriptions","organizations_url":"https://api.github.com/users/pinouf/orgs","repos_url":"https://api.github.com/users/pinouf/repos","events_url":"https://api.github.com/users/pinouf/events{/privacy}","received_events_url":"https://api.github.com/users/pinouf/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":4,"created_at":"2015-03-18T15:35:15Z","updated_at":"2015-10-13T05:39:17Z","closed_at":"2015-03-20T16:56:23Z","body":"hello,\r\n\r\ni have a big problem...\r\ni Have a producer define with:\r\n\r\n                'rabbit.producers'   => [\r\n                    'content_manager' => [\r\n                        'connection'       => 'default',\r\n                        'exchange_options' => ['name' => 'mirror.Service', 'type' => 'topic', 'durable' => true]\r\n                    ],\r\n                ],\r\ni have severals consumers:\r\n\r\n\r\n                'rabbit.consumers'   => [\r\n                    'worker_manager_upload'                    => [\r\n                        'connection'       => 'default',\r\n                        'exchange_options' => ['name' => 'mirror.Service', 'type' => 'topic'],\r\n                        'queue_options'    => [\r\n                            'name'         => 'mirror.converterUploadQueue',\r\n                            'routing_keys' => ['workermanager.content.upload']\r\n                        ],\r\n                        'callback'         => 'kadrige.workers.upload.consumer'\r\n                    ],\r\n                    'worker_manager_zip'                       => [\r\n                        'connection'       => 'default',\r\n                        'exchange_options' => ['name' => 'mirror.Service', 'type' => 'topic'],\r\n                        'queue_options'    => [\r\n                            'name'         => 'mirror.converterZipQueue',\r\n                            'routing_keys' => ['workermanager.content.zip']\r\n                        ],\r\n                        'callback'         => 'kadrige.workers.zip.consumer'\r\n                    ],\r\n\r\n\r\nthe projet is duplicate in severals servers.\r\neach time a server produce a message by exemple in workermanager.content.upload routing key, i have a queue which is generate amq.gen-XXxXXX with no consumer connected...\r\nThe problem is that now i have 300 queue amq.gen-Xxxxxx \r\n\r\ni would like that the producer send the message directly in the good queue... , in my case the queue name is mirror.converterUploadQueue ...\r\n\r\nthank you...\r\n\r\n\r\n\r\n\r\n\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/fiunchinho/rabbitmq-service-provider/issues/comments/147609519","html_url":"https://github.com/fiunchinho/rabbitmq-service-provider/issues/3#issuecomment-147609519","issue_url":"https://api.github.com/repos/fiunchinho/rabbitmq-service-provider/issues/3","id":147609519,"user":{"login":"AlexStansfield","id":4319443,"avatar_url":"https://avatars.githubusercontent.com/u/4319443?v=3","gravatar_id":"","url":"https://api.github.com/users/AlexStansfield","html_url":"https://github.com/AlexStansfield","followers_url":"https://api.github.com/users/AlexStansfield/followers","following_url":"https://api.github.com/users/AlexStansfield/following{/other_user}","gists_url":"https://api.github.com/users/AlexStansfield/gists{/gist_id}","starred_url":"https://api.github.com/users/AlexStansfield/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/AlexStansfield/subscriptions","organizations_url":"https://api.github.com/users/AlexStansfield/orgs","repos_url":"https://api.github.com/users/AlexStansfield/repos","events_url":"https://api.github.com/users/AlexStansfield/events{/privacy}","received_events_url":"https://api.github.com/users/AlexStansfield/received_events","type":"User","site_admin":false},"created_at":"2015-10-13T05:39:17Z","updated_at":"2015-10-13T05:39:17Z","body":"In the symfony bundle extension is this code where it setups up producers\r\n\r\n```\r\n//this producer doesn't define a queue\r\nif (!isset($producer['queue_options'])) {\r\n    $producer['queue_options']['name'] = null;\r\n}\r\n$definition->addMethodCall('setQueueOptions', array($producer['queue_options']));\r\n```\r\n\r\nI copied it into the Silex Service Provider as \r\n\r\n```\r\nif (!isset($options['queue_options'])) {\r\n    $options['queue_options']['name'] = null;\r\n}\r\n$producer->setQueueOptions($options['queue_options']);\r\n```\r\n\r\nNo more random queues created."}}