<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="http://devpinoy.org/utility/FeedStylesheets/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/"><channel><title>Melvin Dave Vivas' Blog</title><link>http://devpinoy.org/blogs/javazealot/default.aspx</link><description> Musings on Tech Stuff, Java, Linux and Open Source</description><dc:language>en</dc:language><generator>CommunityServer 2008.5 SP1 (Build: 31106.3070)</generator><item><title>iPhone Developers, Philippines LinkedIn Group</title><link>http://devpinoy.org/blogs/javazealot/archive/2008/08/30/iphone-developers-philippines-linkedin-group.aspx</link><pubDate>Sat, 30 Aug 2008 11:19:00 GMT</pubDate><guid isPermaLink="false">99090821-4da1-4a75-98c2-a35884625ff7:27090</guid><dc:creator>javazealot</dc:creator><slash:comments>0</slash:comments><wfw:commentRss xmlns:wfw="http://wellformedweb.org/CommentAPI/">http://devpinoy.org/blogs/javazealot/rsscomments.aspx?PostID=27090</wfw:commentRss><comments>http://devpinoy.org/blogs/javazealot/archive/2008/08/30/iphone-developers-philippines-linkedin-group.aspx#comments</comments><description>&lt;p&gt;&lt;img style="vertical-align:middle;" src="http://4.bp.blogspot.com/_clHtbxKa2Mg/SLoMRdOCgVI/AAAAAAAAAII/hTkDI8MSku0/s400/linkedin_iphone_group.png" height="168" width="400" alt="" /&gt;&lt;/p&gt;
&lt;p&gt;I created the &lt;a href="http://www.linkedin.com/groups?about=&amp;amp;gid=755387"&gt;iPhone Developers, Philippines Group&lt;/a&gt; in LinkedIn to have a community for developers serious into developing applications with the &lt;a href="http://www.apple.com/iphone/"&gt;iPhone&lt;/a&gt;.  Enthusiasts are welcome as well since all of us are forever learning.&lt;br /&gt;&lt;br /&gt;What&amp;#39;s important is that you&amp;#39;re based in the Philippines and you&amp;#39;re excited in developing iPhone apps.&lt;br /&gt;&lt;br /&gt;&lt;a href="http://www.linkedin.com/groups?about=&amp;amp;gid=755387"&gt;Join us now!&lt;/a&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://devpinoy.org/aggbug.aspx?PostID=27090" width="1" height="1"&gt;</description><category domain="http://devpinoy.org/blogs/javazealot/archive/tags/iPhone+development/default.aspx">iPhone development</category><category domain="http://devpinoy.org/blogs/javazealot/archive/tags/iPhone/default.aspx">iPhone</category><category domain="http://devpinoy.org/blogs/javazealot/archive/tags/Philippines/default.aspx">Philippines</category></item><item><title>Finally, my own consulting outfit!</title><link>http://devpinoy.org/blogs/javazealot/archive/2008/08/21/finally-my-own-consulting-outfit.aspx</link><pubDate>Thu, 21 Aug 2008 00:56:00 GMT</pubDate><guid isPermaLink="false">99090821-4da1-4a75-98c2-a35884625ff7:27010</guid><dc:creator>javazealot</dc:creator><slash:comments>0</slash:comments><wfw:commentRss xmlns:wfw="http://wellformedweb.org/CommentAPI/">http://devpinoy.org/blogs/javazealot/rsscomments.aspx?PostID=27010</wfw:commentRss><comments>http://devpinoy.org/blogs/javazealot/archive/2008/08/21/finally-my-own-consulting-outfit.aspx#comments</comments><description>&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;img src="http://1.bp.blogspot.com/_clHtbxKa2Mg/SKXcFsHfkqI/AAAAAAAAAGU/LPZQlHE28JI/S1600-R/final-logo-small-header2.png" height="100" width="600" alt="" /&gt;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Finally! I am now an employee of my own consulting outfit. Just to give an overview, here is what &lt;span style="font-weight:bold;"&gt;Melvin Dave IT Consulting &amp;amp; Marketing Services&lt;/span&gt; has to offer.&lt;/p&gt;
&lt;p&gt;&lt;a href="http://www.melvindaveconsulting.com"&gt;&lt;span style="font-weight:bold;"&gt;Melvin Dave IT Consulting &amp;amp; Marketing Services&lt;/span&gt;&lt;/a&gt;
aims to help companies find the right technologies to solve business
problems. Besides consulting, we also help a few technology companies
market their products. We specialize in mobile services, business
solutions consulting, IT training and technology products marketing.&lt;/p&gt;
&lt;p&gt;I have a few &lt;b&gt;products&lt;/b&gt; in my portfolio:&lt;/p&gt;
&lt;p&gt;&lt;b&gt;1. &lt;a href="http://www.melvindaveconsulting.com/2008/08/product-overview-lemongreen-sms.html"&gt;Lemongreen SMS Appliance&lt;/a&gt;&lt;/b&gt;. The Lemongreen SMS appliance is a pluggable solution that SMS-enables
your business. With this, your company will have the capability
of sending and receiving text messages. It is also possible to integrate the appliance with your
existing infrastructure. &lt;/p&gt;
&lt;p&gt;&lt;b&gt;2. &lt;a href="http://www.melvindaveconsulting.com/2008/08/roboteknik-i100-underwater-inspection.html"&gt;Roboteknik i100 Underwater ROV(Remote Operated Vehicle)&lt;/a&gt;&lt;/b&gt;&lt;a href="http://www.melvindaveconsulting.com/2008/08/roboteknik-i100-underwater-inspection.html"&gt;.&lt;/a&gt; &lt;span&gt;The &lt;span style="font-weight:bold;"&gt;Roboteknik i100&lt;/span&gt; &lt;/span&gt;&lt;span&gt;(Patent Pending)&lt;/span&gt;&lt;span&gt;, &lt;/span&gt;is the first commercially available, locally manufactured underwater inspection robot.&lt;/p&gt;
&lt;p&gt;Yes, I also have a few &lt;b&gt;services&lt;/b&gt; I offer to my clients:&lt;/p&gt;
&lt;p&gt;&lt;b&gt;1. Mobile applications development&lt;/b&gt; focusing primarily on SMS applications and iPhone&lt;b&gt; &lt;/b&gt;development.&lt;br /&gt;&lt;b&gt;2. IT Consulting&lt;/b&gt;. &lt;br /&gt;&lt;b&gt;3. Business Solutions. &lt;/b&gt;If you have a business problem, maybe technology can help. I am open to discussing possible solutions with the company to solve that business need.&lt;/p&gt;
&lt;p&gt;I&amp;#39;m doing an &lt;b&gt;open source&lt;/b&gt; project as well. It&amp;#39;s called Hummingbird.&lt;br /&gt;&lt;br /&gt;&lt;b&gt;Hummingbird&lt;/b&gt; is a pure-Java SMS Gateway server. It is a
SMS integration and server communications framework. Hummingbird makes
it easy for developers to integrate SMS messaging to their software
applications.
You can join check out the project website &lt;a href="https://hummingbird.dev.java.net/"&gt;https://hummingbird.dev.java.net/&lt;/a&gt; for more information and get latest updates.&lt;/p&gt;
&lt;p&gt;Check out our website&lt;span style="font-weight:bold;"&gt;&lt;/span&gt; at &lt;a href="http://www.melvindaveconsulting.com/"&gt;http://www.melvindaveconsulting.com/&lt;/a&gt;. See you!&lt;br /&gt;&lt;br /&gt;Cheers!&lt;br /&gt;&lt;/p&gt;
&lt;p&gt;Melvin&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://devpinoy.org/aggbug.aspx?PostID=27010" width="1" height="1"&gt;</description><category domain="http://devpinoy.org/blogs/javazealot/archive/tags/Underwater+ROV/default.aspx">Underwater ROV</category><category domain="http://devpinoy.org/blogs/javazealot/archive/tags/iPhone+development/default.aspx">iPhone development</category><category domain="http://devpinoy.org/blogs/javazealot/archive/tags/Lemongreen+SMS+appliance/default.aspx">Lemongreen SMS appliance</category><category domain="http://devpinoy.org/blogs/javazealot/archive/tags/SMS/default.aspx">SMS</category><category domain="http://devpinoy.org/blogs/javazealot/archive/tags/consulting/default.aspx">consulting</category><category domain="http://devpinoy.org/blogs/javazealot/archive/tags/business+solutions/default.aspx">business solutions</category></item><item><title>PinoyJUG@Globe Innovation Convention on Aug. 7, 2008</title><link>http://devpinoy.org/blogs/javazealot/archive/2008/07/21/pinoyjug-globe-innovation-convention-on-aug-6-amp-7-2008.aspx</link><pubDate>Mon, 21 Jul 2008 05:54:00 GMT</pubDate><guid isPermaLink="false">99090821-4da1-4a75-98c2-a35884625ff7:26432</guid><dc:creator>javazealot</dc:creator><slash:comments>0</slash:comments><wfw:commentRss xmlns:wfw="http://wellformedweb.org/CommentAPI/">http://devpinoy.org/blogs/javazealot/rsscomments.aspx?PostID=26432</wfw:commentRss><comments>http://devpinoy.org/blogs/javazealot/archive/2008/07/21/pinoyjug-globe-innovation-convention-on-aug-6-amp-7-2008.aspx#comments</comments><description>&lt;p&gt;To devpinoy members,&lt;/p&gt;
&lt;p&gt;In partnership with &lt;a href="http://tech.groups.yahoo.com/group/pinoyjug/"&gt;PinoyJUG&lt;/a&gt;, &lt;a href="http://www.globe.com.ph"&gt;Globe&lt;/a&gt; will be having the 2008 Globe&amp;nbsp;Innovation Convention on August 6 and 7, 2008 at the EDSA Shangri-La.&amp;nbsp;The conference theme will be &amp;quot;Enriching Lives through Innovative&amp;nbsp;Communications&amp;quot;, which encapsulates interests on how innovations using the different evolving technologies can be of real value to existing and new customers by:&lt;/p&gt;
&lt;p&gt;- Lowering the cost or improving the quality of Globe&amp;rsquo;s existing services&lt;br /&gt;- Making services easier and more relevant to use&lt;br /&gt;- Creating new services applicable to the Philippine consumer &amp;amp; business markets across mobile, broadband, and multimedia technologies&lt;/p&gt;
&lt;p&gt;This event promises to be an extensive innovation convention including the full range of parties in the telecommunications innovation ecosystem: Globe Telecom, Technology Partners, ISVs / Developer Companies, the Academe, and Freelance Developers.&lt;/p&gt;
&lt;p&gt;The Globe Labs Launch covers the following:&lt;/p&gt;
&lt;p&gt;1. Launch Globe Labs to the developer community by introducing its program and initiatives&lt;br /&gt;2. Launch two (2) Globe enablers (APIs) that can be used by Globe Labs registered developers to build applications&lt;br /&gt;3. Kick-off the Globe Labs Challenge, a competition to develop applications relevant to the Telco industry&lt;br /&gt;4. Forum Nokia, Microsoft and Sun Microsystems will talk about their latest development tools&lt;/p&gt;
&lt;p&gt;We are inviting all Java Developers to participate in the event on Aug. 7. To avail of PinoyJUG slots, we have decided to&amp;nbsp;ask a little of your time to fill in a short survey(only 4 questions&amp;nbsp;plus your info) about PinoyJUG and your company. This will help us&amp;nbsp;reserve you a slot. After you have filled up the survey, we will be&amp;nbsp;sending you the registration code which you can use for the event.&lt;/p&gt;
&lt;p&gt;Here&amp;#39;s the link to the short survey:&lt;/p&gt;
&lt;p&gt;&lt;a href="http://www.surveymonkey.com/s.aspx?sm=khGwmZR6YyuHc9So93SdJQ_3d_3d"&gt;http://www.surveymonkey.com/s.aspx?sm=khGwmZR6YyuHc9So93SdJQ_3d_3d&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;Registration for PinoyJUG slots will be on a first come first served&amp;nbsp;basis so please register right away. Official members of our&amp;nbsp;organization will be given priority.&lt;/p&gt;
&lt;p&gt;In behalf of PinoyJUG, we are thanking you for all the support and cooperation!&lt;/p&gt;
&lt;p&gt;&lt;em&gt;&lt;strong&gt;Free t-shirts&lt;/strong&gt;&lt;/em&gt; with the PinoyJUG logo await participants! See you there!&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://devpinoy.org/aggbug.aspx?PostID=26432" width="1" height="1"&gt;</description></item><item><title>Buildr : Building Java using Ruby</title><link>http://devpinoy.org/blogs/javazealot/archive/2007/07/12/buildr-building-java-using-ruby.aspx</link><pubDate>Thu, 12 Jul 2007 06:55:00 GMT</pubDate><guid isPermaLink="false">99090821-4da1-4a75-98c2-a35884625ff7:11528</guid><dc:creator>javazealot</dc:creator><slash:comments>1</slash:comments><wfw:commentRss xmlns:wfw="http://wellformedweb.org/CommentAPI/">http://devpinoy.org/blogs/javazealot/rsscomments.aspx?PostID=11528</wfw:commentRss><comments>http://devpinoy.org/blogs/javazealot/archive/2007/07/12/buildr-building-java-using-ruby.aspx#comments</comments><description>&lt;p&gt;My friend posted an interesting tool in &lt;a href="http://tech.groups.yahoo.com/group/pinoyjug/" title="PinoyJUG"&gt;PinoyJUG&lt;/a&gt;.&amp;nbsp; It&amp;#39;s called &lt;a href="http://buildr.rubyforge.org/index.html"&gt;Buildr&lt;/a&gt;. Here&amp;#39;s a description from their website.&lt;br /&gt;&lt;/p&gt;&lt;p&gt;&lt;i&gt;&amp;quot;Buildr is a build system for Java applications. We wanted something
that’s simple and intuitive to use, so we only need to tell it what to
do, and it takes care of the rest. But also something we can easily
extend for those one-off tasks, with a language that’s a joy to use.
And of course, we wanted it to be fast, reliable and have outstanding
dependency management.&amp;quot;&lt;/i&gt; &lt;br /&gt;&lt;/p&gt;&lt;p&gt;Buildr is a &lt;a href="http://www.ruby-lang.org/"&gt;Ruby&lt;/a&gt; application to compile/manage your Java projects. It&amp;#39;s a drop-in replacement of &lt;a href="http://maven.apache.org/"&gt;Maven&lt;/a&gt;. It inherited most of the features of Maven and harnessed the power of Ruby. &lt;br /&gt;&lt;/p&gt;&lt;p&gt;After reading about Builr, I decided to try it out. Here&amp;#39;s my first impression...&lt;br /&gt;&lt;/p&gt;&lt;p&gt;If you have Maven in your machine, testing some sample
builds is a breeze since it uses the same repository and project directory structure. What I noticed
when creating a project is its simplicity. I believe it would be useful
even for small projects.
&lt;br /&gt;&lt;br /&gt;It gets rid of those XML files which is a pain to maintain!
Plus the build file is self-explanatory. Meaning, you don&amp;#39;t have to
figure out what the hell is the build file doing. It is also flexible
in a sense that you can control the logic of building your project with Ruby. Definitely better than XML!
&lt;br /&gt;&lt;br /&gt;Inheriting from Maven, Buildr applies a similar concept when
managing artifacts. It uses your local Maven repository. So if you know
Maven it&amp;#39;s a no-brainer to setup. =)&lt;br /&gt;&lt;span class="sg"&gt;&lt;br /&gt;&lt;/span&gt;&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://devpinoy.org/aggbug.aspx?PostID=11528" width="1" height="1"&gt;</description><category domain="http://devpinoy.org/blogs/javazealot/archive/tags/buildr+ruby+java+build+tool+maven/default.aspx">buildr ruby java build tool maven</category></item><item><title>Weblogic does not have a version for the Mac!!!</title><link>http://devpinoy.org/blogs/javazealot/archive/2007/04/04/weblogic-does-not-have-a-version-for-the-mac.aspx</link><pubDate>Wed, 04 Apr 2007 13:07:00 GMT</pubDate><guid isPermaLink="false">99090821-4da1-4a75-98c2-a35884625ff7:8804</guid><dc:creator>javazealot</dc:creator><slash:comments>5</slash:comments><wfw:commentRss xmlns:wfw="http://wellformedweb.org/CommentAPI/">http://devpinoy.org/blogs/javazealot/rsscomments.aspx?PostID=8804</wfw:commentRss><comments>http://devpinoy.org/blogs/javazealot/archive/2007/04/04/weblogic-does-not-have-a-version-for-the-mac.aspx#comments</comments><description>Yes, it is true. Pathetic!&amp;nbsp;&lt;img src="http://devpinoy.org/emoticons/emotion-12.gif" alt="Angry" /&gt; I was supposed to install it in my iBook but unfortunately there is no supported distribution. Geez!&lt;br&gt;&lt;br&gt;Anyway, some guy has a workaround.&lt;br&gt;http://www.oreillynet.com/onlamp/blog/2004/01/run_weblog ic_server_81_on_mac.html&lt;br&gt;&lt;br&gt;However, I don't need a headache right now. So it's probably JBoss or Geronimo for me. BEA should think about this!&lt;br&gt;&lt;br&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://devpinoy.org/aggbug.aspx?PostID=8804" width="1" height="1"&gt;</description></item><item><title>The Filipino Spirit is Rising! - Tony Meloto</title><link>http://devpinoy.org/blogs/javazealot/archive/2007/04/01/the-filipino-spirit-is-rising-tony-meloto.aspx</link><pubDate>Sun, 01 Apr 2007 04:59:00 GMT</pubDate><guid isPermaLink="false">99090821-4da1-4a75-98c2-a35884625ff7:8771</guid><dc:creator>javazealot</dc:creator><slash:comments>6</slash:comments><wfw:commentRss xmlns:wfw="http://wellformedweb.org/CommentAPI/">http://devpinoy.org/blogs/javazealot/rsscomments.aspx?PostID=8771</wfw:commentRss><comments>http://devpinoy.org/blogs/javazealot/archive/2007/04/01/the-filipino-spirit-is-rising-tony-meloto.aspx#comments</comments><description>&lt;span class="postbody"&gt;This one's not technical but I believe it is a must read for every Filipino. Mabuhay ang Filipino! Mabuhay ang Pilipinas!&lt;br&gt;&lt;br&gt;-----&lt;br&gt;&lt;br&gt;Tony Meloto, the visionary and driving force
behind the Gawad Kalinga movement, is gifted with a Doctorate of
Humanities, Honoris Causa, by the Ateneo de Davao. He then delivers a
speech to the graduates of the university, a challenge actually, for
patriotism and heroism. The same message will be given to eight other
colleges and universities who have asked Tony Meloto to be their
commencement speaker for 2007. &lt;br&gt;

&lt;br&gt;
"The Filipino Spirit is Rising"
&lt;br&gt;
Antonio Meloto
&lt;br&gt;
2007 Commencement Exercises
&lt;br&gt;
Ateneo de Davao University
&lt;br&gt;

&lt;br&gt;
Today, I feel intelligent. Not only am I addressing some of the
brightest minds in Mindanao, but I am also being honored by this
prestigious university with a Doctorate in Humanities, Honoris Causa.
This is the first doctorate that I have received and I am accepting it
in all humility and pride as a recognition of the nobility of the cause
and the heroism of the thousands of Gawad Kalinga workers that I
represent. Thank you Fr. Ting Samson and Ateneo de Davao for bestowing
the highest academic degree on a man who was born without a pedigree-
the "askal" (asong kalye) who went to Ateneo and came back to the slums
to help those he left behind. &lt;br&gt;

&lt;br&gt;
To a person like myself who did not excel in Ateneo in my pursuit of a
college degree, receiving this Ph. D. is extremely flattering being
fully conscious that my principal role in this movement is to be the
storyteller of the many who put in the sacrifice and the hard work and
yet have remained mostly unrecognized. It is also exhilarating because
it builds on the growing global awareness, triggered by Gawad Kalinga
and other movements that have not given up on our country, that the
Filipinos can and will build a squatter-free, slum- free and hunger-
free Philippines by committing their collective genius, passion and
strength towards restoring the dignity and the potential for excellence
of the poor, the weak and the powerless. &lt;br&gt;

&lt;br&gt;
The Filipino spirit today is rising wherever he is in the world. He is
starting to discover that he has the power to liberate himself from
being a slave of the past... that he can remove the label stuck to his
soul as a second class people from a third world country... that he can
correct the scandal of history of being the most corrupt in Asia
despite being the only Christian nation, until East Timor, in the
region. &lt;br&gt;

&lt;br&gt;
In the right setting the Filipino has proven that he can be law- abiding, hardworking, honest and excellent.
&lt;br&gt;

&lt;br&gt;
Over the years, I have not met a Filipino beggar in my travel to the
US, Canada and Australia... not a single beggar that I have seen or
have heard of out of more than 2 million Filipinos in the US; many
Caucasians, Afro- Americans and Latinos- yes- but no Filipinos.
Clearly, it is not the nature of Filipinos to beg if he is in the right
home and community environment. The mendicant culture in his native
land is man- made and artificial and can therefore be unmade and
corrected if we give him back his dignity which is his birthright as a
son of God. &lt;br&gt;

&lt;br&gt;
In the same vein, we know that the Filipino is not lazy. Time Magazine
in its 2006 article on Happiness identifies the Filipino as one of the
ethnic groups in America least likely to go on welfare. How many of us
know of friends and relatives who would take on two or even three jobs
in pursuit of their dreams for a better life. Hardworking when
motivated, resilient when tested- that is the Filipino...that is us. It
is no surprise therefore that the average income of the Filipino-
Americans is higher that the US national average; the former slave is
now richer than the master in his master's home country. &lt;br&gt;

&lt;br&gt;
We must believe that we were designed for excellence. World- class
Filipino doctors and nurses are healing the sick of America and Europe.
Our sailors dominate the seas in every mode of marine transport for
commerce and pleasure providing every imaginable form of service- and
often always, they are the best navigators, the best chefs, the best
entertainers. Thriving economies in Asia carry the mark of Filipino
managerial expertise in their start-up stage. Filipino CEOs, CFOs, COOs
captain top multinational corporations carrying on the proud expat
tradition of SGV's Washington Sycip, PLDT-SMART's Manny Pagnilinan,
P&amp;amp;G's Manny Pacis and many others. &lt;br&gt;

&lt;br&gt;
Sadly, we are top of the line, creme de la creme, the best of the best
elsewhere in the world except in our homeland. While the Jews and the
Arabs were busy building abundance out of their desert, we were busy
creating a desert out of our abundance. &lt;br&gt;

&lt;br&gt;
Let us put a stop to our inanity and hypocrisy. Let us stop cracking
jokes about our shame and misery. Instead let us celebrate with our
hard work and integrity the return of our honor and pride as a gifted
people, blessed by God with this beautiful land. Let us honor every
great deed, every sacrifice, and every kindness that we extend to our
disadvantaged and needy countrymen. &lt;br&gt;

&lt;br&gt;
Let us put an end to our lamentation. We have suffered long enough. For
400 years, we have been gnashing our teeth, blaming one another,
stepping on each other and yet have the temerity at the end of the day
to ask God why this is happening as if it was His fault. It is now time
to hope, to care, to work together and to rejoice. &lt;br&gt;

&lt;br&gt;
Yes, we will rise as a nation if we nurture this emerging beautiful
spirit of the Filipino and cultivate an intelligent heart. How? When we
show our love for God by being our brother's keeper- giving land to the
landless, homes to the homeless and food to the hungry. This is about
love and justice in a country where the majority of our people are
landless, millions of them living in shanties and slums and 17% of them
experiencing hunger in a rich and fertile land. This is not about
charity but about authentic Christian stewardship and nation- building.
&lt;br&gt;

&lt;br&gt;
We will rise as a nation when rich Filipinos will consider the poor as
an heir, like our youngest child, equal in worth and dignity with our
own children, deserving an equal share in our children's inheritance. A
beautiful spirit and an intelligent heart consider the poor as family,
see the face of Christ in them, and see the paradise that every slum
community can become. That is why every GK home is beautifully painted
and the standard of landscaping of every GK village is Ayala Alabang or
Ladislawa in the case of Davao. &lt;br&gt;

&lt;br&gt;
When we build first world communities for the poorest Filipino, we give
them dignity and first world aspirations that will motivate them to
dream bigger and work harder with support and nurturing. A recent study
of GK Brookside, Payatas conducted by the UP Diliman College of
Economics revealed an amazing result - the confidence and self- respect
of the residents, many of them former scavengers, rose from 17% before
GK to 99% after GK; 93% consider themselves better off in terms of
quality of life and 96% believe that their economic situation will
improve in the future. Clearly the spirit of the poor is rising because
those with the most share their best with the least. &lt;br&gt;

&lt;br&gt;
This nation will rise if her sons and daughters abroad will see wisdom
in helping not just their relatives, which is an admirable Filipino
trait, but also the poor they do not know who need help the most.
&lt;br&gt;

&lt;br&gt;Last night, I arrived from a 1- week trip to the U.S. for the world
premiere in Chicago of "Paraiso", the Gawad Kalinga movie, and to
attend GK events in Los Angeles and Las Vegas. The movie was a big hit
but the bigger hit for me was the phenomenal response of our patriots
in America to help the motherland by building self-reliant and
sustainable GK communities. The UST Medical Alumni Association of
America Board was planning not just building more houses but also
hospitals and community health programs through Gawad Kalusugan. USTMAA
president Dr. Primo Andres is building a beautiful GK Village for his
wife, Sylvia in Panabo, Davao where she comes from as an expression of
his deep affection for her. Another Davaoeno, former Cabinet Secretary
Cito Lorenzo, joined me in booming Las Vegas to honor Filipino
entertainers and realtors who are investing in the rebuilding of their
home country. &lt;br&gt;

&lt;br&gt;
Passion for the Philippines was evident everywhere I went. From
successful young San Diego businessman Tony Olaes who spoke about
sleepless nights in his excitement to help fund 20 new GK villages with
his Filipino business partners to the SouthCal Ancop Sikad Bikers
pedaling to build Sibol Schools and the Bayanihan Builders who are
retired professionals in Los Angeles repairing homes of neighbors to
raise resources to build homes in Bicol, to the 8 nurses in NorCal
working extra shifts to fund their individual GK villages. The Filipino
exile is waking up and starting to unleash a stream of Patriot Funds
that will augment the OFW flow in fuelling the Philippine economy. &lt;br&gt;

&lt;br&gt;
Today, I am here to salute the beautiful spirit and the intelligent
heart of the people of Mindanao. Many of our volunteers here, like many
in other parts of the country, build homes for the poor when they
themselves do not own land or home. Christians here starting with
caretakers from Couples for Christ set aside fear and comfort to serve
our fellow Filipinos in Camp Abubakar and other Moslem GK communities.
Your students are going out of the classrooms to learn about life and
love of God and country by serving in poor communities. The LGU of
Davao led by Mayor Duterte and many throughout Mindanao are doing
massive land banking in solidarity with our conviction that no Filipino
deserves to be a squatter in his own country. And many families here
are starting to understand that giving a part of their land to give
dignity and security to the landless and homeless poor is not only
right with God but also builds peace, triggers economic activity,
improves land values- creates a win- win situation for all. &lt;br&gt;

&lt;br&gt;
And to you my dear graduates, what can I say? Congratulations of course
for finishing what you began and for joining the ranks of the elite few
of the Filipinos with a college degree. I thank your parents for their
sacrifice and for giving us sons and daughters who will steward this
country better than us. &lt;br&gt;

&lt;br&gt;
You are entering adult life equipped with a degree from a respected
university at an auspicious time in the life of our country. It is your
destiny to reach maturity during this great season of hope, this
exciting time of awakening, this period of great challenge and heroism.
&lt;br&gt;

&lt;br&gt;
You have the choice and the opportunity to correct the mistakes of our
generation and build a future full of hope in this country. You can be
the new breed of political leaders who will gain your mandate through
visible and quantifiable performance, rather than mastery of the art of
winning elections through cheating and corruption. You can be the new
captains of business and industry who will work for profit with a
conscience, expanding the market base by wisely investing in developing
the potential of the poor for productivity. You can be the new elite of
this country who will not be happy to send your children to exclusive
schools and live in exclusive subdivisions if out of school street
children are ignored and Lazarus continues to live as a squatter
outside your gates. &lt;br&gt;

&lt;br&gt;
Who can stop us from claiming our Promised Land? Spain is not our
master anymore. America is not our master anymore. Japan is not our
master anymore. Our enemies are not the corrupt politicians, the greedy
rich, the lazy poor, the religious hypocrites and other convenient
scapegoats. Our enemies are not out there anymore. Our enemies are now
within us. &lt;br&gt;

&lt;br&gt;
We have compromised our values and tolerated corruption. We have
lowered our standard and tolerated poverty. We have sacrificed the
truth for hypocrisy. We have chosen convenience for vision, popularity
for leadership.. .and have chosen despair over hope. &lt;br&gt;

&lt;br&gt;
Do we fight or do we run? Is there a King Leonides among you who will
fight for honor and freedom? Are there 300 Spartans among you who will
confront our enemies with extraordinary courage and love? Can you be
the army who will lead our people to victory following the path of
peace? Are you the generation of patriots who can shout to the world
that no Filipino will remain poor because you will not allow it; that
no Filipino will remain a squatter because you will not allow it; that
no politician will remain corrupt because you will not allow it? &lt;br&gt;

&lt;br&gt;
If you are, then join us in Gawad Kalinga. Together, we can build a
great nation, first world in the eyes of God and respected by other
great nations.
&lt;br&gt;

&lt;br&gt;
Godspeed to you our patriots and heroes. God bless our beloved Philippines.&lt;/span&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://devpinoy.org/aggbug.aspx?PostID=8771" width="1" height="1"&gt;</description></item><item><title>The Rise of Maven</title><link>http://devpinoy.org/blogs/javazealot/archive/2007/03/13/the-rise-of-maven.aspx</link><pubDate>Tue, 13 Mar 2007 12:44:00 GMT</pubDate><guid isPermaLink="false">99090821-4da1-4a75-98c2-a35884625ff7:8462</guid><dc:creator>javazealot</dc:creator><slash:comments>7</slash:comments><wfw:commentRss xmlns:wfw="http://wellformedweb.org/CommentAPI/">http://devpinoy.org/blogs/javazealot/rsscomments.aspx?PostID=8462</wfw:commentRss><comments>http://devpinoy.org/blogs/javazealot/archive/2007/03/13/the-rise-of-maven.aspx#comments</comments><description>I was wondering why suddenly there was increased interest in using &lt;a href="http://maven.apache.org/"&gt;Maven&lt;/a&gt;. Threads are started in &lt;a href="http://tech.groups.yahoo.com/group/pinoyjug/"&gt;PinoyJUG&lt;/a&gt; about it. I'm glad it's gaining ground in our local scene. &lt;br&gt;&lt;br&gt;I started using this tool a few years back when I had to build one of Apache's projects. I just can't remember what project that was. I think that was 3 years ago. I am using it for my open source project &lt;a href="https://lemonsms.dev.java.net/"&gt;LemonSMS&lt;/a&gt;.&lt;br&gt;&lt;br&gt;Anyway, Maven is a tool for building Java projects. It has features like:&lt;br&gt;&lt;br&gt;- Auto-dependency checking and updating of libraries required by your project&lt;br&gt;- Automatic generation of documentation in PDF and html&lt;br&gt;- Automatic generation of your project website&lt;br&gt;- Continuous integration support&lt;br&gt;- Multiple project support&lt;br&gt;- Plus other features you will discover when using it&lt;br&gt;&lt;br&gt;Official set of features can be seen &lt;a href="http://maven.apache.org/maven-features.html"&gt;here&lt;/a&gt;.&lt;br&gt;&lt;br&gt;The auto-dependency checking feature is interesting.It allows you to define the dependency libraries in your project's configuration. The feature is similar to BSD and Gentoo's ports system. With this feature, you avoid&amp;nbsp; the trouble of downloading the right version of the library your project requires because versions are defined in the configuration as well. This is very useful for medium-to-large sized teams especially if your working on reusable components. &lt;br&gt;&lt;br&gt;Let's have one scenario. Let's say I am responsible for creating and updating the database access components in my team. My component is being used by different projects that require database functionalty. The ordinary process will be to compile the component into a jar then give copies to other members of the team. Pretty straightforward eh? Yes, it's easy if you have a small team. However, let's say we have 12 team members. So what's the issue? I can still give copies to the other 11 members right? You're correct. &lt;br&gt;&lt;br&gt;Here's the thing. Let's say I need to update a method in the library and this is affecting all modules coded by the other team members. What I'll do is build the library and have the others use it. But there's this one junior guy who for some reason mixed up copying the correct version to his machine. Now, he can't compile! So he goes to your desk and asks what seems to be the problem. He insists that he copied the correct version. Now you go to your desk and resend your library. It seems that you sent the wrong version. Now, you have to notify the other team members. Isn't that a pain?! How much time was lost? So this is the problem Maven is solving with this feature. It avoids your team to mix up versions of the libraries because the source is central and checking is done on-the-fly.&lt;br&gt;&lt;br&gt;Another very neat feature of Maven is to automatically create PDF and html documentation. But this is nothing. What's really cool is you can create your project website automatically by just one command. Did you see Maven's website? This was automatically generated using Maven. Don't believe me? Check out all project websites in &lt;a href="http://jakarta.apache.org/"&gt;Apache Jakarta&lt;/a&gt; that uses Maven. You'll see the similarity. ;-)&lt;br&gt;&lt;br&gt;Maven is a pain when you're starting with it but when you get used to it it's a pretty useful tool. Maybe you can start with &lt;a href="http://maven.apache.org/guides/getting-started/maven-in-five-minutes.html"&gt;Maven's 5 minute tutorial&lt;/a&gt; and get the feel of it.&lt;br&gt;&lt;br&gt;Happy Coding!&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://devpinoy.org/aggbug.aspx?PostID=8462" width="1" height="1"&gt;</description><category domain="http://devpinoy.org/blogs/javazealot/archive/tags/Java/default.aspx">Java</category><category domain="http://devpinoy.org/blogs/javazealot/archive/tags/maven/default.aspx">maven</category></item><item><title>Mule. A kick-ass ESB Framework</title><link>http://devpinoy.org/blogs/javazealot/archive/2007/02/23/mule-a-kick-ass-esb-framework.aspx</link><pubDate>Fri, 23 Feb 2007 06:37:00 GMT</pubDate><guid isPermaLink="false">99090821-4da1-4a75-98c2-a35884625ff7:8213</guid><dc:creator>javazealot</dc:creator><slash:comments>0</slash:comments><wfw:commentRss xmlns:wfw="http://wellformedweb.org/CommentAPI/">http://devpinoy.org/blogs/javazealot/rsscomments.aspx?PostID=8213</wfw:commentRss><comments>http://devpinoy.org/blogs/javazealot/archive/2007/02/23/mule-a-kick-ass-esb-framework.aspx#comments</comments><description>&lt;div class="snap_preview"&gt;&lt;p&gt;Yes, I have been playing around with &lt;a href="http://mule.codehaus.org/"&gt;Mule&lt;/a&gt;. No, it's not the P2P client. That's emule!&lt;/p&gt;
&lt;p&gt;"Mule is an Enterprise Service Bus (ESB) messaging framework. It is
a scalable, highly distributable object broker that can seamlessly
handle interactions with services and applications using disparate
transport and messaging technologies." - from Mule's website&lt;/p&gt;
&lt;p&gt;Mule caught my attention because the architecture quite impressive.
I do have some experience about what it aims to solve in the enterprise
environment. Documentation is quite good and easy to understand. I am
tinkering the Hello World sample and it's pretty easy to use. I haven't
been able to run my own customized application though but we will get
there.&lt;/p&gt;
&lt;p&gt;Check out the Mule's kick-ass architecture here…&lt;/p&gt;
&lt;p&gt;&lt;a href="http://mule.codehaus.org/Architecture+Guide" title="Mule Architecture Guide" target="_blank"&gt;http://mule.mulesource.org/wiki/display/MULE/Architecture+Guide&lt;/a&gt;&lt;/p&gt;&lt;p&gt;Here's a snapshot of the kick-ass implementation. It would make other ESB frameworks run for its money. haha&lt;/p&gt;&lt;p&gt;&lt;img src="http://mule.mulesource.org/wiki/download/attachments/1401/mule_esb.gif"&gt;&lt;br&gt;&lt;/p&gt;&lt;p&gt;&lt;/p&gt;&lt;/div&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://devpinoy.org/aggbug.aspx?PostID=8213" width="1" height="1"&gt;</description><category domain="http://devpinoy.org/blogs/javazealot/archive/tags/Java/default.aspx">Java</category><category domain="http://devpinoy.org/blogs/javazealot/archive/tags/enterprise+service+bus/default.aspx">enterprise service bus</category><category domain="http://devpinoy.org/blogs/javazealot/archive/tags/mule/default.aspx">mule</category><category domain="http://devpinoy.org/blogs/javazealot/archive/tags/esb/default.aspx">esb</category></item><item><title>A Glimpse of Ruby on Rails</title><link>http://devpinoy.org/blogs/javazealot/archive/2007/02/23/a-glimpse-of-ruby-on-rails.aspx</link><pubDate>Fri, 23 Feb 2007 06:34:00 GMT</pubDate><guid isPermaLink="false">99090821-4da1-4a75-98c2-a35884625ff7:8212</guid><dc:creator>javazealot</dc:creator><slash:comments>2</slash:comments><wfw:commentRss xmlns:wfw="http://wellformedweb.org/CommentAPI/">http://devpinoy.org/blogs/javazealot/rsscomments.aspx?PostID=8212</wfw:commentRss><comments>http://devpinoy.org/blogs/javazealot/archive/2007/02/23/a-glimpse-of-ruby-on-rails.aspx#comments</comments><description>&lt;p&gt;I was curious on how fast is it to do a web application with Ruby on
Rails. They say it is really fast compared to creating a Java web
application.&lt;/p&gt;
&lt;p&gt;After some searching over the net, I found Locomotive. &lt;a href="http://locomotive.raaum.org/" title="Locomotive"&gt;Locomotive&lt;/a&gt;
is a pre-packaged application which bundles all the requirements of a
Rails web application. It aims to get you started with Ruby on Rails
minus the headache. It is self-contained. It can even run with the
other ruby installations. Too bad it only runs on a Mac. I didn’t wait
any longer and installed it in my machine. Installation is a breeze.
Just click and drag it to the applications directory. The interface to
control running instances of rails apps is straightforward.&lt;/p&gt;It took me maybe less than an hour to create my first Rails
application. Hmmm…I don’t even have background with Rails! I was amazed
how fast it can be done. Actually, I was stuck because my crappy text
editor couldn’t save the proper filename. Dang! It could just have been
a few minutes. Haha! The sample is not just the simple Hello World
thingy but it has some database stuff wherein the users are able to do
the usual &lt;a href="http://en.wikipedia.org/wiki/CRUD_%28acronym%29"&gt;CRUD&lt;/a&gt;
 routine from the web browser. Rails is very interesting. I think I’ll use this thing for some of my web pet projects.&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://devpinoy.org/aggbug.aspx?PostID=8212" width="1" height="1"&gt;</description><category domain="http://devpinoy.org/blogs/javazealot/archive/tags/ruby/default.aspx">ruby</category><category domain="http://devpinoy.org/blogs/javazealot/archive/tags/ruby+on+rails/default.aspx">ruby on rails</category><category domain="http://devpinoy.org/blogs/javazealot/archive/tags/ror/default.aspx">ror</category><category domain="http://devpinoy.org/blogs/javazealot/archive/tags/web/default.aspx">web</category><category domain="http://devpinoy.org/blogs/javazealot/archive/tags/locomotive/default.aspx">locomotive</category></item><item><title>Eclipse RCP. Probably the next BIG thing?</title><link>http://devpinoy.org/blogs/javazealot/archive/2007/02/23/eclipse-rcp-probably-the-next-big-thing.aspx</link><pubDate>Fri, 23 Feb 2007 06:19:00 GMT</pubDate><guid isPermaLink="false">99090821-4da1-4a75-98c2-a35884625ff7:8211</guid><dc:creator>javazealot</dc:creator><slash:comments>2</slash:comments><wfw:commentRss xmlns:wfw="http://wellformedweb.org/CommentAPI/">http://devpinoy.org/blogs/javazealot/rsscomments.aspx?PostID=8211</wfw:commentRss><comments>http://devpinoy.org/blogs/javazealot/archive/2007/02/23/eclipse-rcp-probably-the-next-big-thing.aspx#comments</comments><description>&lt;div class="snap_preview"&gt;&lt;p&gt;I am intrigued by how Eclipse shocked the
Java world with its IDE. Today, Eclipse is the most well-known
opens-source IDE. IBM, together with other IT companies such as Redhat,
Suse, TogetherSoft plus a bunch of kick-ass open-source developers made
the initiative successful. Eclipse is now well-known and used by most
of developers I know. I believe it’s the most popular Java development
tool right now.&lt;/p&gt;
&lt;p&gt;I have been developing applications for the web since I ever started
programming a few years back. Somehow I feel, web applications just
does not cut it. I mean you can’t do eveything with web applications.
There are a lot of limitations especially if you would like to work
with real-time stuff. Unless you would embed an applet, real-time
display of information is really near to impossible. Others may argue
that you can do a page refresh every time. It still isn’t real-time if
you get what I mean. They say AJAX is the way to go. For presentation,
yes. But for kick-ass applications, I doubt it.&lt;/p&gt;
&lt;p&gt;Here comes Eclipse RCP. Others may disagree but I believe this is
the next big thing. Hardware is getting cheap and becoming more
powerful. So what’s the point of creating applications wherein
processing is done mostly in the server side. The best example of such
applications are web applications.&lt;/p&gt;
&lt;p&gt;What we need are applications that will harness the client’s PC’s computing power. &lt;a title="Eclipse RCP" target="_blank" href="http://wiki.eclipse.org/index.php/Rich_Client_Platform"&gt;Eclipse RCP&lt;/a&gt;
will be the great equalizer. Since it already has a built-in shell,
it’s pretty easy to create your own application. What you need to do is
just follow the framework and viola! You’re done. It’s not that easy
but it cuts out some work. If you want to develop everything from
scratch, there’s SWT. SWT uses your OS’ standard GUI libraries. Like
for example in Linux, it would be gtk. For windows, the standard GUI
libraries that comes with it.&lt;/p&gt;
&lt;p&gt;I am not saying that application servers and servlet containers like
Geronimo,JBoss, or Tomcat will have no use anymore. They still will be
there to serve their purpose. Since we’re evolving back to
client-server applications, we need a stable backend for the server
part. What I’m saying is that clients should share the load. What’s the
use of your P4 machine or a 64-bit AMD with 1GB RAM if you don’t
utilize it. Now how do we use these web containers and application
servers? We use them to handle the logic at the server side and take
advantage of HTTP. You can even provide a secure transmission with SSL.
You don’t have to create your server from scratch anymore like they did
a few years back. You can use web services as your transmission
protocol if you want. There are a lot of possibilities. It would look
something like this.&lt;/p&gt;
&lt;p&gt;RCP Client –&amp;gt; Application server(e.g. Geronimo, JBoss, Tomcat) &amp;lt;– RCP Client&lt;/p&gt;
&lt;p&gt;So what do you think?&lt;/p&gt;
&lt;/div&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://devpinoy.org/aggbug.aspx?PostID=8211" width="1" height="1"&gt;</description><category domain="http://devpinoy.org/blogs/javazealot/archive/tags/Java/default.aspx">Java</category><category domain="http://devpinoy.org/blogs/javazealot/archive/tags/rcp/default.aspx">rcp</category><category domain="http://devpinoy.org/blogs/javazealot/archive/tags/eclipse/default.aspx">eclipse</category></item><item><title>Steps to enable remote access to your PostgreSQL server</title><link>http://devpinoy.org/blogs/javazealot/archive/2006/09/29/Steps-to-enable-remote-access-to-your-PostgresSQL-server.aspx</link><pubDate>Fri, 29 Sep 2006 05:53:00 GMT</pubDate><guid isPermaLink="false">99090821-4da1-4a75-98c2-a35884625ff7:5364</guid><dc:creator>javazealot</dc:creator><slash:comments>0</slash:comments><wfw:commentRss xmlns:wfw="http://wellformedweb.org/CommentAPI/">http://devpinoy.org/blogs/javazealot/rsscomments.aspx?PostID=5364</wfw:commentRss><comments>http://devpinoy.org/blogs/javazealot/archive/2006/09/29/Steps-to-enable-remote-access-to-your-PostgresSQL-server.aspx#comments</comments><description>For those who are installing the PostgreSQL database for the first time, this tip might be useful. &lt;br&gt;&lt;br&gt;Most of the time you want to connect to your database using an external database client. For security reasons, Postgres does not allow you to connect remotely. &lt;br&gt;&lt;br&gt;I installed the 8.1 version.&amp;nbsp; Please note that the configuration is different from the 7.X versions.&lt;br&gt;&lt;br&gt;There are two very simple steps you have to follow:&lt;br&gt;&lt;br&gt;1. Edit the postgresql.conf file found in &amp;lt;postgres-install-dir&amp;gt;/data. This assumes that you initialized the database and create the data files under the default installation. Add this line.&lt;br&gt;&lt;br&gt;&lt;span style="color:Black;background-color:transparent;font-family:Courier New;font-size:11px;font-weight:normal;"&gt;listen_addresses &lt;span style="color:Red;background-color:transparent;font-family:Courier New;font-size:11px;font-weight:normal;"&gt;=&lt;/span&gt; '&lt;span style="color:Red;background-color:transparent;font-family:Courier New;font-size:11px;font-weight:normal;"&gt;*&lt;/span&gt;'&lt;br&gt;&lt;/span&gt;&lt;br&gt; For the previous versions, this used to be "tcpip_socket = true".&lt;br&gt;&lt;br&gt;2. By default Postgres blocks all clients connecting to it so you have to add the ff. line in pg_hba.conf. The file is located in the same directory as the previous configuration file:&lt;br&gt;&lt;br&gt;host&amp;nbsp;&amp;nbsp;&amp;nbsp; all&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; all&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 0.0.0.0/0&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; trust&lt;br&gt;&lt;br&gt;This configuration is not the recomended one since it allows all IP addresses to connect. You can check out the Postgres documentation on how to allow specific addresses. Please do not use this configuration in production systems.&lt;br&gt;&lt;br&gt;Now you can connect using your favorite database administration tool. &lt;img src="http://devpinoy.org/emoticons/emotion-1.gif" alt="Smile" /&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://devpinoy.org/aggbug.aspx?PostID=5364" width="1" height="1"&gt;</description><category domain="http://devpinoy.org/blogs/javazealot/archive/tags/Configuration/default.aspx">Configuration</category><category domain="http://devpinoy.org/blogs/javazealot/archive/tags/PostgreSQL/default.aspx">PostgreSQL</category></item><item><title>Communicating with Geronimo’s JMS(ActiveMQ)</title><link>http://devpinoy.org/blogs/javazealot/archive/2006/09/22/Communicating-with-Geronimo_1920_s-JMS_2800_ActiveMQ_2900_.aspx</link><pubDate>Thu, 21 Sep 2006 17:26:00 GMT</pubDate><guid isPermaLink="false">99090821-4da1-4a75-98c2-a35884625ff7:5221</guid><dc:creator>javazealot</dc:creator><slash:comments>4</slash:comments><wfw:commentRss xmlns:wfw="http://wellformedweb.org/CommentAPI/">http://devpinoy.org/blogs/javazealot/rsscomments.aspx?PostID=5221</wfw:commentRss><comments>http://devpinoy.org/blogs/javazealot/archive/2006/09/22/Communicating-with-Geronimo_1920_s-JMS_2800_ActiveMQ_2900_.aspx#comments</comments><description>&lt;p&gt;I was reading this &lt;a href="http://www-128.ibm.com/developerworks/opensource/library/os-ag-jmsbeans/" target="_blank"&gt;article&lt;/a&gt; from IBM about how to communicate with Geronimo’s JMS server(ActiveMQ). The sample for the non-J2EE client does not work!&lt;/p&gt;
&lt;p&gt;What I did is to take the code from the article and edit the typo
and voila! I got some prototype code! I am using &lt;a href="http://www-306.ibm.com/software/webservers/appserv/community/"&gt;IBM Websphere
Community Edition(IBM WAS CE)&lt;/a&gt;, which is synonymous to &lt;a href="http://geronimo.apache.org/"&gt;Geronimo&lt;/a&gt;(at least
for the first version). By the way, I added the sender code.&lt;/p&gt;
&lt;p&gt;Here are the simple steps:&lt;/p&gt;
&lt;p&gt;1. Run &lt;a href="http://geronimo.apache.org/"&gt;Geronimo&lt;/a&gt; or IBM WAS CE&lt;br&gt;
2. Compile these two classes. Take note that you need the ff. jar files to compile and run these successfully. Here’s the list:&lt;/p&gt;
&lt;p&gt;- geronimo-j2ee_1.4_spec.jar&lt;br&gt;
- commons-logging-1.0.4.jar&lt;br&gt;
- concurrent-1.3.4.jar&lt;/p&gt;&lt;p&gt;&lt;/p&gt;
You’ll find it somewhere under the Geronimo or WAS CE installation directory.&lt;p&gt;
3. Run the clients.&lt;br&gt;&lt;br&gt;The receiver class&lt;/p&gt;&lt;p&gt;&lt;span style="color:Black;background-color:transparent;font-family:Courier New;font-size:11px;font-weight:normal;"&gt;&lt;span style="color:Blue;background-color:transparent;font-family:Courier New;font-size:11px;font-weight:normal;"&gt;import&lt;/span&gt; java.util.logging.Logger;&lt;br&gt;&lt;br&gt;&lt;span style="color:Blue;background-color:transparent;font-family:Courier New;font-size:11px;font-weight:normal;"&gt;import&lt;/span&gt; javax.jms.Message;&lt;br&gt;&lt;span style="color:Blue;background-color:transparent;font-family:Courier New;font-size:11px;font-weight:normal;"&gt;import&lt;/span&gt; javax.jms.MessageConsumer;&lt;br&gt;&lt;span style="color:Blue;background-color:transparent;font-family:Courier New;font-size:11px;font-weight:normal;"&gt;import&lt;/span&gt; javax.jms.Queue;&lt;br&gt;&lt;span style="color:Blue;background-color:transparent;font-family:Courier New;font-size:11px;font-weight:normal;"&gt;import&lt;/span&gt; javax.jms.QueueConnection;&lt;br&gt;&lt;span style="color:Blue;background-color:transparent;font-family:Courier New;font-size:11px;font-weight:normal;"&gt;import&lt;/span&gt; javax.jms.QueueSession;&lt;br&gt;&lt;span style="color:Blue;background-color:transparent;font-family:Courier New;font-size:11px;font-weight:normal;"&gt;import&lt;/span&gt; javax.jms.Session;&lt;br&gt;&lt;span style="color:Blue;background-color:transparent;font-family:Courier New;font-size:11px;font-weight:normal;"&gt;import&lt;/span&gt; javax.jms.TextMessage;&lt;br&gt;&lt;br&gt;&lt;span style="color:Blue;background-color:transparent;font-family:Courier New;font-size:11px;font-weight:normal;"&gt;import&lt;/span&gt; org.activemq.ActiveMQConnectionFactory;&lt;br&gt;&lt;br&gt;&lt;span style="color:Blue;background-color:transparent;font-family:Courier New;font-size:11px;font-weight:normal;"&gt;public&lt;/span&gt; &lt;span style="color:Blue;background-color:transparent;font-family:Courier New;font-size:11px;font-weight:normal;"&gt;class&lt;/span&gt; JMSReceiver {&lt;br&gt;&lt;span style="color:Blue;background-color:transparent;font-family:Courier New;font-size:11px;font-weight:normal;"&gt;protected&lt;/span&gt; Queue queue;&lt;br&gt;&lt;br&gt;&lt;span style="color:Blue;background-color:transparent;font-family:Courier New;font-size:11px;font-weight:normal;"&gt;protected&lt;/span&gt; String queueName &lt;span style="color:Red;background-color:transparent;font-family:Courier New;font-size:11px;font-weight:normal;"&gt;=&lt;/span&gt; “SendReceiveQueue”;&lt;br&gt;&lt;span style="color:Blue;background-color:transparent;font-family:Courier New;font-size:11px;font-weight:normal;"&gt;protected&lt;/span&gt; String url &lt;span style="color:Red;background-color:transparent;font-family:Courier New;font-size:11px;font-weight:normal;"&gt;=&lt;/span&gt; “tcp:&lt;span style="color:Green;background-color:transparent;font-family:Courier New;font-size:11px;font-weight:normal;"&gt;//localhost:61616″;&lt;/span&gt;&lt;br&gt;&lt;br&gt;Logger logger &lt;span style="color:Red;background-color:transparent;font-family:Courier New;font-size:11px;font-weight:normal;"&gt;=&lt;/span&gt; Logger.getAnonymousLogger();&lt;br&gt;&lt;br&gt;&lt;span style="color:Blue;background-color:transparent;font-family:Courier New;font-size:11px;font-weight:normal;"&gt;protected&lt;/span&gt; &lt;span style="color:Blue;background-color:transparent;font-family:Courier New;font-size:11px;font-weight:normal;"&gt;int&lt;/span&gt; ackMode &lt;span style="color:Red;background-color:transparent;font-family:Courier New;font-size:11px;font-weight:normal;"&gt;=&lt;/span&gt; Session.AUTO_ACKNOWLEDGE;&lt;br&gt;&lt;br&gt;&lt;span style="color:Blue;background-color:transparent;font-family:Courier New;font-size:11px;font-weight:normal;"&gt;public&lt;/span&gt; &lt;span style="color:Blue;background-color:transparent;font-family:Courier New;font-size:11px;font-weight:normal;"&gt;static&lt;/span&gt; &lt;span style="color:Blue;background-color:transparent;font-family:Courier New;font-size:11px;font-weight:normal;"&gt;void&lt;/span&gt; main(String[] args) {&lt;br&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; JMSReceiver msgReceiver &lt;span style="color:Red;background-color:transparent;font-family:Courier New;font-size:11px;font-weight:normal;"&gt;=&lt;/span&gt; &lt;span style="color:Blue;background-color:transparent;font-family:Courier New;font-size:11px;font-weight:normal;"&gt;new&lt;/span&gt; JMSReceiver();&lt;br&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; msgReceiver.run();&lt;br&gt;}&lt;br&gt;&lt;br&gt;&lt;span style="color:Blue;background-color:transparent;font-family:Courier New;font-size:11px;font-weight:normal;"&gt;public&lt;/span&gt; &lt;span style="color:Blue;background-color:transparent;font-family:Courier New;font-size:11px;font-weight:normal;"&gt;void&lt;/span&gt; run() {&lt;br&gt;&lt;span style="color:Blue;background-color:transparent;font-family:Courier New;font-size:11px;font-weight:normal;"&gt;&amp;nbsp;&amp;nbsp; try&lt;/span&gt; {&lt;br&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ActiveMQConnectionFactory connectionFactory &lt;span style="color:Red;background-color:transparent;font-family:Courier New;font-size:11px;font-weight:normal;"&gt;=&lt;/span&gt;&lt;br&gt;&lt;span style="color:Blue;background-color:transparent;font-family:Courier New;font-size:11px;font-weight:normal;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; new&lt;/span&gt; ActiveMQConnectionFactory(url);&lt;br&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; QueueConnection connection &lt;span style="color:Red;background-color:transparent;font-family:Courier New;font-size:11px;font-weight:normal;"&gt;=&lt;/span&gt; (QueueConnection)connectionFactory.createConnection();&lt;br&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; connection.start();&lt;br&gt;&lt;br&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; MessageConsumer consumer &lt;span style="color:Red;background-color:transparent;font-family:Courier New;font-size:11px;font-weight:normal;"&gt;=&lt;/span&gt; &lt;span style="color:Blue;background-color:transparent;font-family:Courier New;font-size:11px;font-weight:normal;"&gt;null&lt;/span&gt;;&lt;br&gt;&lt;br&gt;&lt;/span&gt;&lt;span style="color:Black;background-color:transparent;font-family:Courier New;font-size:11px;font-weight:normal;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;span style="color:Black;background-color:transparent;font-family:Courier New;font-size:11px;font-weight:normal;"&gt;QueueSession session &lt;span style="color:Red;background-color:transparent;font-family:Courier New;font-size:11px;font-weight:normal;"&gt;=&lt;/span&gt; connection.createQueueSession(false,Session.AUTO_ACKNOWLEDGE);&lt;br&gt;&lt;br&gt;&lt;/span&gt;&lt;span style="color:Black;background-color:transparent;font-family:Courier New;font-size:11px;font-weight:normal;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;span style="color:Black;background-color:transparent;font-family:Courier New;font-size:11px;font-weight:normal;"&gt;queue &lt;span style="color:Red;background-color:transparent;font-family:Courier New;font-size:11px;font-weight:normal;"&gt;=&lt;/span&gt; session.createQueue(queueName);&lt;br&gt;&lt;/span&gt;&lt;span style="color:Black;background-color:transparent;font-family:Courier New;font-size:11px;font-weight:normal;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;span style="color:Black;background-color:transparent;font-family:Courier New;font-size:11px;font-weight:normal;"&gt;consumer &lt;span style="color:Red;background-color:transparent;font-family:Courier New;font-size:11px;font-weight:normal;"&gt;=&lt;/span&gt; session.createReceiver(queue);&lt;br&gt;&lt;/span&gt;&lt;span style="color:Black;background-color:transparent;font-family:Courier New;font-size:11px;font-weight:normal;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;span style="color:Black;background-color:transparent;font-family:Courier New;font-size:11px;font-weight:normal;"&gt;logger.info(”Waiting &lt;span style="color:Blue;background-color:transparent;font-family:Courier New;font-size:11px;font-weight:normal;"&gt;for&lt;/span&gt; message (max 5)”);&lt;br&gt;&lt;span style="color:Blue;background-color:transparent;font-family:Courier New;font-size:11px;font-weight:normal;"&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="color:Black;background-color:transparent;font-family:Courier New;font-size:11px;font-weight:normal;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;span style="color:Black;background-color:transparent;font-family:Courier New;font-size:11px;font-weight:normal;"&gt;&lt;span style="color:Blue;background-color:transparent;font-family:Courier New;font-size:11px;font-weight:normal;"&gt;for&lt;/span&gt; (&lt;span style="color:Blue;background-color:transparent;font-family:Courier New;font-size:11px;font-weight:normal;"&gt;int&lt;/span&gt; i &lt;span style="color:Red;background-color:transparent;font-family:Courier New;font-size:11px;font-weight:normal;"&gt;=&lt;/span&gt; 0; i &amp;lt; 5; i++) {&lt;br&gt;&lt;/span&gt;&lt;span style="color:Black;background-color:transparent;font-family:Courier New;font-size:11px;font-weight:normal;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;span style="color:Black;background-color:transparent;font-family:Courier New;font-size:11px;font-weight:normal;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;span style="color:Black;background-color:transparent;font-family:Courier New;font-size:11px;font-weight:normal;"&gt;Message message &lt;span style="color:Red;background-color:transparent;font-family:Courier New;font-size:11px;font-weight:normal;"&gt;=&lt;/span&gt; consumer.receive();&lt;br&gt;&lt;/span&gt;&lt;span style="color:Black;background-color:transparent;font-family:Courier New;font-size:11px;font-weight:normal;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;span style="color:Black;background-color:transparent;font-family:Courier New;font-size:11px;font-weight:normal;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;span style="color:Black;background-color:transparent;font-family:Courier New;font-size:11px;font-weight:normal;"&gt;processMessage(message);&lt;br&gt;&lt;/span&gt;&lt;span style="color:Black;background-color:transparent;font-family:Courier New;font-size:11px;font-weight:normal;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;span style="color:Black;background-color:transparent;font-family:Courier New;font-size:11px;font-weight:normal;"&gt;}&lt;br&gt;&lt;/span&gt;&lt;span style="color:Black;background-color:transparent;font-family:Courier New;font-size:11px;font-weight:normal;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;span style="color:Black;background-color:transparent;font-family:Courier New;font-size:11px;font-weight:normal;"&gt;logger.info(”Closing connection”);&lt;br&gt;&lt;/span&gt;&lt;span style="color:Black;background-color:transparent;font-family:Courier New;font-size:11px;font-weight:normal;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;span style="color:Black;background-color:transparent;font-family:Courier New;font-size:11px;font-weight:normal;"&gt;consumer.close();&lt;br&gt;&lt;/span&gt;&lt;span style="color:Black;background-color:transparent;font-family:Courier New;font-size:11px;font-weight:normal;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;span style="color:Black;background-color:transparent;font-family:Courier New;font-size:11px;font-weight:normal;"&gt;session.close();&lt;br&gt;&lt;/span&gt;&lt;span style="color:Black;background-color:transparent;font-family:Courier New;font-size:11px;font-weight:normal;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;span style="color:Black;background-color:transparent;font-family:Courier New;font-size:11px;font-weight:normal;"&gt;connection.close();&lt;br&gt;&lt;br&gt;&lt;/span&gt;&lt;span style="color:Black;background-color:transparent;font-family:Courier New;font-size:11px;font-weight:normal;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;span style="color:Black;background-color:transparent;font-family:Courier New;font-size:11px;font-weight:normal;"&gt;} &lt;span style="color:Blue;background-color:transparent;font-family:Courier New;font-size:11px;font-weight:normal;"&gt;catch&lt;/span&gt; (Exception e) {&lt;br&gt;&lt;/span&gt;&lt;span style="color:Black;background-color:transparent;font-family:Courier New;font-size:11px;font-weight:normal;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;span style="color:Black;background-color:transparent;font-family:Courier New;font-size:11px;font-weight:normal;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;span style="color:Black;background-color:transparent;font-family:Courier New;font-size:11px;font-weight:normal;"&gt;logger.info(”Caught: ” &lt;span style="color:Red;background-color:transparent;font-family:Courier New;font-size:11px;font-weight:normal;"&gt;+&lt;/span&gt; e);&lt;br&gt;&lt;/span&gt;&lt;span style="color:Black;background-color:transparent;font-family:Courier New;font-size:11px;font-weight:normal;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;span style="color:Black;background-color:transparent;font-family:Courier New;font-size:11px;font-weight:normal;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;span style="color:Black;background-color:transparent;font-family:Courier New;font-size:11px;font-weight:normal;"&gt;e.printStackTrace();&lt;br&gt;&lt;/span&gt;&lt;span style="color:Black;background-color:transparent;font-family:Courier New;font-size:11px;font-weight:normal;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;span style="color:Black;background-color:transparent;font-family:Courier New;font-size:11px;font-weight:normal;"&gt;&lt;/span&gt;&lt;span style="color:Black;background-color:transparent;font-family:Courier New;font-size:11px;font-weight:normal;"&gt;}&lt;br&gt;}&lt;br&gt;&lt;br&gt;&lt;span style="color:Blue;background-color:transparent;font-family:Courier New;font-size:11px;font-weight:normal;"&gt;public&lt;/span&gt; &lt;span style="color:Blue;background-color:transparent;font-family:Courier New;font-size:11px;font-weight:normal;"&gt;void&lt;/span&gt; processMessage(Message message) {&lt;br&gt;&lt;span style="color:Blue;background-color:transparent;font-family:Courier New;font-size:11px;font-weight:normal;"&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="color:Black;background-color:transparent;font-family:Courier New;font-size:11px;font-weight:normal;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;span style="color:Black;background-color:transparent;font-family:Courier New;font-size:11px;font-weight:normal;"&gt;&lt;span style="color:Blue;background-color:transparent;font-family:Courier New;font-size:11px;font-weight:normal;"&gt;try&lt;/span&gt; {&lt;br&gt;&lt;/span&gt;&lt;span style="color:Black;background-color:transparent;font-family:Courier New;font-size:11px;font-weight:normal;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;span style="color:Black;background-color:transparent;font-family:Courier New;font-size:11px;font-weight:normal;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;span style="color:Black;background-color:transparent;font-family:Courier New;font-size:11px;font-weight:normal;"&gt;TextMessage txtMsg &lt;span style="color:Red;background-color:transparent;font-family:Courier New;font-size:11px;font-weight:normal;"&gt;=&lt;/span&gt; (TextMessage) message;&lt;br&gt;&lt;/span&gt;&lt;span style="color:Black;background-color:transparent;font-family:Courier New;font-size:11px;font-weight:normal;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;span style="color:Black;background-color:transparent;font-family:Courier New;font-size:11px;font-weight:normal;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;span style="color:Black;background-color:transparent;font-family:Courier New;font-size:11px;font-weight:normal;"&gt;logger.info(”Received a message: ” &lt;span style="color:Red;background-color:transparent;font-family:Courier New;font-size:11px;font-weight:normal;"&gt;+&lt;/span&gt; txtMsg.getText());&lt;br&gt;&lt;/span&gt;&lt;span style="color:Black;background-color:transparent;font-family:Courier New;font-size:11px;font-weight:normal;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;span style="color:Black;background-color:transparent;font-family:Courier New;font-size:11px;font-weight:normal;"&gt;&lt;/span&gt;&lt;span style="color:Black;background-color:transparent;font-family:Courier New;font-size:11px;font-weight:normal;"&gt;} &lt;span style="color:Blue;background-color:transparent;font-family:Courier New;font-size:11px;font-weight:normal;"&gt;catch&lt;/span&gt; (Exception e) {&lt;br&gt;&lt;/span&gt;&lt;span style="color:Black;background-color:transparent;font-family:Courier New;font-size:11px;font-weight:normal;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;span style="color:Black;background-color:transparent;font-family:Courier New;font-size:11px;font-weight:normal;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;span style="color:Black;background-color:transparent;font-family:Courier New;font-size:11px;font-weight:normal;"&gt;logger.info(”Caught: ” &lt;span style="color:Red;background-color:transparent;font-family:Courier New;font-size:11px;font-weight:normal;"&gt;+&lt;/span&gt; e);&lt;br&gt;&lt;/span&gt;&lt;span style="color:Black;background-color:transparent;font-family:Courier New;font-size:11px;font-weight:normal;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;span style="color:Black;background-color:transparent;font-family:Courier New;font-size:11px;font-weight:normal;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;span style="color:Black;background-color:transparent;font-family:Courier New;font-size:11px;font-weight:normal;"&gt;e.printStackTrace();&lt;br&gt;&lt;/span&gt;&lt;span style="color:Black;background-color:transparent;font-family:Courier New;font-size:11px;font-weight:normal;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;span style="color:Black;background-color:transparent;font-family:Courier New;font-size:11px;font-weight:normal;"&gt;}&lt;br&gt;}&lt;br&gt;&lt;br&gt;}&lt;/span&gt;&lt;/p&gt;&lt;p&gt;The sender class&lt;/p&gt;&lt;p&gt;&lt;span style="color:Black;background-color:transparent;font-family:Courier New;font-size:11px;font-weight:normal;"&gt;&lt;span style="color:Blue;background-color:transparent;font-family:Courier New;font-size:11px;font-weight:normal;"&gt;import&lt;/span&gt; java.util.logging.Logger;&lt;br&gt;&lt;br&gt;&lt;span style="color:Blue;background-color:transparent;font-family:Courier New;font-size:11px;font-weight:normal;"&gt;import&lt;/span&gt; javax.jms.Queue;&lt;br&gt;&lt;span style="color:Blue;background-color:transparent;font-family:Courier New;font-size:11px;font-weight:normal;"&gt;import&lt;/span&gt; javax.jms.QueueConnection;&lt;br&gt;&lt;span style="color:Blue;background-color:transparent;font-family:Courier New;font-size:11px;font-weight:normal;"&gt;import&lt;/span&gt; javax.jms.QueueSender;&lt;br&gt;&lt;span style="color:Blue;background-color:transparent;font-family:Courier New;font-size:11px;font-weight:normal;"&gt;import&lt;/span&gt; javax.jms.QueueSession;&lt;br&gt;&lt;span style="color:Blue;background-color:transparent;font-family:Courier New;font-size:11px;font-weight:normal;"&gt;import&lt;/span&gt; javax.jms.Session;&lt;br&gt;&lt;span style="color:Blue;background-color:transparent;font-family:Courier New;font-size:11px;font-weight:normal;"&gt;import&lt;/span&gt; javax.jms.TextMessage;&lt;br&gt;&lt;br&gt;&lt;span style="color:Blue;background-color:transparent;font-family:Courier New;font-size:11px;font-weight:normal;"&gt;import&lt;/span&gt; org.activemq.ActiveMQConnectionFactory;&lt;br&gt;&lt;br&gt;&lt;span style="color:Blue;background-color:transparent;font-family:Courier New;font-size:11px;font-weight:normal;"&gt;public&lt;/span&gt; &lt;span style="color:Blue;background-color:transparent;font-family:Courier New;font-size:11px;font-weight:normal;"&gt;class&lt;/span&gt; JMSSender {&lt;br&gt;&lt;br&gt;&lt;span style="color:Blue;background-color:transparent;font-family:Courier New;font-size:11px;font-weight:normal;"&gt;private&lt;/span&gt; Queue receiveQueue &lt;span style="color:Red;background-color:transparent;font-family:Courier New;font-size:11px;font-weight:normal;"&gt;=&lt;/span&gt; &lt;span style="color:Blue;background-color:transparent;font-family:Courier New;font-size:11px;font-weight:normal;"&gt;null&lt;/span&gt;;&lt;br&gt;&lt;span style="color:Blue;background-color:transparent;font-family:Courier New;font-size:11px;font-weight:normal;"&gt;protected&lt;/span&gt; String queueName &lt;span style="color:Red;background-color:transparent;font-family:Courier New;font-size:11px;font-weight:normal;"&gt;=&lt;/span&gt; “SendReceiveQueue”;&lt;br&gt;&lt;span style="color:Blue;background-color:transparent;font-family:Courier New;font-size:11px;font-weight:normal;"&gt;protected&lt;/span&gt; String url &lt;span style="color:Red;background-color:transparent;font-family:Courier New;font-size:11px;font-weight:normal;"&gt;=&lt;/span&gt; “tcp:&lt;span style="color:Green;background-color:transparent;font-family:Courier New;font-size:11px;font-weight:normal;"&gt;//localhost:61616″;&lt;/span&gt;&lt;br&gt;Logger logger &lt;span style="color:Red;background-color:transparent;font-family:Courier New;font-size:11px;font-weight:normal;"&gt;=&lt;/span&gt; Logger.getAnonymousLogger();&lt;br&gt;&lt;br&gt;&lt;span style="color:Blue;background-color:transparent;font-family:Courier New;font-size:11px;font-weight:normal;"&gt;public&lt;/span&gt; &lt;span style="color:Blue;background-color:transparent;font-family:Courier New;font-size:11px;font-weight:normal;"&gt;static&lt;/span&gt; &lt;span style="color:Blue;background-color:transparent;font-family:Courier New;font-size:11px;font-weight:normal;"&gt;void&lt;/span&gt; main(String[] args) {&lt;br&gt;&amp;nbsp;&amp;nbsp;JMSSender msgSender &lt;span style="color:Red;background-color:transparent;font-family:Courier New;font-size:11px;font-weight:normal;"&gt;=&lt;/span&gt; &lt;span style="color:Blue;background-color:transparent;font-family:Courier New;font-size:11px;font-weight:normal;"&gt;new&lt;/span&gt; JMSSender();&lt;br&gt;&amp;nbsp;&amp;nbsp;msgSender.run();&lt;br&gt;}&lt;br&gt;&lt;br&gt;&lt;span style="color:Blue;background-color:transparent;font-family:Courier New;font-size:11px;font-weight:normal;"&gt;public&lt;/span&gt; &lt;span style="color:Blue;background-color:transparent;font-family:Courier New;font-size:11px;font-weight:normal;"&gt;void&lt;/span&gt; run() {&lt;br&gt;&amp;nbsp;&amp;nbsp;QueueConnection queueConn &lt;span style="color:Red;background-color:transparent;font-family:Courier New;font-size:11px;font-weight:normal;"&gt;=&lt;/span&gt; &lt;span style="color:Blue;background-color:transparent;font-family:Courier New;font-size:11px;font-weight:normal;"&gt;null&lt;/span&gt;;&lt;br&gt;&amp;nbsp;&amp;nbsp;QueueSession queueSess &lt;span style="color:Red;background-color:transparent;font-family:Courier New;font-size:11px;font-weight:normal;"&gt;=&lt;/span&gt; &lt;span style="color:Blue;background-color:transparent;font-family:Courier New;font-size:11px;font-weight:normal;"&gt;null&lt;/span&gt;;&lt;br&gt;&amp;nbsp;&amp;nbsp;TextMessage myMessage &lt;span style="color:Red;background-color:transparent;font-family:Courier New;font-size:11px;font-weight:normal;"&gt;=&lt;/span&gt; &lt;span style="color:Blue;background-color:transparent;font-family:Courier New;font-size:11px;font-weight:normal;"&gt;null&lt;/span&gt;;&lt;br&gt;&amp;nbsp;&amp;nbsp;QueueSender queueSender &lt;span style="color:Red;background-color:transparent;font-family:Courier New;font-size:11px;font-weight:normal;"&gt;=&lt;/span&gt; &lt;span style="color:Blue;background-color:transparent;font-family:Courier New;font-size:11px;font-weight:normal;"&gt;null&lt;/span&gt;;&lt;br&gt;&lt;br&gt;&lt;span style="color:Blue;background-color:transparent;font-family:Courier New;font-size:11px;font-weight:normal;"&gt;try&lt;/span&gt; {&lt;br&gt;&lt;br&gt;&amp;nbsp;&amp;nbsp;ActiveMQConnectionFactory factory &lt;span style="color:Red;background-color:transparent;font-family:Courier New;font-size:11px;font-weight:normal;"&gt;=&lt;/span&gt; &lt;span style="color:Blue;background-color:transparent;font-family:Courier New;font-size:11px;font-weight:normal;"&gt;new&lt;/span&gt; ActiveMQConnectionFactory(url);&lt;br&gt;&lt;br&gt;&amp;nbsp;&amp;nbsp;queueConn &lt;span style="color:Red;background-color:transparent;font-family:Courier New;font-size:11px;font-weight:normal;"&gt;=&lt;/span&gt; factory.createQueueConnection();&lt;br&gt;&amp;nbsp;&amp;nbsp;queueSess &lt;span style="color:Red;background-color:transparent;font-family:Courier New;font-size:11px;font-weight:normal;"&gt;=&lt;/span&gt; queueConn.createQueueSession(false,Session.AUTO_ACKNOWLEDGE);&lt;br&gt;&lt;br&gt;&amp;nbsp;&amp;nbsp;receiveQueue &lt;span style="color:Red;background-color:transparent;font-family:Courier New;font-size:11px;font-weight:normal;"&gt;=&lt;/span&gt; queueSess.createQueue(queueName);&lt;br&gt;&amp;nbsp;&amp;nbsp;queueSender &lt;span style="color:Red;background-color:transparent;font-family:Courier New;font-size:11px;font-weight:normal;"&gt;=&lt;/span&gt; queueSess.createSender(receiveQueue);&lt;br&gt;&lt;br&gt;&amp;nbsp;&amp;nbsp;myMessage &lt;span style="color:Red;background-color:transparent;font-family:Courier New;font-size:11px;font-weight:normal;"&gt;=&lt;/span&gt; queueSess.createTextMessage();&lt;br&gt;&lt;br&gt;&amp;nbsp;&amp;nbsp;myMessage.setText(”test from JMS client 2″);&lt;br&gt;&amp;nbsp;&amp;nbsp;queueSender.send(myMessage);&lt;br&gt;&lt;br&gt;&amp;nbsp;&amp;nbsp;queueSender.close();&lt;br&gt;&amp;nbsp;&amp;nbsp;queueSess.close();&lt;br&gt;&amp;nbsp;&amp;nbsp;queueConn.close();&lt;br&gt;&lt;br&gt;&amp;nbsp;&amp;nbsp;} &lt;span style="color:Blue;background-color:transparent;font-family:Courier New;font-size:11px;font-weight:normal;"&gt;catch&lt;/span&gt; (Exception e) {&lt;br&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;logger.info(”Caught: ” &lt;span style="color:Red;background-color:transparent;font-family:Courier New;font-size:11px;font-weight:normal;"&gt;+&lt;/span&gt; e);&lt;br&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;e.printStackTrace();&lt;br&gt;&amp;nbsp;&amp;nbsp;}&lt;br&gt;  }&lt;br&gt;}&lt;/span&gt;&lt;br&gt;&lt;span style="color:Black;background-color:transparent;font-family:Courier New;font-size:11px;font-weight:normal;"&gt;&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style="color:Black;background-color:transparent;font-family:Courier New;font-size:11px;font-weight:normal;"&gt;&lt;/span&gt;Anyway, I hope this code might be useful for those interested in
JMS. Enjoy and happy coding! If you have queries or if anything is not
working, just drop me a note.
&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://devpinoy.org/aggbug.aspx?PostID=5221" width="1" height="1"&gt;</description><category domain="http://devpinoy.org/blogs/javazealot/archive/tags/Geronimo/default.aspx">Geronimo</category><category domain="http://devpinoy.org/blogs/javazealot/archive/tags/Java/default.aspx">Java</category><category domain="http://devpinoy.org/blogs/javazealot/archive/tags/IBM+Websphere/default.aspx">IBM Websphere</category><category domain="http://devpinoy.org/blogs/javazealot/archive/tags/JMS/default.aspx">JMS</category><category domain="http://devpinoy.org/blogs/javazealot/archive/tags/ActiveMQ/default.aspx">ActiveMQ</category></item></channel></rss>