<p>Any hint in my below issue?<br></p>
<p>Thanks a lot for ur help</p>
<div class="gmail_quote">On 16 May 2013 14:55, "Balachandar R.A." <<a href="mailto:balachandar.ra@gmail.com" target="_blank">balachandar.ra@gmail.com</a>> wrote:<br type="attribution"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<p>I am able to do the following</p>
<p>telnet ip-of-server 15672</p>
<p>And I could connect to server from my consumer</p>
<p>I installed the server from debian repo. I did sudo apt-get install rabbitmq..</p>
<p>I did not do any other config and started testing the code.</p>
<p>My code portion is below</p>
<p>ConnectionFactory factory = new ConnectionFactory();<br>
factory.setHost("40.221.94.235");<br>
Connection connection = factory.newConnection();<br>
Channel channel = connection.createChannel();<br>
<br>
channel.queueDeclare("Q", false, false, false, null);<br>
System.out.println(" [*] Waiting for messages. To exit press CTRL+C");<br>
QueueingConsumer consumer = new QueueingConsumer(channel);<br>
channel.basicConsume("task_queue", true, consumer);<br>
<br>
while (true) {<br>
QueueingConsumer.Delivery delivery = consumer.nextDelivery();<br>
String message = new String(delivery.getBody());<br>
System.out.println(" [x] Received '" + message + "'");<br>
}<br>
<br>
With thanks and regards<br>
Balachandar<br>
<br>
<br>
<br></p>
<div class="gmail_quote">On 16 May 2013 14:41, "Tim Watson" <<a href="mailto:tim@rabbitmq.com" target="_blank">tim@rabbitmq.com</a>> wrote:<br type="attribution"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div style="word-wrap:break-word">Oh and one more thing.... You said...<div><blockquote type="cite"><p>I am not doing anything for authentication.</p></blockquote><div><div>What exactly are you doing to make a connection from host A to host B - what does your URL look like?</div>
<div><br></div><div>Cheers,</div><div>Tim</div></div></div></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>
</blockquote></div>