<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Cognizant Transmutaion &#187; stomp</title>
	<atom:link href="http://blog.ibd.com/tag/stomp/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.ibd.com</link>
	<description>Internet Bandwidth Development: Composting the Internet for over Two Decades</description>
	<lastBuildDate>Fri, 18 Jun 2010 02:00:26 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0</generator>
		<item>
		<title>Updating RabbitMQ and RabbitMQ-Stomp to RabbitMQ 1.5.3</title>
		<link>http://blog.ibd.com/scalable-deployment/updating-rabbitmq-and-rabbitmq-stomp-to-rabbitmq-153/</link>
		<comments>http://blog.ibd.com/scalable-deployment/updating-rabbitmq-and-rabbitmq-stomp-to-rabbitmq-153/#comments</comments>
		<pubDate>Sat, 14 Mar 2009 06:01:31 +0000</pubDate>
		<dc:creator>Robert J Berger</dc:creator>
				<category><![CDATA[Scalable Deployment]]></category>
		<category><![CDATA[rabbitmq]]></category>
		<category><![CDATA[stomp]]></category>
		<category><![CDATA[ubuntu]]></category>

		<guid isPermaLink="false">http://blog.ibd.com/?p=184</guid>
		<description><![CDATA[<p>I noticed that the rabbitmq-stomp had stopped working on my servers after a reboot. The servers were using the Ubuntu debian package of rabbitmq and had been updgraded to RabbitMQ 1.5.3 and stomp had not since I was manually installing rabbitmq-stomp from the mercurial repositories (cause I could not find any ubuntu packages for rabbitmq-stomp).</p>
<p>If you [...]]]></description>
			<content:encoded><![CDATA[<p>I noticed that the rabbitmq-stomp had stopped working on my servers after a reboot. The servers were using the Ubuntu debian package of rabbitmq and had been updgraded to RabbitMQ 1.5.3 and stomp had not since I was manually installing rabbitmq-stomp from the mercurial repositories (cause I could not find any ubuntu packages for rabbitmq-stomp).</p>
<p>If you used something similar to the install process described in my earlier <a href="http://blog.ibd.com/scalable-deployment/deploying-rabbitmq-and-stomp-on-ubuntu/">Deploying RabbitMQ and Stomp on Ubuntu</a> you can do the following:</p>
<h2>Update RabbitMQ server</h2>
<h3>For Ubuntu</h3>
<pre>sudo apt-get update
sudo apt-get upgrade rabbitmq-server</pre>
<h3>For Macintosh Leopard</h3>
<p>Need to update the rabbitmq-codegen and rabbitmq-server using mercurial:</p>
<pre>cd /usr/lib/erlang/lib/rabbitmq-codegen
hg pull
hg update rabbitmq_v1_5_3</pre>
<pre>cd /usr/lib/erlang/lib/rabbitmq-server
hg pull
hg update rabbitmq_v1_5_3</pre>
<h3>For both Ubuntu and Leopard</h3>
<pre><strong>Update RabbitMQ-Stomp</strong></pre>
<pre>cd /usr/lib/erlang/lib/rabbitmq-stomp
hg pull
hg update rabbitmq_v1_5_3</pre>
<p>You can see what release tags are available after th hg pull via the command:</p>
<pre>hg tags</pre>
<p>Make sure there isn&#8217;t already an /etc/rabbitmq/rabbitmq.conf . If there is merge /etc/default/rabbitmq into /etc/rabbitmq/rabbitmq.conf (/opt/local/etc/ instead of /etc if you are using MacPorts)</p>
<p>Otherwise just move it:</p>
<pre>mv /etc/default/rabbitmq /etc/rabbitmq/rabbitmq.conf</pre>
<h2>Rebuild the rabbitmq-stomp programs</h2>
<p>Still in /usr/lib/erlang/lib/rabbitmq-stomp</p>
<h3>For Ubuntu</h3>
<pre>make RABBIT_SERVER_SOURCE_ROOT=../rabbitmq_server-1.5.3 all</pre>
<pre>/etc/init.d/rabbitmq-server restart</pre>
<h3>For Macintosh Leopard</h3>
<pre>make all</pre>
<p>If you updated rabbitmq-server make sure it builds and run</p>
<pre>cd /usr/lib/erlang/lib/rabbitmq-server
make -j run</pre>
<p>If it starts ok you can quit and then from now on run it by issuing the command:</p>
<pre>/opt/local/lib/erlang/lib/rabbitmq-server/scripts/rabbitmq-server -detached</pre>
<div style='clear:both'></div>]]></content:encoded>
			<wfw:commentRss>http://blog.ibd.com/scalable-deployment/updating-rabbitmq-and-rabbitmq-stomp-to-rabbitmq-153/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Deploying RabbitMQ and Stomp on Ubuntu</title>
		<link>http://blog.ibd.com/scalable-deployment/deploying-rabbitmq-and-stomp-on-ubuntu/</link>
		<comments>http://blog.ibd.com/scalable-deployment/deploying-rabbitmq-and-stomp-on-ubuntu/#comments</comments>
		<pubDate>Fri, 02 Jan 2009 10:33:31 +0000</pubDate>
		<dc:creator>Robert J Berger</dc:creator>
				<category><![CDATA[Runa]]></category>
		<category><![CDATA[Scalable Deployment]]></category>
		<category><![CDATA[Sysadmin]]></category>
		<category><![CDATA[Cloud Computing]]></category>
		<category><![CDATA[rabbitmq]]></category>
		<category><![CDATA[stomp]]></category>
		<category><![CDATA[ubuntu]]></category>

		<guid isPermaLink="false">http://blog.ibd.com/?p=89</guid>
		<description><![CDATA[Install rabbitmq via synaptic
Make sure that the erlang package is installed
Add a repository from the rabbitmq site
Set up Repository via the Synaptic GUI tool
<p>(http://www.rabbitmq.com/debian/)</p>
<p class="wp-caption-text">Synaptic repository addition</p>
Set up Repository via command line
<p>Ubuntu Documentation for Managing Repositories via the Command Line</p>
<p>How to use the RabbitMQ Debian repository and available RabbitMQ Debian packages</p>
<p>The repositories are described in /etc/apt/sources.list</p>
<p>So [...]]]></description>
			<content:encoded><![CDATA[<h2>Install rabbitmq via synaptic</h2>
<h3>Make sure that the erlang package is installed</h3>
<h3>Add a repository from the rabbitmq site</h3>
<h4>Set up Repository via the Synaptic GUI tool</h4>
<p>(http://www.rabbitmq.com/debian/)</p>
<div class="wp-caption alignnone" style="width: 626px"><img src="http://img.skitch.com/20090102-mq8dcxa88jhmd1kqkagrwri8sy.jpg" alt="Synaptic repository addition" width="616" height="463" /><p class="wp-caption-text">Synaptic repository addition</p></div>
<h4>Set up Repository via command line</h4>
<p>Ubuntu Documentation for <a href="https://help.ubuntu.com/community/Repositories/CommandLine" target="_blank">Managing Repositories via the Command Line</a></p>
<p>How to use the RabbitMQ Debian repository and available <a href="http://www.rabbitmq.com/debian.html" target="_blank">RabbitMQ Debian packages</a></p>
<p>The repositories are described in /etc/apt/sources.list</p>
<p>So do the following:</p>
<pre>sudo cp /etc/apt/sources.list /etc/apt/sources.list.backup</pre>
<p>Edit /etc/apt/sources.list and add the following line:</p>
<pre>deb http://www.rabbitmq.com/debian/ testing main</pre>
<p>Then update the apt-get environment:</p>
<pre class="sourcecode">wget http://www.rabbitmq.com/rabbitmq-signing-key-public.asc
sudo apt-key add rabbitmq-signing-key-public.asc
sudo apt-get update</pre>
<h3>Install the RabbitMQ Server</h3>
<h4>Set up Repository via the Synaptic GUI tool</h4>
<div class="wp-caption alignnone" style="width: 626px"><img src="http://img.skitch.com/20090102-m766tupdj54jmqwq9b2wbkd3h9.jpg" alt="Synaptic Erlang Packages" width="616" height="463" /><p class="wp-caption-text">Synaptic Erlang Packages</p></div>
<h4>Set up Repository via command line</h4>
<pre class="sourcecode">sudo apt-get install rabbitmq-server</pre>
<p>This should have installed the main portion of the code base in <code>/usr/lib/erlang/lib/rabbitmq_server-1.5.1 (The trailing version number may be different than 1.5.1)</code></p>
<h4>After it installed the server, make sure its stopped</h4>
<p><code># /etc/init.d/rabbitmq-server stop</code></p>
<h2>Install rabbitmq-stomp</h2>
<p>I could not find any ubuntu/debian packages so I installed it from the Mercurial repository. If you don&#8217;t already have Mercurial (the hg command) then you can install it with the following command:</p>
<pre><span style="font-family: Georgia; line-height: 19px; white-space: normal;">a</span>pt-get install mercurial</pre>
<h3>Install the rabbitmq-stomp code</h3>
<p>This also will go parallel to where the ubuntu package put the stomp server main code and the rabbit-codegen.</p>
<pre><code>cd /usr/lib/erlang/lib/
hg clone http://hg.rabbitmq.com/rabbitmq-stomp/
</code></pre>
<h3>Compile the stomp code</h3>
<h4>Build and test run rabbitmq and stomp via make</h4>
<pre><code>cd /usr/lib/erlang/lib/rabbitmq-stomp
make RABBIT_SERVER_SOURCE_ROOT=../rabbitmq_server-1.5.1 all
</code></pre>
<p>This should produce an output like:</p>
<pre><code>mkdir -p ebin
erlc -I ../rabbitmq_server-1.5.0/include -I include -o ebin -Wall +debug_info  src/rabbit_stomp.erl
erlc -I ../rabbitmq_server-1.5.0/include -I include -o ebin -Wall +debug_info  src/stomp_frame.erl </code></pre>
<h3><span style="font-weight: normal;">A</span>dd a file /etc/default/rabbitmq and Restart rabbitmq_server</h3>
<p>You need to tell the main rabbitmq_server to load and run the rabbitmq-stomp stuff when it starts up. You do that by creating this file with the following content:</p>
<pre>SERVER_START_ARGS='
  -pa /usr//lib/erlang/lib/rabbitmq-stomp/ebin
  -rabbit
     stomp_listeners [{"0.0.0.0",61613}]
     extra_startup_steps [{"STOMP-listeners",rabbit_stomp,kickstart,[]}]'</pre>
<h4>Restart the Rabbitmq_server:</h4>
<pre>/etc/init.d/rabbitmq_server start</pre>
<p>You can do a</p>
<pre><span style="font-family: Georgia; line-height: 19px; white-space: normal;">p</span>s -ax | grep stomp</pre>
<p>and see an erlang process that is running the rabbit-stomp process.</p>
<h3>Install ruby stomp client code and test</h3>
<h4>Install the ruby stomp gems</h4>
<p>If you don&#8217;t have ruby already installed:</p>
<pre><code>sudo apt-get install ruby
sudo apt-get install rubygems
</code></pre>
<p>Then install the ruby stomp gem</p>
<pre><code>sudo gem install stomp
</code></pre>
<h4>Run the ruby receiver client in one window</h4>
<p><code>ruby /usr/lib/erlang/lib/rabbit-stomp/examples/ruby/cb-receiver.rb</code></p>
<h4>In another window run the ruby sender client</h4>
<p><code>ruby /usr/lib/erlang/lib/rabbit-stomp/examples/ruby/cb-sender.rb</code></p>
<h4>In the receiver window you should see 10,000 test message lines:</h4>
<pre><code>...
Test Message number 9998
Test Message number 9999
All Done!</code></pre>
<p><span style="font-family: -webkit-monospace;"><strong>That&#8217;s it! Now you can use Stomp</strong></span></p>
<p><span style="font-family: -webkit-monospace;"><strong>(See later post <a title="Permanent Link to Updating RabbitMQ and RabbitMQ-Stomp to RabbitMQ 1.5.3" rel="bookmark" href="http://blog.ibd.com/scalable-deployment/updating-rabbitmq-and-rabbitmq-stomp-to-rabbitmq-153/">Updating RabbitMQ and RabbitMQ-Stomp to RabbitMQ 1.5.3</a>)</strong></span></p>
<div style='clear:both'></div>]]></content:encoded>
			<wfw:commentRss>http://blog.ibd.com/scalable-deployment/deploying-rabbitmq-and-stomp-on-ubuntu/feed/</wfw:commentRss>
		<slash:comments>6</slash:comments>
		</item>
	</channel>
</rss>
