<?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>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 mind.random() on Programming, India and Startups</description> <lastBuildDate>Sun, 30 Oct 2011 06:00:23 +0000</lastBuildDate> <language>en</language> <sy:updatePeriod>hourly</sy:updatePeriod> <sy:updateFrequency>1</sy:updateFrequency> <generator>http://wordpress.org/?v=3.3.1</generator> <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[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. 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 am new [...]]]></description> <content:encoded><![CDATA[<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 http://localhost:8080 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> ]]></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> </item> </channel> </rss>
