Hi,<div><br></div><div>I am trying to start a queue consumer from JRuby 1.6.5, I have the following thor task that I want to use to start the queue:</div><div><br></div><div><div>desc &quot;start_consumer&quot;, &quot;start the test consumer&quot;</div>
<div>def start_consumer</div><div>� puts &quot;Running #{AMQP::VERSION} version of the gem&quot;</div><div>��</div><div>� AMQP.start(:host =&gt; &quot;<a href="http://dev.rabbitmq.com">dev.rabbitmq.com</a>&quot;) do |connection|</div>
<div>� ��</div><div>� � ch = AMQP::Channel.new(connection)</div><div>� ��</div><div>� � ch.queue(&quot;one&quot;, :auto_delete =&gt; true).subscribe(&amp;method(:handle_message))</div><div>� end�</div><div>end</div></div>
<div><br></div><div>I start the rabbitmq-server with the <b>rabbitmq-server --detachced</b> command.</div><div><br></div><div>When I run the task, it cannot connect to the host and I get the following error:</div><div><br>
</div><div><div>NativeException: java.nio.channels.UnresolvedAddressException: null</div><div>� bind_connect_server at /Users/paulcowan/.rvm/gems/jruby-1.6.5/gems/eventmachine-1.0.0.beta.4-java/lib/jeventmachine.rb:136</div>
</div><div><br></div><div>I can&#39;t find anything on this in google.</div><div><br></div><div>Can anyone see anything obvious that I am missing?</div><div><br clear="all">Cheers<br><br>Paul Cowan<br><br>Cutting-Edge Solutions (Scotland)<br>
<br><a href="http://thesoftwaresimpleton.com/" target="_blank">http://thesoftwaresimpleton.com/</a><br><br>
</div>