<html>
<head>
<style><!--
.hmmessage P
{
margin:0px;
padding:0px
}
body.hmmessage
{
font-size: 10pt;
font-family:Tahoma
}
--></style></head>
<body class='hmmessage'><div dir='ltr'>
Hello,<br><br>For some reason, I'm unable to publish messages to any exchange/queue on one of the VMs I'm using for testing RabbitMQ federations. My setup is as follows:<br><br>I have two VMs named rabbit1 and rabbit2, both with the federation plugin enabled. <br>Rabbit1 is configured [1] with a federated exchange with a connection to rabbit2.<br><br>When I look at the federation status, I see that the connection is successfully established. The appropriate upstream exchange and queue are also automatically created on rabbit2. However, if I try to publish to an exchange from rabbit2, the code appears to hang and the message is never delivered. This happens whether I'm publishing to the upstream federated exchange, or just to a local exchange and queue. An example Test.java [2] runs correctly on rabbit1 or my local machine, but doesn't complete on rabbit2. It might be worth noting that the print statement _does_ execute after channel.basicPublish(...), but prints put after channel.close() or connection.close() don't occur.<br><br>I'm not sure what the next step is in troubleshooting this. Any help would be appreciated.<br><br>Thanks for taking a look.<br><br><br>[1] Rabbit1's rabbitmq.config<br><br>[{rabbitmq_federation,<br>&nbsp;&nbsp;&nbsp; [<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; {exchanges, [[{exchange, "high"},<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; {type, "topic"},<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; {upstream_set, "tomcats"}]]},<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; {upstream_sets, [{"tomcats", [[{connection, "tomcat1"},<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; {exchange, "highw1"},<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; {max_hops, 1}]<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; ]}]},<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; {connections, [{"tomcat1", [{host, "out"},<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; {port, 5672}]}]}<br>&nbsp;&nbsp;&nbsp; ]<br>}].<br><br><br>[2] The code in Test.java<br><br>import com.rabbitmq.client.ConnectionFactory;<br>import com.rabbitmq.client.Connection;<br>import com.rabbitmq.client.Channel;<br><br>public class Test {<br><br>&nbsp; public static void main(String[] argv) throws Exception {<br><br>&nbsp;&nbsp;&nbsp; ConnectionFactory factory = new ConnectionFactory();<br>&nbsp;&nbsp;&nbsp; factory.setHost("localhost");<br>&nbsp;&nbsp;&nbsp; Connection connection = factory.newConnection();<br>&nbsp;&nbsp;&nbsp; Channel channel = connection.createChannel();<br>&nbsp;&nbsp;&nbsp; channel.exchangeDeclare("testexchange", "topic");<br>&nbsp;&nbsp;&nbsp; channel.queueDeclare("testqueue", true, false, false, null);<br>&nbsp;&nbsp;&nbsp; channel.queueBind("testqueue", "testexchange", "photo");<br><br>&nbsp;&nbsp;&nbsp; String message = "Hello World!";<br>&nbsp;&nbsp;&nbsp; channel.basicPublish("testexchange", "photo", null, message.getBytes());<br>&nbsp;&nbsp;&nbsp; System.out.println(" [x] Sent '" + message + "'");<br><br>&nbsp;&nbsp;&nbsp; channel.close();<br>&nbsp;&nbsp;&nbsp; connection.close();<br>&nbsp; }<br>}<br>                                               </div></body>
</html>