<?xml version='1.0' encoding='UTF-8'?><?xml-stylesheet href="http://www.blogger.com/styles/atom.css" type="text/css"?><feed xmlns='http://www.w3.org/2005/Atom' xmlns:openSearch='http://a9.com/-/spec/opensearchrss/1.0/' xmlns:blogger='http://schemas.google.com/blogger/2008' xmlns:georss='http://www.georss.org/georss' xmlns:gd="http://schemas.google.com/g/2005" xmlns:thr='http://purl.org/syndication/thread/1.0'><id>tag:blogger.com,1999:blog-9018487665808992092</id><updated>2024-09-11T09:02:11.461-07:00</updated><title type='text'>Manuel&#39;s Blog</title><subtitle type='html'>Here you will find some of the code that I have been writing for some time now, as well as different projects I have worked on.</subtitle><link rel='http://schemas.google.com/g/2005#feed' type='application/atom+xml' href='http://mcorreacs.blogspot.com/feeds/posts/default'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/9018487665808992092/posts/default?redirect=false'/><link rel='alternate' type='text/html' href='http://mcorreacs.blogspot.com/'/><link rel='hub' href='http://pubsubhubbub.appspot.com/'/><author><name>Anonymous</name><uri>http://www.blogger.com/profile/14434628324101756684</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><generator version='7.00' uri='http://www.blogger.com'>Blogger</generator><openSearch:totalResults>12</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>25</openSearch:itemsPerPage><entry><id>tag:blogger.com,1999:blog-9018487665808992092.post-6058126605251044853</id><published>2014-05-28T10:06:00.001-07:00</published><updated>2014-05-28T10:06:43.961-07:00</updated><title type='text'>Protocol buffers</title><content type='html'>&lt;iframe src=&quot;http://www.slideshare.net/slideshow/embed_code/35224283&quot; width=&quot;476&quot; height=&quot;400&quot; frameborder=&quot;0&quot; marginwidth=&quot;0&quot; marginheight=&quot;0&quot; scrolling=&quot;no&quot;&gt;&lt;/iframe&gt;</content><link rel='replies' type='application/atom+xml' href='http://mcorreacs.blogspot.com/feeds/6058126605251044853/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/9018487665808992092/6058126605251044853' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/9018487665808992092/posts/default/6058126605251044853'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/9018487665808992092/posts/default/6058126605251044853'/><link rel='alternate' type='text/html' href='http://mcorreacs.blogspot.com/2014/05/protocol-buffers.html' title='Protocol buffers'/><author><name>Anonymous</name><uri>http://www.blogger.com/profile/14434628324101756684</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-9018487665808992092.post-8875910718713819520</id><published>2011-11-17T11:41:00.001-08:00</published><updated>2011-11-21T11:24:33.321-08:00</updated><title type='text'>Applying Complex Event Processing with Drools Fusion. A case study: Analyzing Tweets</title><content type='html'>&lt;iframe src=&quot;https://docs.google.com/present/embed?id=dc74xmd3_138hpvxrrhh&amp;size=m&quot; frameborder=&quot;0&quot; width=&quot;555&quot; height=&quot;451&quot;&gt;&lt;/iframe&gt;</content><link rel='replies' type='application/atom+xml' href='http://mcorreacs.blogspot.com/feeds/8875910718713819520/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/9018487665808992092/8875910718713819520' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/9018487665808992092/posts/default/8875910718713819520'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/9018487665808992092/posts/default/8875910718713819520'/><link rel='alternate' type='text/html' href='http://mcorreacs.blogspot.com/2011/11/applying-complex-event-processing-with.html' title='Applying Complex Event Processing with Drools Fusion. A case study: Analyzing Tweets'/><author><name>Anonymous</name><uri>http://www.blogger.com/profile/14434628324101756684</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-9018487665808992092.post-1653843531255593209</id><published>2011-11-17T11:39:00.001-08:00</published><updated>2011-11-21T11:25:13.011-08:00</updated><title type='text'>Big Table and HBASE</title><content type='html'>&lt;iframe src=&quot;https://docs.google.com/present/embed?id=dc74xmd3_97f69f5zhr&amp;size=m&quot; frameborder=&quot;0&quot; width=&quot;555&quot; height=&quot;451&quot;&gt;&lt;/iframe&gt;</content><link rel='replies' type='application/atom+xml' href='http://mcorreacs.blogspot.com/feeds/1653843531255593209/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/9018487665808992092/1653843531255593209' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/9018487665808992092/posts/default/1653843531255593209'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/9018487665808992092/posts/default/1653843531255593209'/><link rel='alternate' type='text/html' href='http://mcorreacs.blogspot.com/2011/11/big-table-and-hbase.html' title='Big Table and HBASE'/><author><name>Anonymous</name><uri>http://www.blogger.com/profile/14434628324101756684</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-9018487665808992092.post-7576545279577609591</id><published>2011-05-09T08:52:00.000-07:00</published><updated>2011-05-09T08:55:22.635-07:00</updated><title type='text'>Workflow and Web Services Composition II</title><content type='html'>&lt;iframe frameborder=&quot;0&quot; height=&quot;600&quot; width=&quot;100%&quot;  src=&quot;http://docs.google.com/gview?a=v&amp;amp;pid=explorer&amp;amp;chrome=false&amp;amp;api=true&amp;amp;embedded=true&amp;amp;srcid=0B8Y5qSKeLja9MDkwZTg3ZjAtZjRiMi00M2I0LTgzOTEtODg0NjRhOTI3NDE0&amp;hl=en&quot; width=&quot;100%&quot;&gt;&lt;/iframe&gt;</content><link rel='replies' type='application/atom+xml' href='http://mcorreacs.blogspot.com/feeds/7576545279577609591/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/9018487665808992092/7576545279577609591' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/9018487665808992092/posts/default/7576545279577609591'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/9018487665808992092/posts/default/7576545279577609591'/><link rel='alternate' type='text/html' href='http://mcorreacs.blogspot.com/2011/05/workflow-and-web-services-composition.html' title='Workflow and Web Services Composition II'/><author><name>Anonymous</name><uri>http://www.blogger.com/profile/14434628324101756684</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-9018487665808992092.post-853910790440877943</id><published>2011-05-09T08:50:00.000-07:00</published><updated>2011-05-09T08:55:14.973-07:00</updated><title type='text'>Workflow and Web Services Composition I</title><content type='html'>&lt;iframe frameborder=&quot;0&quot; height=&quot;600&quot; width=&quot;100%&quot;  src=&quot;http://docs.google.com/gview?a=v&amp;amp;pid=explorer&amp;amp;chrome=false&amp;amp;api=true&amp;amp;embedded=true&amp;amp;srcid=0B8Y5qSKeLja9NDEzM2ZmOTctMmRhMS00MzRjLWE3MGYtYTNhMDU0NWE0YmQ5&amp;hl=en&quot; width=&quot;100%&quot;&gt;&lt;/iframe&gt;</content><link rel='replies' type='application/atom+xml' href='http://mcorreacs.blogspot.com/feeds/853910790440877943/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/9018487665808992092/853910790440877943' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/9018487665808992092/posts/default/853910790440877943'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/9018487665808992092/posts/default/853910790440877943'/><link rel='alternate' type='text/html' href='http://mcorreacs.blogspot.com/2011/05/blog-post.html' title='Workflow and Web Services Composition I'/><author><name>Anonymous</name><uri>http://www.blogger.com/profile/14434628324101756684</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-9018487665808992092.post-812079826963002106</id><published>2010-11-19T08:12:00.001-08:00</published><updated>2010-11-19T10:09:04.737-08:00</updated><title type='text'>Big Table</title><content type='html'>&lt;center&gt;&lt;br /&gt;
&lt;iframe src=&quot;https://docs.google.com/present/embed?id=dc74xmd3_60c5zhtbdx&amp;size=m&quot; frameborder=&quot;0&quot; width=&quot;555&quot; height=&quot;451&quot;&gt;&lt;/iframe&gt;&lt;br /&gt;
&lt;/center&gt;</content><link rel='replies' type='application/atom+xml' href='http://mcorreacs.blogspot.com/feeds/812079826963002106/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/9018487665808992092/812079826963002106' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/9018487665808992092/posts/default/812079826963002106'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/9018487665808992092/posts/default/812079826963002106'/><link rel='alternate' type='text/html' href='http://mcorreacs.blogspot.com/2010/11/big-table.html' title='Big Table'/><author><name>Anonymous</name><uri>http://www.blogger.com/profile/14434628324101756684</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-9018487665808992092.post-1784924892512077638</id><published>2010-10-27T10:04:00.001-07:00</published><updated>2010-11-19T08:27:49.834-08:00</updated><title type='text'>Optimal Adaptation in Autonomic Web Processes with Inter-Service Dependencies</title><content type='html'>&lt;center&gt;&lt;br /&gt;
&lt;div style=&quot;width:425px&quot; id=&quot;__ss_5584404&quot;&gt;&lt;strong style=&quot;display:block;margin:12px 0 4px&quot;&gt;&lt;a href=&quot;http://www.slideshare.net/mcorrea11/optimal-adaptation&quot; title=&quot;Optimal Adaptation &quot;&gt;Optimal Adaptation &lt;/a&gt;&lt;/strong&gt;&lt;object id=&quot;__sse5584404&quot; width=&quot;425&quot; height=&quot;355&quot;&gt;&lt;param name=&quot;movie&quot; value=&quot;http://static.slidesharecdn.com/swf/ssplayer2.swf?doc=optimaladaptationautonomicwsinterservicesdepenecies-101027120242-phpapp02&amp;stripped_title=optimal-adaptation&amp;userName=mcorrea11&quot; /&gt;&lt;param name=&quot;allowFullScreen&quot; value=&quot;true&quot;/&gt;&lt;param name=&quot;allowScriptAccess&quot; value=&quot;always&quot;/&gt;&lt;embed name=&quot;__sse5584404&quot; src=&quot;http://static.slidesharecdn.com/swf/ssplayer2.swf?doc=optimaladaptationautonomicwsinterservicesdepenecies-101027120242-phpapp02&amp;stripped_title=optimal-adaptation&amp;userName=mcorrea11&quot; type=&quot;application/x-shockwave-flash&quot; allowscriptaccess=&quot;always&quot; allowfullscreen=&quot;true&quot; width=&quot;425&quot; height=&quot;355&quot;&gt;&lt;/embed&gt;&lt;/object&gt;&lt;div style=&quot;padding:5px 0 12px&quot;&gt;View more &lt;a href=&quot;http://www.slideshare.net/&quot;&gt;presentations&lt;/a&gt; from &lt;a href=&quot;http://www.slideshare.net/mcorrea11&quot;&gt;mcorrea11&lt;/a&gt;.&lt;/div&gt;&lt;/div&gt;&lt;/center&gt;</content><link rel='replies' type='application/atom+xml' href='http://mcorreacs.blogspot.com/feeds/1784924892512077638/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/9018487665808992092/1784924892512077638' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/9018487665808992092/posts/default/1784924892512077638'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/9018487665808992092/posts/default/1784924892512077638'/><link rel='alternate' type='text/html' href='http://mcorreacs.blogspot.com/2010/10/optimal-adaptation-in-autonomic-web.html' title='Optimal Adaptation in Autonomic Web Processes with Inter-Service Dependencies'/><author><name>Anonymous</name><uri>http://www.blogger.com/profile/14434628324101756684</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-9018487665808992092.post-5029138191315642296</id><published>2010-10-27T10:03:00.001-07:00</published><updated>2010-11-19T08:42:38.850-08:00</updated><title type='text'>RESTFul Introduction Presentation</title><content type='html'>&lt;center&gt;&lt;br /&gt;
&lt;div style=&quot;width:425px&quot; id=&quot;__ss_5584362&quot;&gt;&lt;strong style=&quot;display:block;margin:12px 0 4px&quot;&gt;&lt;a href=&quot;http://www.slideshare.net/mcorrea11/restful-web-services-intro&quot; title=&quot;RESTFul Web Services - Intro&quot;&gt;RESTFul Web Services - Intro&lt;/a&gt;&lt;/strong&gt;&lt;object id=&quot;__sse5584362&quot; width=&quot;425&quot; height=&quot;355&quot;&gt;&lt;param name=&quot;movie&quot; value=&quot;http://static.slidesharecdn.com/swf/ssplayer2.swf?doc=restfull-101027120026-phpapp02&amp;stripped_title=restful-web-services-intro&amp;userName=mcorrea11&quot; /&gt;&lt;param name=&quot;allowFullScreen&quot; value=&quot;true&quot;/&gt;&lt;param name=&quot;allowScriptAccess&quot; value=&quot;always&quot;/&gt;&lt;embed name=&quot;__sse5584362&quot; src=&quot;http://static.slidesharecdn.com/swf/ssplayer2.swf?doc=restfull-101027120026-phpapp02&amp;stripped_title=restful-web-services-intro&amp;userName=mcorrea11&quot; type=&quot;application/x-shockwave-flash&quot; allowscriptaccess=&quot;always&quot; allowfullscreen=&quot;true&quot; width=&quot;425&quot; height=&quot;355&quot;&gt;&lt;/embed&gt;&lt;/object&gt;&lt;div style=&quot;padding:5px 0 12px&quot;&gt;View more &lt;a href=&quot;http://www.slideshare.net/&quot;&gt;presentations&lt;/a&gt; from &lt;a href=&quot;http://www.slideshare.net/mcorrea11&quot;&gt;mcorrea11&lt;/a&gt;.&lt;/div&gt;&lt;/div&gt;&lt;/center&gt;</content><link rel='replies' type='application/atom+xml' href='http://mcorreacs.blogspot.com/feeds/5029138191315642296/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/9018487665808992092/5029138191315642296' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/9018487665808992092/posts/default/5029138191315642296'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/9018487665808992092/posts/default/5029138191315642296'/><link rel='alternate' type='text/html' href='http://mcorreacs.blogspot.com/2010/10/restful-introduction-presentation.html' title='RESTFul Introduction Presentation'/><author><name>Anonymous</name><uri>http://www.blogger.com/profile/14434628324101756684</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-9018487665808992092.post-9043678340563398794</id><published>2010-10-27T09:49:00.001-07:00</published><updated>2010-11-19T08:43:00.380-08:00</updated><title type='text'>Map Reduce Presentation</title><content type='html'>&lt;center&gt;&lt;br /&gt;
&lt;div style=&quot;width:425px&quot; id=&quot;__ss_5584234&quot;&gt;&lt;strong style=&quot;display:block;margin:12px 0 4px&quot;&gt;&lt;a href=&quot;http://www.slideshare.net/mcorrea11/map-reduce-5584234&quot; title=&quot;Map Reduce&quot;&gt;Map Reduce&lt;/a&gt;&lt;/strong&gt;&lt;object id=&quot;__sse5584234&quot; width=&quot;425&quot; height=&quot;355&quot;&gt;&lt;param name=&quot;movie&quot; value=&quot;http://static.slidesharecdn.com/swf/ssplayer2.swf?doc=mapreduce-101027114634-phpapp02&amp;stripped_title=map-reduce-5584234&amp;userName=mcorrea11&quot; /&gt;&lt;param name=&quot;allowFullScreen&quot; value=&quot;true&quot;/&gt;&lt;param name=&quot;allowScriptAccess&quot; value=&quot;always&quot;/&gt;&lt;embed name=&quot;__sse5584234&quot; src=&quot;http://static.slidesharecdn.com/swf/ssplayer2.swf?doc=mapreduce-101027114634-phpapp02&amp;stripped_title=map-reduce-5584234&amp;userName=mcorrea11&quot; type=&quot;application/x-shockwave-flash&quot; allowscriptaccess=&quot;always&quot; allowfullscreen=&quot;true&quot; width=&quot;425&quot; height=&quot;355&quot;&gt;&lt;/embed&gt;&lt;/object&gt;&lt;div style=&quot;padding:5px 0 12px&quot;&gt;View more &lt;a href=&quot;http://www.slideshare.net/&quot;&gt;presentations&lt;/a&gt; from &lt;a href=&quot;http://www.slideshare.net/mcorrea11&quot;&gt;mcorrea11&lt;/a&gt;.&lt;/div&gt;&lt;/div&gt;&lt;/center&gt;</content><link rel='replies' type='application/atom+xml' href='http://mcorreacs.blogspot.com/feeds/9043678340563398794/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/9018487665808992092/9043678340563398794' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/9018487665808992092/posts/default/9043678340563398794'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/9018487665808992092/posts/default/9043678340563398794'/><link rel='alternate' type='text/html' href='http://mcorreacs.blogspot.com/2010/10/map-reduce-presentation.html' title='Map Reduce Presentation'/><author><name>Anonymous</name><uri>http://www.blogger.com/profile/14434628324101756684</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-9018487665808992092.post-8777460218066400948</id><published>2010-07-22T07:11:00.000-07:00</published><updated>2010-07-22T07:32:13.977-07:00</updated><title type='text'>Spring, ActiveMQ and JMS implementation</title><content type='html'>Here is a quick implementation for JMS using Spring and ActiveMQ in Tomcat 6.&lt;br /&gt;
&lt;br /&gt;
First, libraries and frameworks:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;ul&gt;&lt;li&gt;ActiveMQ 5.1&lt;/li&gt;
&lt;li&gt;Spring 2.5&lt;/li&gt;
&lt;li&gt;Tomcat 6&lt;/li&gt;
&lt;li&gt;Be sure to add:&amp;nbsp;org.osgi.core-4.1.0.jar,&amp;nbsp;spring-jms.jar,&amp;nbsp;xbean-spring-3.6.jar&lt;/li&gt;
&lt;/ul&gt;&lt;div&gt;&lt;br /&gt;
For my testing I created two applications: Consumer and Producer. The producer sends a &quot;Hello World: message and the consumer &quot;processes&quot; the message.&lt;/div&gt;&lt;div&gt;&lt;b&gt;&lt;br /&gt;
&lt;/b&gt;&lt;/div&gt;&lt;div&gt;&lt;b&gt;Consumer configuration&lt;/b&gt;&lt;/div&gt;&lt;br /&gt;
&lt;br /&gt;
applicationContext.xml&lt;br /&gt;
&lt;pre style=&quot;background-color: #eeeeee; border: 1px dashed #999999; color: black; font-family: Andale Mono, Lucida Console, Monaco, fixed, monospace; font-size: 12px; line-height: 14px; overflow: auto; padding: 5px; width: 100%;&quot;&gt;&lt;code&gt;&amp;lt;?xml version=&quot;1.0&quot; encoding=&quot;UTF-8&quot;?&amp;gt;
&amp;lt;beans xmlns=&quot;http://www.springframework.org/schema/beans&quot;
       xmlns:xsi=&quot;http://www.w3.org/2001/XMLSchema-instance&quot;
       xmlns:p=&quot;http://www.springframework.org/schema/p&quot;
       xmlns:context=&quot;http://www.springframework.org/schema/context&quot;
       xmlns:jms=&quot;http://www.springframework.org/schema/jms&quot;
       xmlns:amq=&quot;http://activemq.apache.org/schema/core&quot;
       xsi:schemaLocation=&quot;http://www.springframework.org/schema/beans
                           http://www.springframework.org/schema/beans/spring-beans.xsd
                           http://www.springframework.org/schema/context
                           http://www.springframework.org/schema/context/spring-context.xsd
                           http://www.springframework.org/schema/jms
                           http://www.springframework.org/schema/jms/spring-jms.xsd
                           http://activemq.apache.org/schema/core
                           http://activemq.apache.org/schema/core/activemq-core.xsd&quot;&amp;gt;

    &amp;lt;context:component-scan base-package=&quot;sample&quot; /&amp;gt;

    &amp;lt;!--  Embedded ActiveMQ Broker --&amp;gt;
    &amp;lt;amq:broker id=&quot;broker&quot; useJmx=&quot;false&quot; persistent=&quot;false&quot;&amp;gt;
        &amp;lt;amq:transportConnectors&amp;gt;
            &amp;lt;amq:transportConnector uri=&quot;tcp://localhost:61616&quot; /&amp;gt;
        &amp;lt;/amq:transportConnectors&amp;gt;
    &amp;lt;/amq:broker&amp;gt;

    &amp;lt;amq:connectionFactory id=&quot;jmsFactory&quot; brokerURL=&quot;tcp://localhost:61616&quot; /&amp;gt;

     &amp;lt;!-- JMS Consumer Configuration --&amp;gt;
    &amp;lt;bean id=&quot;jmsConsumerConnectionFactory&quot;
          class=&quot;org.springframework.jms.connection.SingleConnectionFactory&quot;
          depends-on=&quot;broker&quot;
          p:targetConnectionFactory-ref=&quot;jmsFactory&quot; /&amp;gt;

    &amp;lt;jms:listener-container container-type=&quot;default&quot;
                            connection-factory=&quot;jmsConsumerConnectionFactory&quot;
                            acknowledge=&quot;auto&quot;&amp;gt;
        &amp;lt;jms:listener destination=&quot;queue.data&quot; ref=&quot;jmsMessageListener&quot; /&amp;gt;
    &amp;lt;/jms:listener-container&amp;gt;


&amp;lt;/beans&amp;gt;
&lt;/code&gt;&lt;/pre&gt;&lt;br /&gt;
One can see, the broker is&amp;nbsp;embedded within Spring. The destination is queue.data.&lt;br /&gt;
&lt;br /&gt;
&amp;nbsp;JmsMessageListener.java&lt;br /&gt;
&lt;br /&gt;
&lt;pre style=&quot;background-color: #eeeeee; border: 1px dashed #999999; color: black; font-family: Andale Mono, Lucida Console, Monaco, fixed, monospace; font-size: 12px; line-height: 14px; overflow: auto; padding: 5px; width: 100%;&quot;&gt;&lt;code&gt;package sample;

import javax.jms.JMSException;
import javax.jms.Message;
import javax.jms.MessageListener;
import javax.jms.TextMessage;
import org.springframework.stereotype.Component;

/**
 *
 * @author mcorrea
 */

@Component
public class JmsMessageListener implements MessageListener {

    public void onMessage(Message message) { 
        try {
            if (message instanceof TextMessage) {
                TextMessage tm = (TextMessage)message;
                String msg = tm.getText();
                System.out.println(&quot;Message receive &quot;+msg);
            }
        } catch (JMSException e) {
            e.printStackTrace();
        }
    }

}

&lt;/code&gt;&lt;/pre&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;Producer&lt;/b&gt;&lt;br /&gt;
&lt;b&gt;&lt;br /&gt;
&lt;/b&gt;&lt;br /&gt;
applicationContext.xml&lt;br /&gt;
&lt;br /&gt;
&lt;pre style=&quot;background-color: #eeeeee; border: 1px dashed #999999; color: black; font-family: Andale Mono, Lucida Console, Monaco, fixed, monospace; font-size: 12px; line-height: 14px; overflow: auto; padding: 5px; width: 100%;&quot;&gt;&lt;code&gt;&amp;lt;?xml version=&quot;1.0&quot; encoding=&quot;UTF-8&quot;?&amp;gt;
&amp;lt;beans xmlns=&quot;http://www.springframework.org/schema/beans&quot;
       xmlns:xsi=&quot;http://www.w3.org/2001/XMLSchema-instance&quot;
       xmlns:p=&quot;http://www.springframework.org/schema/p&quot;
       xmlns:context=&quot;http://www.springframework.org/schema/context&quot;
       xmlns:jms=&quot;http://www.springframework.org/schema/jms&quot;
       xmlns:amq=&quot;http://activemq.apache.org/schema/core&quot;
       xsi:schemaLocation=&quot;http://www.springframework.org/schema/beans
                           http://www.springframework.org/schema/beans/spring-beans.xsd
                           http://www.springframework.org/schema/context
                           http://www.springframework.org/schema/context/spring-context.xsd
                           http://www.springframework.org/schema/jms
                           http://www.springframework.org/schema/jms/spring-jms.xsd
                           http://activemq.apache.org/schema/core
                           http://activemq.apache.org/schema/core/activemq-core.xsd&quot;&amp;gt;

    &amp;lt;context:component-scan base-package=&quot;sample&quot; /&amp;gt;
    &amp;lt;!-- JMS ConnectionFactory to use, configuring the embedded broker using XML --&amp;gt;
    &amp;lt;amq:connectionFactory id=&quot;jmsFactory&quot; brokerURL=&quot;tcp://localhost:61616&quot; /&amp;gt;

      &amp;lt;!--  ActiveMQ Destination  --&amp;gt;
    &amp;lt;amq:queue id=&quot;destination&quot; physicalName=&quot;queue.data&quot; /&amp;gt;

    &amp;lt;!-- JMS Producer Configuration --&amp;gt;
    &amp;lt;bean id=&quot;jmsProducerConnectionFactory&quot;
          class=&quot;org.springframework.jms.connection.SingleConnectionFactory&quot;
           p:targetConnectionFactory-ref=&quot;jmsFactory&quot; /&amp;gt;

    &amp;lt;bean id=&quot;jmsProducerTemplate&quot; class=&quot;org.springframework.jms.core.JmsTemplate&quot;
          p:connectionFactory-ref=&quot;jmsProducerConnectionFactory&quot;
          p:defaultDestination-ref=&quot;destination&quot; /&amp;gt;


&amp;lt;/beans&amp;gt;
&lt;/code&gt;&lt;/pre&gt;&lt;br /&gt;
One can see the jmsFactory and the destination of the broker ( consumer )&lt;br /&gt;
&lt;br /&gt;
JmsMessageProducer.java&lt;br /&gt;
&lt;br /&gt;
&lt;pre style=&quot;background-color: #eeeeee; border: 1px dashed #999999; color: black; font-family: Andale Mono, Lucida Console, Monaco, fixed, monospace; font-size: 12px; line-height: 14px; overflow: auto; padding: 5px; width: 100%;&quot;&gt;&lt;code&gt;package sample;



import javax.annotation.PostConstruct;
import javax.jms.JMSException;
import javax.jms.Message;
import javax.jms.Session;
import javax.jms.TextMessage;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.jms.core.JmsTemplate;
import org.springframework.jms.core.MessageCreator;
import org.springframework.stereotype.Component;

 
@Component
public class JmsMessageProducer {
  

    @Autowired
    private JmsTemplate template = null;

    /** 
     * Generates JMS messages
     */
    @PostConstruct
    public void generateMessages() throws JMSException {
       
            template.send(new MessageCreator() {
                public Message createMessage(Session session) throws JMSException {
                    TextMessage message = session.createTextMessage(&quot;Hello World!!! &quot;);
                    System.out.println(&quot;Sending message... &quot; );
                    return message;
                }
            });
       
    }

}
&lt;/code&gt;&lt;/pre&gt;&lt;br /&gt;
That should do it!! Enjoy.</content><link rel='replies' type='application/atom+xml' href='http://mcorreacs.blogspot.com/feeds/8777460218066400948/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/9018487665808992092/8777460218066400948' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/9018487665808992092/posts/default/8777460218066400948'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/9018487665808992092/posts/default/8777460218066400948'/><link rel='alternate' type='text/html' href='http://mcorreacs.blogspot.com/2010/07/spring-activemq-and-jms-implementation.html' title='Spring, ActiveMQ and JMS implementation'/><author><name>Anonymous</name><uri>http://www.blogger.com/profile/14434628324101756684</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-9018487665808992092.post-8019511344428697575</id><published>2010-02-04T08:55:00.001-08:00</published><updated>2010-07-22T07:27:20.432-07:00</updated><title type='text'>JSON RFC</title><content type='html'>&lt;a href=&quot;http://www.ietf.org/rfc/rfc4627.txt&quot;&gt;json rfc&lt;/a&gt;</content><link rel='replies' type='application/atom+xml' href='http://mcorreacs.blogspot.com/feeds/8019511344428697575/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/9018487665808992092/8019511344428697575' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/9018487665808992092/posts/default/8019511344428697575'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/9018487665808992092/posts/default/8019511344428697575'/><link rel='alternate' type='text/html' href='http://mcorreacs.blogspot.com/2010/02/json-rfc.html' title='JSON RFC'/><author><name>Anonymous</name><uri>http://www.blogger.com/profile/14434628324101756684</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-9018487665808992092.post-6431171737667614709</id><published>2010-02-04T08:43:00.001-08:00</published><updated>2010-02-04T08:44:37.157-08:00</updated><title type='text'>EMACS 3.1 Spec</title><content type='html'>&lt;a href=&quot;http://jaoo.dk/file?path=/jaoo-aarhus-2008/slides//PratapLakshman_ECMAScript31.pdf&quot;&gt;http://jaoo.dk/file?path=/jaoo-aarhus-2008/slides//PratapLakshman_ECMAScript31.pdf&lt;/a&gt;</content><link rel='replies' type='application/atom+xml' href='http://mcorreacs.blogspot.com/feeds/6431171737667614709/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/9018487665808992092/6431171737667614709' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/9018487665808992092/posts/default/6431171737667614709'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/9018487665808992092/posts/default/6431171737667614709'/><link rel='alternate' type='text/html' href='http://mcorreacs.blogspot.com/2010/02/emacs-31-spec.html' title='EMACS 3.1 Spec'/><author><name>Anonymous</name><uri>http://www.blogger.com/profile/14434628324101756684</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry></feed>