<div dir="ltr"><div><br></div><div>Hi guys,</div><div><br></div><div>I&#39;m trying to create federation exchanges so msgs published to exchange &quot;amq.direct&quot; on virtual host / of node RabbitA will be sent to federated exchange &quot;amq.direct&quot; 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 &amp; 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 &gt; Federation Upstreams &gt; Add a new upstream.�</div>

<div>- Choose Virtual host UAT</div><div>- Enter &quot;my-upstream&quot; next to Name, &quot;amqp://RabbitA&quot; 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 &gt; Policies &gt; Add / update a policy.�</div><div>- Choose Virtual host UAT</div><div>- Enter &quot;federate-me&quot; next to Name, &quot;amq.direct&quot; (without double quotes) next to Regexp and &quot;federation-upstream-set&quot; = &quot;all&quot; �(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 &gt; Federation Status</div><div>- Observe that the state of connection &quot;federate-me&quot; is always &quot;starting&quot;</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 &#39;amq.direct&#39; in vhost &#39;UAT&#39; did not connect to exchange &#39;amq.direct&#39; in vhost &#39;UAT&#39; 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&#39;s not what i&#39;m expected.</div>

<div>I want the client to publish msgs to to exchange &quot;amq.direct&quot; on virtual host / on UAT on RabbitA. Is there anyway to do that?</div><div><br></div><div>Thanks</div></div>