<div dir="ltr"><div><br></div><div>Hi guys,</div><div><br></div><div>I'm trying to create federation exchanges so msgs published to exchange "amq.direct" on virtual host / of node RabbitA will be sent to federated exchange "amq.direct" on virtual host UAT of node RabbitB. Here are my steps, assume that 2 nodes are newly created:</div>
<div><br></div><div><br></div><div>1/ On RabbitB, create virtual host UAT & assign permissions for user guest</div><div>2/ On RabbitB, go to Web UI<span class="" style="white-space:pre">        </span></div><div>Navigate to Admin > Federation Upstreams > Add a new upstream. </div>
<div>- Choose Virtual host UAT</div><div>- Enter "my-upstream" next to Name, "amqp://RabbitA" next to URI, and 36000000 next to Expiry. Click Add upstream. </div><div><br></div><div>3/ On RabbitB, still on Web UI</div>
<div>Navigate to Admin > Policies > Add / update a policy. </div><div>- Choose Virtual host UAT</div><div>- Enter "federate-me" next to Name, "amq.direct" (without double quotes) next to Regexp and "federation-upstream-set" = "all" (without double quotes) in the first line next to Policy. Click Add policy. </div>
<div><br></div><div>4/ On RabbitB, still on Web UI</div><div>Navigate to Admin > Federation Status</div><div>- Observe that the state of connection "federate-me" is always "starting"</div><div><br>
</div>
<div>5/ Go to log file and see that:</div><div>=WARNING REPORT==== 24-Jul-2013::14:30:01 ===</div><div>Federation exchange 'amq.direct' in vhost 'UAT' did not connect to exchange 'amq.direct' in vhost 'UAT' on amqp://RabbitA</div>
<div>{error,access_refused}</div><div><br></div><div><br></div><div>Apparently, the virtual host UAT on RabbitA does not exist. If I create that virtual host on RabbitA, the connection will be fine but that's not what i'm expected.</div>
<div>I want the client to publish msgs to to exchange "amq.direct" on virtual host / on UAT on RabbitA. Is there anyway to do that?</div><div><br></div><div>Thanks</div></div>