<?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/"
	xmlns:creativeCommons="http://backend.userland.com/creativeCommonsRssModule"
>

<channel>
	<title>the lost logbook &#187; jms</title>
	<atom:link href="http://utkarshsengar.com/tag/jms/feed/" rel="self" type="application/rss+xml" />
	<link>http://utkarshsengar.com</link>
	<description>Utkarsh&#039;s thoughts on India, Web 2.0, Linux and Technology</description>
	<lastBuildDate>Mon, 19 Apr 2010 04:05:34 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0</generator>
<creativeCommons:license>http://creativecommons.org/licenses/by-nc-nd/3.0/us/</creativeCommons:license>
		<item>
		<title>JMS application on Ubuntu 9.10 using Eclipse Ganymede</title>
		<link>http://utkarshsengar.com/2009/11/run-jms-application-using-jboss-4-2-3-on-eclipse-ganymede-on-ubuntu-9-10/</link>
		<comments>http://utkarshsengar.com/2009/11/run-jms-application-using-jboss-4-2-3-on-eclipse-ganymede-on-ubuntu-9-10/#comments</comments>
		<pubDate>Fri, 06 Nov 2009 22:20:37 +0000</pubDate>
		<dc:creator>Utkarsh</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[eclipse]]></category>
		<category><![CDATA[java]]></category>
		<category><![CDATA[jboss]]></category>
		<category><![CDATA[jms]]></category>
		<category><![CDATA[ubuntu 9.10]]></category>

		<guid isPermaLink="false">http://utkarshsengar.com/?p=43</guid>
		<description><![CDATA[Share on FacebookIf you a windows &#8220;power&#8221; user, a shift to linux will be really good, but it also comes with little packages of frustration sometimes. I was trying to install JBOSS 4.3.2 (which was very smooth) and trying to run a JMS application. This is a very easy task in Windows, but since, I [...]]]></description>
			<content:encoded><![CDATA[<a name="fb_share" type="button_count" share_url="http://utkarshsengar.com/2009/11/run-jms-application-using-jboss-4-2-3-on-eclipse-ganymede-on-ubuntu-9-10/">Share on Facebook</a><div class="topsy_widget_data topsy_theme_blue" style="float: right;margin-left: 0.75em"><script type="text/javascript" src="http://button.topsy.com/widget/retweet-big?url=http://utkarshsengar.com/2009/11/run-jms-application-using-jboss-4-2-3-on-eclipse-ganymede-on-ubuntu-9-10/&amp;title=JMS+application+on+Ubuntu+9.10+using+Eclipse+Ganymede&amp;theme=blue&amp;order=count,retweet,badge&amp;txt_tweet=tweet&amp;txt_retweet=retweet"></script></div><p><img class="alignleft" src="http://img525.imageshack.us/img525/9219/jbosslogo.png" alt="" width="215" height="95" />If you a windows &#8220;power&#8221; user, a shift to linux will be really good, but it also comes with little packages of frustration sometimes.</p>
<p>I was trying to install <a href="http://sourceforge.net/projects/jboss/files/JBoss/JBoss-4.2.3.GA/">JBOSS 4.3.2 </a>(which was very smooth) and trying to run a <a href="http://java.sun.com/products/jms/">JMS</a> application. This is a very easy task in Windows, but since, I am new to linux, some easy tasks became so annoying!!! But later I realized it was much simpler once you get the hang of it. So, here are the steps to run a JMS application on Linux (Ubuntu 9.10)<span id="more-43"></span></p>
<p>1. Install <a href="http://sourceforge.net/projects/jboss/files/JBoss/JBoss-4.2.3.GA/">JBOSS 4.3.2</a></p>
<blockquote><p>Download JBOSS 4.3.2 to your desktop and extract the tar.gz or zip file ot <a href="http://www.redhat.com/docs/manuals/linux/RHL-9-Manual/ref-guide/s1-filesystem-fhs.html">/opt folder</a> in the main file system.</p>
<p style="padding-left: 60px;"><span style="color: #000000;">&#8220;<strong>sudo unzip boss-4.2.3.GA-jdk6.zip /opt</strong>&#8220;</span></p>
<p><span style="color: #000000;">And you are done with your JBOSS installation!!</span></p>
<p><span style="color: #000000;">Go to your terminal and type </span>&#8220;<strong>sudo /opt/jboss-4.2.3.GA/bin/run.sh</strong>&#8220;. This will start you JBOSS server in 20-25 seconds.</p></blockquote>
<p>2. Configure the <a href="http://lowfatlinux.com/linux-environment-variables.html">environment variable in linux</a></p>
<blockquote><p>This was the most annoying part for me since I didn&#8217;t know how to set the environment variable in Linux. Though its a very very easy process!</p>
<p>Execute this following code in the terminal:</p>
<p><strong>export CLASSPATH=$CLASSPATH:/CLASSPATH=/opt/jboss-4.2.3.GA/client/jbossall-client.jar</strong><br />
To check if you have set the CLASSPATH correctly, type <strong>echo $CLASSPATH</strong> and if you see the following, you see this, you have set your classpath correctly!</p>
<p><strong>:/CLASSPATH=/opt/jboss-4.2.3.GA/client/jbossall-client.jar</strong></p></blockquote>
<p>3. Configure your <a href="http://java.sun.com/products/jms/tutorial/1_3_1-fcs/doc/client.html">JMS code</a> (<a href="http://java.sun.com/products/jms/tutorial/">more example</a>) (depends on your code)</p>
<blockquote><p>Go to Eclipse IDE and import your JMS Code. The most simple code should contain 2 files, a client and a server. Then right click on the project &gt; Build Path &gt; Add External Archives; then browse to the folder where you installed JBOSS, (<strong>/opt/jboss-4.2.3.GA/</strong>) in our case and then go to <strong>client folder</strong> and add jbossall-client.jar</p>
<p><strong>/opt/jboss-4.2.3.GA/client/jbossall-client.jar</strong></p>
<p><strong>You are all set to run your first JMS application!</strong></p>
<p>You need to create a <a href="http://gsraj.tripod.com/jms/jms.html">topic or queue</a> to run the server, for this start the JBOSS server using:</p>
<p><strong>sudo /opt/jboss-4.2.3.GA/bin/run.sh</strong></p>
<ol>
<li>Go to <a href="http://localhost:8080" rel="nofollow">http://localhost:8080</a> in your browser.</li>
<li>Go to JMX console</li>
<li>Scroll down to <strong>jboss.mq</strong> and click on <strong>service=DestinationManager</strong></li>
<li>Scroll down to  <strong>createTopic() </strong>method; type in the topic name you want to create and click &#8220;invoke&#8221;</li>
</ol>
</blockquote>
<p>4. Integrate JBOSS with Eclipse Ganymede using <a href="http://www.jboss.org/tools">JBOSS Tools</a> (optional)</p>
<blockquote><p>If you want to start and stop the JBOSS server from your Eclipse installation then add the JBOSS Tools to eclipse in Help &gt; Software Updates. You can follow the steps given in <a href="http://ist.berkeley.edu/as-ag/tools/howto/jboss-eclipse.html">this tutorial</a>.</p></blockquote>
<p><strong>Similar Posts:</strong>
<ul class="similar-posts">
<li><a href="http://utkarshsengar.com/2009/11/ubuntu-9-10-karmic-koala/" rel="bookmark" title="November 2, 2009">Ubuntu 9.10 Karmic Koala</a></li>
<li><a href="http://utkarshsengar.com/2009/11/install-google-chrome-os-on-virtual-box/" rel="bookmark" title="November 20, 2009">Install Google Chrome OS on Virtual Box</a></li>
<li><a href="http://utkarshsengar.com/2009/11/sync-ipod-on-ubuntu-9-10-using-virtual-box-3-0-10/" rel="bookmark" title="November 2, 2009">Sync iPod on Ubuntu 9.10 using Virtual Box 3.0.10</a></li>
<li><a href="http://utkarshsengar.com/2010/01/epic-fail-in-linux-copy-paste-bug/" rel="bookmark" title="January 7, 2010">Epic Fail in Ubuntu &#8211; X Windows (The Copy Paste Bug)</a></li>
<li><a href="http://utkarshsengar.com/2009/11/google-calendar-with-gnome-clock/" rel="bookmark" title="November 26, 2009">Sync Google Calendar with GNOME clock</a></li>
</ul>
<p><!-- Similar Posts took 3.440 ms --></p>]]></content:encoded>
			<wfw:commentRss>http://utkarshsengar.com/2009/11/run-jms-application-using-jboss-4-2-3-on-eclipse-ganymede-on-ubuntu-9-10/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	<creativeCommons:license>http://creativecommons.org/licenses/by-nc-nd/3.0/us/</creativeCommons:license>
	</item>
	</channel>
</rss>
