No subject


Thu Feb 16 03:44:05 GMT 2012


either do it with the rabbitmq management plugin, which comes with the
standard RabbitMQ installation and you only need to enable it. Or you
create queues using any client library, for instance pika, to connect to
the server and declare and bind queues to the exchanges.

I'm not aware of a way to create queues in rabbitmq.config.

Cheers,

Brian

On Tue, Mar 13, 2012 at 3:39 AM, Timya Tortus <timya15 at gmail.com> wrote:

> Sorry, Simon for the very small problem description.
> Considering ClientRabbit and ServerRabbit as two rabbitmq servers.
> On ClientRabbit rabbitmq.config file the federation plugin is configured.
> eg.
> {rabbit_federation,
>   [{exchanges, [[{exchange, "my-exchange"},
>      {virtual_host, "/"},
>      {type, "topic"},
>      {durable, true},
>      {auto_delete, false},
>      {internal, false},
>     {upstream_set, "my-upstreams"}]
>   ]},
>   {upstream_sets, [{"my-upstreams",
>     [[{connection, "upstream-server"},
>      {exchange, "my-upstream-x"},
>      {max_hops, 2}]
>     ]}
>    ]},
>    {connections, [{"upstream-server",
>      [{host, "ServerRabbit"},
>       {protocol, "amqps"},
>       {port, 5671},
>       {virtual_host, "/"},
>       {username, "guest"},
>       {password, "secret"},
>       {mechanism, default},
>       {prefetch_count, 1000},
>       {reconnect_delay, 5},
>       {heartbeat, 1},
>       {queue_expires, 30000},
>       {message_ttl, 10000},
>     ]}
>   ]},
>   {local_username, "guest"},
>   {local_nodename, "ClientRabbit"}
>  ]
> }
>
> On both servers the exchanges get created.
> Is there a way to create the queues and bind them to these exchanges.
>
> Also in the 2.7.9 release note it is stated as;
> federation plugin:
> enhancements
> - allow the queue declared upstream to be mirrored
>
> ? How to declare the queue on ServerRabbit and ClientRabbit, using the
> rabbitmq.config present on the ClientRabbit.
>
> Regards,
> Timya
>
>
> _______________________________________________
> rabbitmq-discuss mailing list
> rabbitmq-discuss at lists.rabbitmq.com
> https://lists.rabbitmq.com/cgi-bin/mailman/listinfo/rabbitmq-discuss
>
>

--e0cb4efe334c30553904bb2933fa
Content-Type: text/html; charset=ISO-8859-1
Content-Transfer-Encoding: quoted-printable

Hi Timya,<br><br>From what I know, to create queues and bind them to the ex=
changes, you can either do it with the rabbitmq management plugin, which co=
mes with the standard RabbitMQ installation and you only need to enable it.=
 Or you create queues using any client library, for instance pika, to conne=
ct to the server and declare and bind queues to the exchanges.<br>
<br>I&#39;m not aware of a way to create queues in rabbitmq.config.<br><br>=
Cheers,<br><br>Brian<br><br><div class=3D"gmail_quote">On Tue, Mar 13, 2012=
 at 3:39 AM, Timya Tortus <span dir=3D"ltr">&lt;<a href=3D"mailto:timya15 at g=
mail.com">timya15 at gmail.com</a>&gt;</span> wrote:<br>
<blockquote class=3D"gmail_quote" style=3D"margin:0 0 0 .8ex;border-left:1p=
x #ccc solid;padding-left:1ex"><div>Sorry, Simon for the very small problem=
 description.<br>Considering ClientRabbit and ServerRabbit as two rabbitmq =
servers.<br>
On ClientRabbit rabbitmq.config file the federation plugin is configured.<b=
r>eg.<br>{rabbit_federation,</div>
<div>=A0 [{exchanges, [[{exchange,     &quot;my-exchange&quot;},<br>=A0    =
            =A0 =A0{virtual_host, &quot;/&quot;},<br>=A0                =A0=
 =A0{type,         &quot;topic&quot;},<br>=A0                =A0 =A0{durabl=
e,      true},<br>

=A0                =A0 =A0{auto_delete,  false},<br>=A0                =A0 =
=A0{internal,     false},<br>=A0                =A0 {upstream_set, &quot;my=
-upstreams&quot;}]<br>=A0              ]},<br>=A0  {upstream_sets, [{&quot;=
my-upstreams&quot;,<br>

=A0       =A0 [[{connection, &quot;upstream-server&quot;},<br>=A0	  =A0 =A0=
{exchange,   &quot;my-upstream-x&quot;},<br>=A0	  =A0 =A0{max_hops,   2}]<b=
r>=A0       =A0 ]}<br>=A0  =A0]},<br>=A0  =A0{connections, [{&quot;upstream=
-server&quot;,<br>=A0       =A0 =A0[{host,            &quot;ServerRabbit&qu=
ot;},<br>

=A0	 =A0 =A0 {protocol,        &quot;amqps&quot;},<br>=A0	 =A0 =A0 {port,  =
          5671},<br>=A0	 =A0 =A0 {virtual_host,    &quot;/&quot;},<br>=A0	 =
=A0 =A0 {username,        &quot;guest&quot;},<br>=A0	 =A0 =A0 {password,   =
     &quot;secret&quot;},<br>

=A0	 =A0 =A0 {mechanism,       default},<br>=A0	 =A0 =A0 {prefetch_count,  =
1000},<br>=A0	 =A0 =A0 {reconnect_delay, 5},<br>=A0	 =A0 =A0 {heartbeat,   =
    1},<br>=A0	 =A0 =A0 {queue_expires,   30000},<br>=A0	 =A0 =A0 {message_=
ttl,     10000},<br>=A0	=A0 ]}<br>=A0       ]},<br>

=A0  {local_username, &quot;guest&quot;},<br>=A0  {local_nodename, &quot;Cl=
ientRabbit&quot;}<br>=A0]</div><div>}<br><br>On both servers the exchanges =
get created.<br>Is there a way to create the queues and bind them to these =
exchanges.<br>

<br>Also in the 2.7.9 release note it is stated as;<br>federation plugin:<b=
r>enhancements<br>- allow the queue declared upstream to be mirrored<br><br=
>? How to declare the queue on ServerRabbit and ClientRabbit, using the rab=
bitmq.config present on the ClientRabbit. <br>

</div><div><br></div><div>Regards,</div><div>Timya<br></div><div><br></div>
<br>_______________________________________________<br>
rabbitmq-discuss mailing list<br>
<a href=3D"mailto:rabbitmq-discuss at lists.rabbitmq.com">rabbitmq-discuss at lis=
ts.rabbitmq.com</a><br>
<a href=3D"https://lists.rabbitmq.com/cgi-bin/mailman/listinfo/rabbitmq-dis=
cuss" target=3D"_blank">https://lists.rabbitmq.com/cgi-bin/mailman/listinfo=
/rabbitmq-discuss</a><br>
<br></blockquote></div><br>

--e0cb4efe334c30553904bb2933fa--


More information about the rabbitmq-discuss mailing list