<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Fusioncube &#187; messaging</title>
	<atom:link href="http://www.fusioncube.net/index.php/category/development/techniques/messaging/feed" rel="self" type="application/rss+xml" />
	<link>http://www.fusioncube.net</link>
	<description>The online journey of a technophile, by Steve Brownlee</description>
	<lastBuildDate>Wed, 01 Feb 2012 04:17:42 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
		<item>
		<title>Application and Client Specific Messaging in Flex</title>
		<link>http://www.fusioncube.net/index.php/application-and-client-specific-messaging-in-flex</link>
		<comments>http://www.fusioncube.net/index.php/application-and-client-specific-messaging-in-flex#comments</comments>
		<pubDate>Mon, 01 Feb 2010 17:51:08 +0000</pubDate>
		<dc:creator>Steve Brownlee</dc:creator>
				<category><![CDATA[coldfusion]]></category>
		<category><![CDATA[event gateways]]></category>
		<category><![CDATA[flex]]></category>
		<category><![CDATA[messaging]]></category>
		<category><![CDATA[recommended]]></category>

		<guid isPermaLink="false">http://www.fusioncube.net/?p=706</guid>
		<description><![CDATA[I&#8217;ve had a task I assigned to myself open for some time now. I needed to figure out how to implement Flex/ColdFusion messaging for our clients. There were three (3) criteria for success: It needed to integrate seamlessly with our existing Cairngorm Extensions It needed to allow for application level messages It needed to allow [...]]]></description>
			<content:encoded><![CDATA[<p>I&#8217;ve had a task I assigned to myself open for some time now.  I needed to figure out how to implement Flex/ColdFusion messaging for our clients.  There were three (3) criteria for success:</p>
<ol>
<li>It needed to integrate seamlessly with our existing Cairngorm Extensions</li>
<li>It needed to allow for application level messages</li>
<li>It needed to allow for client specific messages</li>
</ol>
<p>The trick was to create an abstract class that multiple departments could use, because internally we use ColdFusion, Java and .NET to produce and consume messages.  In our department, we use ColdFusion, so I had to create a concrete implementation of the abstract class called ColdFusionMessagingDelegate which handles the construction and publication of an AsyncMessage to a ColdFusion Event Gateway.</p>
<p>Other departments&#8217; implementation of this process will be different, so I couldn&#8217;t force an implementation in the abstract class.</p>
<p>Additionally, in the application I was using for testing, I wanted to have two categories of messages:</p>
<ol>
<li>Messages intended to be produced and consumed by individual clients</li>
<li>Messages intended to be consumed by any client</li>
</ol>
<p>To that end, I created another abstract class at the application level that simply passed along specific a Flex Producer and Consumer for each category. I then created two concrete classes.  One specified the Producer and Consumer for the application, and the other specified the Producer and Consumer for that individual client.</p>
<p>Here&#8217;s a diagram showing the architecture.</p>
<div id="attachment_718" class="wp-caption alignnone" style="width: 762px"><a href="http://www.fusioncube.net/wp-content/uploads/2010/02/GenericMessagingArchitecture.png"><img src="http://www.fusioncube.net/wp-content/uploads/2010/02/GenericMessagingArchitecture.png" alt="Generic Messaging Architecture" title="Generic Messaging Architecture" width="564" height="457" class="size-full wp-image-718" /></a><p class="wp-caption-text">Generic Messaging Architecture</p></div>
<p>So far, it&#8217;s working great in the development test lab, but I still need to get with my colleagues for a group code review and hopefully fine tune the code and the architecture a bit more.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.fusioncube.net/index.php/application-and-client-specific-messaging-in-flex/feed</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
	</channel>
</rss>

