<div dir="ltr">First parameter is "<span style="color: rgb(0, 0, 0); font-family: Times; font-size: medium;">the exchange to publish the message to</span>":<div><pre style="color: rgb(0, 0, 0);"><br></pre><pre style="color: rgb(0, 0, 0);">void <b>basicPublish</b>(java.lang.String <wbr>exchange,
java.lang.String routingKey,
<a href="http://www.rabbitmq.com/releases/rabbitmq-java-client/v1.7.0/rabbitmq-java-client-javadoc-1.7.0/com/rabbitmq/client/AMQP.BasicProperties.html" title="class in com.rabbitmq.client" target="_blank" style="cursor: pointer;">AMQP.BasicProperties</a> props,
byte[] body)
throws java.io.IOException</pre><pre style="color: rgb(0, 0, 0);"><br></pre><pre style="color: rgb(0, 0, 0);">It can be empty for simple direct queues</pre><pre style="color: rgb(0, 0, 0);"><br></pre></div><div>API: <a href="http://www.rabbitmq.com/releases/rabbitmq-java-client/v1.7.0/rabbitmq-java-client-javadoc-1.7.0/com/rabbitmq/client/Channel.html#basicPublish(java.lang.String" target="_blank" style="cursor: pointer;">http://www.rabbitmq.com/<wbr>releases/rabbitmq-java-client/<wbr>v1.7.0/rabbitmq-java-client-<wbr>javadoc-1.7.0/com/rabbitmq/<wbr>client/Channel.html#<wbr>basicPublish(java.lang.String</a>, java.lang.String, com.rabbitmq.client.AMQP.<wbr>BasicProperties, byte[])</div><br>On Tuesday, October 22, 2013 12:21:58 AM UTC+4, Kevin Meek wrote:<blockquote class="gmail_quote" style="margin: 0;margin-left: 0.8ex;border-left: 1px #ccc solid;padding-left: 1ex;"><div dir="ltr">The first Java tutorial has<br><pre><span style="font-family:courier new,monospace"> <span>String</span> <span>message</span> <span>=</span> <span>"Hello World!"</span><span>;</span>
<span>channel</span><span>.</span><span>basicPublish</span><span>(</span><span>""</span><span>,</span> <span>QUEUE_NAME</span><span>,</span> <span>null</span><span>,</span> <span>message</span><span>.</span><span>getBytes</span></span><span><span style="font-family:courier new,monospace">());</span><br><br>where I believe the first parameter should be the message String itself. No?<br><br>Kevin<br></span></pre><br></div></blockquote></div>