<div dir="ltr"><div><br></div>Thanks.<div><br></div><div style>Is it possible just by giving an arbitrary name for the host, as I don&#39;t know the other peer IP (and my future use of application won&#39;t know it in advance) ?</div>
<div style><br></div><div style>I&#39;ve tried by changing</div><div style><br></div><div style><br></div><div style>------------------------------<br></div><div style>factory.setHost(&quot;localhost&quot;);</div><div style>
------------------------------</div><div style><br></div><div style>by�</div><div style><br></div><div style>--------------------------------</div><div style>factory.setHost(&quot;myAppName&quot;);</div><div style>--------------------------------</div>
<div style><br></div><div style>where factory is the ConnectionFactory instance, but I got an exception (java.net.UnknownHostException).</div><div style>Or must I make some configuration on the two peers before ?</div><div style>
<br></div><div style>Regards</div><div class="gmail_extra"><br><div class="gmail_quote">2013/5/8 Tim Watson <span dir="ltr">&lt;<a href="mailto:watson.timothy@gmail.com" target="_blank">watson.timothy@gmail.com</a>&gt;</span><br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div bgcolor="#FFFFFF"><div>No, that&#39;s not the point I am making. You should have just one broker running and the two client applications need to connect to the same broker.</div>
<div><br>On 8 May 2013, at 11:37, laurent bernabe &lt;<a href="mailto:laurent.bernabe@gmail.com" target="_blank">laurent.bernabe@gmail.com</a>&gt; wrote:<br><br></div><div></div><blockquote type="cite"><div><div dir="ltr">
<div>Hi,<br></div><div><br></div><div>should setting the correlation_id accordingly for both Producer and Consumer enough ?</div><div class="gmail_extra"><br></div><div class="gmail_extra">Regards<br><br>
<div class="gmail_quote">2013/5/8 Tim Watson <span dir="ltr">&lt;<a href="mailto:watson.timothy@gmail.com" target="_blank">watson.timothy@gmail.com</a>&gt;</span><br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">

<div bgcolor="#FFFFFF"><div>Hi,</div><div><br></div><div>The producer sends messages to a broker and he consumer receives them from the same broker (or a clustered peer). Sounds like you&#39;re publishing to a local broker which has nothing to do with the other broker that you&#39;re trying to consume from. The broker is an intermediary between the two clients.</div>

<div><br></div><div>Cheers</div><div>Tim</div><div><br>On 8 May 2013, at 11:28, laurent bernabe &lt;<a href="mailto:laurent.bernabe@gmail.com" target="_blank">laurent.bernabe@gmail.com</a>&gt; wrote:<br><br></div><div></div>

<blockquote type="cite"><div><div dir="ltr">Hello everyone,<div><br></div><div>In the Hello World tutorial, it is said that the producer, the consumer, and the broker don&#39;t have to be on the same machine.</div><div><br>

</div><div>
I tried this feature without success, here is how :</div><div>1) I slightly modified Receiver and Producer in order to make them as GUI applications. (Files attached)</div><div>2) From Eclipse IDE, I exported the application as a runnable jar file by choosing the Producer class as main class for this application : Let&#39;s call it RabbitMQProducer</div>



<div>3) I did the same thing for the receiver class : Let&#39;s call this application RabbitMQReceiver</div><div>4) I installed the last RabbitMQ server on both machines (which are both Ubuntu Linux machines, though versions are differents)</div>



<div>5) I started an instance of the Producer on one machine and an instance of the Receiver on the other machine : but sending a message on the producer is without any effect on the Receiver.</div><div><br></div>
<div>I&#39;ve read all tutorials, but I still have not noticed what the main difference between the RPC tutorial (tutorial 6) and the HelloWorld tutorial (tutorial 1).</div><div><br></div><div>So, how should I modify my codes ?</div>


<div><br></div><div>Regards<br><div class="gmail_drive_chip" style="width:396px;min-height:18px;max-height:18px;background-color:#f5f5f5;padding:5px;color:#222;font-family:arial;font-style:normal;font-weight:bold;font-size:13px;border:1px solid #ddd">


<a href="https://docs.google.com/file/d/0B9y2qdSglhCpblkzam1oakFsZUk/edit?usp=drive_web" style="display:inline-block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;text-decoration:none;padding:1px 0px;border:none;width:100%" target="_blank"><img style="vertical-align:bottom;border:none" src="https://ssl.gstatic.com/docs/doclist/images/icon_10_generic_list.png">�<span dir="ltr" style="color:#15c;text-decoration:none;vertical-align:bottom">RecvGraphical.java</span></a></div>



<br><div class="gmail_drive_chip" style="width:396px;min-height:18px;max-height:18px;background-color:#f5f5f5;padding:5px;color:#222;font-family:arial;font-style:normal;font-weight:bold;font-size:13px;border:1px solid #ddd">


<a href="https://docs.google.com/file/d/0B9y2qdSglhCpLUYwOEw5VGJWTzQ/edit?usp=drive_web" style="display:inline-block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;text-decoration:none;padding:1px 0px;border:none;width:100%" target="_blank"><img style="vertical-align:bottom;border:none" src="https://ssl.gstatic.com/docs/doclist/images/icon_10_generic_list.png">�<span dir="ltr" style="color:#15c;text-decoration:none;vertical-align:bottom">SendGraphical.java</span></a></div>



</div></div>
</div></blockquote><blockquote type="cite"><div><span>_______________________________________________</span><br><span>rabbitmq-discuss mailing list</span><br><span><a href="mailto:rabbitmq-discuss@lists.rabbitmq.com" target="_blank">rabbitmq-discuss@lists.rabbitmq.com</a></span><br>

<span><a href="https://lists.rabbitmq.com/cgi-bin/mailman/listinfo/rabbitmq-discuss" target="_blank">https://lists.rabbitmq.com/cgi-bin/mailman/listinfo/rabbitmq-discuss</a></span><br></div></blockquote></div><br>_______________________________________________<br>


rabbitmq-discuss mailing list<br>
<a href="mailto:rabbitmq-discuss@lists.rabbitmq.com" target="_blank">rabbitmq-discuss@lists.rabbitmq.com</a><br>
<a href="https://lists.rabbitmq.com/cgi-bin/mailman/listinfo/rabbitmq-discuss" target="_blank">https://lists.rabbitmq.com/cgi-bin/mailman/listinfo/rabbitmq-discuss</a><br>
<br></blockquote></div><br></div></div>
</div></blockquote><blockquote type="cite"><div><span>_______________________________________________</span><br><span>rabbitmq-discuss mailing list</span><br><span><a href="mailto:rabbitmq-discuss@lists.rabbitmq.com" target="_blank">rabbitmq-discuss@lists.rabbitmq.com</a></span><br>
<span><a href="https://lists.rabbitmq.com/cgi-bin/mailman/listinfo/rabbitmq-discuss" target="_blank">https://lists.rabbitmq.com/cgi-bin/mailman/listinfo/rabbitmq-discuss</a></span><br></div></blockquote></div><br>_______________________________________________<br>

rabbitmq-discuss mailing list<br>
<a href="mailto:rabbitmq-discuss@lists.rabbitmq.com">rabbitmq-discuss@lists.rabbitmq.com</a><br>
<a href="https://lists.rabbitmq.com/cgi-bin/mailman/listinfo/rabbitmq-discuss" target="_blank">https://lists.rabbitmq.com/cgi-bin/mailman/listinfo/rabbitmq-discuss</a><br>
<br></blockquote></div><br></div></div>