Search Options
close
Search the following clips:
All Clips
Sign Up
Install
Learn More
Login
Spring Events example with Mule ESB
ccharlebois
follow
0
5-1-2007 6:57 PM
432 views
tags:
mule
,
spring
,
esb
,
art
Add a Comment
Login
to Comment. Not a member yet?
Sign up
Today's Top Clips
My response to McAfee about Clipmarks
Bang Mi? Top 10 Foodie Typos
What The Dead Leave Behind
Happy New Year
Are You Living In a Computer Simulation?
It's Not Socialism, It's Communism
Please help Clipmarks...
Medics say crotchbomber may lose the use of his privates
I FOUND THIS IN THE YARD. YOU WANT IT?
Pictures of the year 2009: crop circles, UFO sightings, ghosts and unexplained phenomena
visit the
Top Clips page
View the Top Clips from
May 1, 2007
Embed This Clip In Your Site...
<div style="margin: 12px 0px; font-family: arial; color: #333333; background: #ffffff; border: solid 4px #e5e5e5; width: 100%; clear: left;"><div class="CM_CTB_Content_Wrap" style="margin: 0px; padding: 0px;background-color: #ffffff;"><div style="border-bottom: solid 1px #dcdcdc; white-space: nowrap; margin-bottom: 8px; background-color: #eeeeee ;background-image: url(http://clipmarks.com/images/source-bg.gif); background-repeat: repeat-x; height: 24px; line-height: 24px; vertical-align: middle; padding-bottom: 4px; color: #666666; font-size: 10px;" ><a href="http://clipmarks.com/clip-to-blog/" title="see clips that are hot right now"><img src="http://content.clipmarks.com/blog_embed/b790e7cc-e664-4e02-aa93-2d900d164206/D779E191-C935-4EC8-97E5-CA6BDCBA3054/" alt="" width="19" height="19" border="0" style="vertical-align: middle; margin: 0px 4px; display: inline; border: none; float:none;" /></a>clipped from <a title="http://mule.codehaus.org/display/MULE/Spring+Events+Example" href="http://mule.codehaus.org/display/MULE/Spring+Events+Example" style="font-size: 11px;">mule.codehaus.org</a></div><blockquote style="text-align: left; padding: 0px 8px; margin: 4px 0px 8px 0px; background: transparent; border: none;" cite="http://mule.codehaus.org/display/MULE/Spring+Events+Example"><div align="center"><img src="http://content8.clipmarks.com/blog_cache/mule.codehaus.org/img/42BA4651-86FE-4508-AE02-430207C46CE9" alt="Click this logo to return to the home page" /></div></blockquote><div style="height: 2px; font-size: 2px; background: #dcdcdc; border-bottom: solid 1px #f5f5f5; margin: 2px 4px;"></div><blockquote style="text-align: left; padding: 0px 8px; margin: 4px 0px 8px 0px; background: transparent; border: none;" cite="http://mule.codehaus.org/display/MULE/Spring+Events+Example"><P>The folloing example configures a <EM>OrderManager</EM> bean that receives Orders via different endpoints, processes them, then sends the result to a <EM>processed.queue</EM>. The example assumes you have read the <A title="Sending and Receiving Mule Events From the Spring Context" href="http://mule.codehaus.org/display/MULE/Sending+and+Receiving+Mule+Events+From+the+Spring+Context">Mule Events in Spring</A> introduction.</P></blockquote><div style="height: 2px; font-size: 2px; background: #dcdcdc; border-bottom: solid 1px #f5f5f5; margin: 2px 4px;"></div><blockquote style="text-align: left; padding: 0px 8px; margin: 4px 0px 8px 0px; background: transparent; border: none;" cite="http://mule.codehaus.org/display/MULE/Spring+Events+Example"><P>We want our OrderManager to receive orders over -</P></blockquote><div style="height: 2px; font-size: 2px; background: #dcdcdc; border-bottom: solid 1px #f5f5f5; margin: 2px 4px;"></div><blockquote style="text-align: left; padding: 0px 8px; margin: 4px 0px 8px 0px; background: transparent; border: none;" cite="http://mule.codehaus.org/display/MULE/Spring+Events+Example"><li style="margin-left:16px;padding-left: 0px;">Jms on an <B>orders.queue</B></LI></blockquote><div style="height: 2px; font-size: 2px; background: #dcdcdc; border-bottom: solid 1px #f5f5f5; margin: 2px 4px;"></div><blockquote style="text-align: left; padding: 0px 8px; margin: 4px 0px 8px 0px; background: transparent; border: none;" cite="http://mule.codehaus.org/display/MULE/Spring+Events+Example"><li style="margin-left:16px;padding-left: 0px;">Email on <B>orders@myrestaurant.com</B></LI></blockquote><div style="height: 2px; font-size: 2px; background: #dcdcdc; border-bottom: solid 1px #f5f5f5; margin: 2px 4px;"></div><blockquote style="text-align: left; padding: 0px 8px; margin: 4px 0px 8px 0px; background: transparent; border: none;" cite="http://mule.codehaus.org/display/MULE/Spring+Events+Example"><li style="margin-left:16px;padding-left: 0px;">Soap, acting as a <B>web service</B></LI></blockquote><div style="height: 2px; font-size: 2px; background: #dcdcdc; border-bottom: solid 1px #f5f5f5; margin: 2px 4px;"></div><blockquote style="text-align: left; padding: 0px 8px; margin: 4px 0px 8px 0px; background: transparent; border: none;" cite="http://mule.codehaus.org/display/MULE/Spring+Events+Example"><P>To enable a spring bean to receive Mule Events it needs to implement a <SPAN class="nobr"><A rel="nofollow" href="http://www.muleumo.org/docs/apidocs/org/mule/extras/spring/events/MuleEventListener.html">MuleEventListener<SUP><IMG width="7" height="7" border="0" align="absmiddle" alt="" src="http://mule.codehaus.org/images/icons/linkext7.gif" class="rendericon" /></SUP></A></SPAN> or <SPAN class="nobr"><A rel="nofollow" href="http://www.muleumo.org/docs/apidocs/org/mule/extras/spring/events/MuleSubscriptionEventListener.html">MuleSubscriptionEventListener<SUP><IMG width="7" height="7" border="0" align="absmiddle" alt="" src="http://mule.codehaus.org/images/icons/linkext7.gif" class="rendericon" /></SUP></A></SPAN>. Lets start with the code for our <EM>OrderManager</EM> and then describe what its doing.</P></blockquote><div style="height: 2px; font-size: 2px; background: #dcdcdc; border-bottom: solid 1px #f5f5f5; margin: 2px 4px;"></div><blockquote style="text-align: left; padding: 0px 8px; margin: 4px 0px 8px 0px; background: transparent; border: none;" cite="http://mule.codehaus.org/display/MULE/Spring+Events+Example"><H1><A name="SpringEventsExample-ConfiguringMuleandSpring"></A>Configuring Mule and Spring</H1></blockquote><div style="height: 2px; font-size: 2px; background: #dcdcdc; border-bottom: solid 1px #f5f5f5; margin: 2px 4px;"></div><blockquote style="text-align: left; padding: 0px 8px; margin: 4px 0px 8px 0px; background: transparent; border: none;" cite="http://mule.codehaus.org/display/MULE/Spring+Events+Example"><P>To hook Mule into the Spring event mechanism you need to declare the <EM>MuleEventMulticaster</EM> bean in the application Context. This will now be used to send and receive events in Spring.</P></blockquote><div style="height: 2px; font-size: 2px; background: #dcdcdc; border-bottom: solid 1px #f5f5f5; margin: 2px 4px;"></div><blockquote style="text-align: left; padding: 0px 8px; margin: 4px 0px 8px 0px; background: transparent; border: none;" cite="http://mule.codehaus.org/display/MULE/Spring+Events+Example"><H2><A name="SpringEventsExample-HandlingTransformations"></A>Handling Transformations</H2></blockquote><div style="height: 2px; font-size: 2px; background: #dcdcdc; border-bottom: solid 1px #f5f5f5; margin: 2px 4px;"></div><blockquote style="text-align: left; padding: 0px 8px; margin: 4px 0px 8px 0px; background: transparent; border: none;" cite="http://mule.codehaus.org/display/MULE/Spring+Events+Example"><H3><A name="SpringEventsExample-Jms"></A>Jms</H3></blockquote><div style="height: 2px; font-size: 2px; background: #dcdcdc; border-bottom: solid 1px #f5f5f5; margin: 2px 4px;"></div><blockquote style="text-align: left; padding: 0px 8px; margin: 4px 0px 8px 0px; background: transparent; border: none;" cite="http://mule.codehaus.org/display/MULE/Spring+Events+Example"><H3><A name="SpringEventsExample-Pop3"></A>Pop3</H3></blockquote><div style="height: 2px; font-size: 2px; background: #dcdcdc; border-bottom: solid 1px #f5f5f5; margin: 2px 4px;"></div><blockquote style="text-align: left; padding: 0px 8px; margin: 4px 0px 8px 0px; background: transparent; border: none;" cite="http://mule.codehaus.org/display/MULE/Spring+Events+Example"><H3><A name="SpringEventsExample-Soap"></A>Soap</H3></blockquote><div style="height: 2px; font-size: 2px; background: #dcdcdc; border-bottom: solid 1px #f5f5f5; margin: 2px 4px;"></div><blockquote style="text-align: left; padding: 0px 8px; margin: 4px 0px 8px 0px; background: transparent; border: none;" cite="http://mule.codehaus.org/display/MULE/Spring+Events+Example"><H2><A name="SpringEventsExample-ReceivingEvents"></A>Receiving Events</H2></blockquote><div style="height: 2px; font-size: 2px; background: #dcdcdc; border-bottom: solid 1px #f5f5f5; margin: 2px 4px;"></div><blockquote style="text-align: left; padding: 0px 8px; margin: 4px 0px 8px 0px; background: transparent; border: none;" cite="http://mule.codehaus.org/display/MULE/Spring+Events+Example"><H2><A name="SpringEventsExample-PublishingEvents"></A>Publishing Events</H2></blockquote></div><div style="margin: 0px 6px 6px 4px;"><table style="font-size: 11px;border-spacing: 0px;padding: 0px;" cellpadding="0" cellspacing="0" width="100%"><tr><td style="background:transparent;border-width:0px;padding:0px;"> </td><td align="right" style="background:transparent;border-width:0px;padding:0px;width:107px" width="107"><a href="http://clipmarks.com/share/D779E191-C935-4EC8-97E5-CA6BDCBA3054/blog/" title="blog or email this clip"><img src="http://content7.clipmarks.com/images/c2b-foot.png" border="0" alt="blog it" width="107" height="17" style="border-width:0px;padding:0px;margin:0px;" /></a></td></tr></table></div></div>
New from the makers of Clipmarks:
Amplify.com - Don't just share the news...Amplify it!
Clipmarks
Home
New Clips
Top Clips
Dashboard
Popular Topics
News
Life
Science
Technology
Entertainment
Get Started
Sign Up
Install Clipping Tool
How Clipping Works
Clip-to-Blog™
ClipSearch
Tools and Resources
FAQ
ClipWeek
Top Clippers
Top Tags
Site Map
About Clipmarks
About Us
Contact
Copyright
Privacy
EULA
OK