<?xml version="1.0" encoding="utf-8"?>
			
			<rss version="2.0">
			<channel>
			<title>newschuyl - Frameworks</title>
			<link>http://www.mischefamily.com/nathan/index.cfm</link>
			<description>a blog by nathan mische</description>
			<language>en-us</language>
			<pubDate>Mon, 06 Sep 2010 20:15:12-0400</pubDate>
			<lastBuildDate>Fri, 20 Nov 2009 08:45:00-0400</lastBuildDate>
			<generator>BlogCFC</generator>
			<docs>http://blogs.law.harvard.edu/tech/rss</docs>
			<managingEditor>nmische@gmail.com</managingEditor>
			<webMaster>nmische@gmail.com</webMaster>
			
			<item>
				<title>Swiz RPC Library on RIAForge</title>
				<link>http://www.mischefamily.com/nathan/index.cfm/2009/11/20/Swiz-RPC-Library-on-RIAForge</link>
				<description>
				
				Just a quick post to let folks know the source for the Swiz RPC Library, as well as the compiled SWC, are now available on RIAForge: &lt;a href=&quot;http://swizrpc.riaforge.org&quot; target=&quot;_blank&quot;&gt;http://swizrpc.riaforge.org&lt;/a&gt;. 
				</description>
				
				<category>SwizRPC</category>				
				
				<category>Swiz</category>				
				
				<category>Frameworks</category>				
				
				<category>Flex</category>				
				
				<pubDate>Fri, 20 Nov 2009 08:45:00-0400</pubDate>
				<guid>http://www.mischefamily.com/nathan/index.cfm/2009/11/20/Swiz-RPC-Library-on-RIAForge</guid>
				
			</item>
			
			<item>
				<title>Swiz RPC Library</title>
				<link>http://www.mischefamily.com/nathan/index.cfm/2009/11/19/Swiz-RPC-Library</link>
				<description>
				
				A couple of weeks ago &lt;a href=&quot;http://www.firemoss.com/index.cfm/2009/10/23/Swiz-tidbit--RemoteMethodMediator&quot;  target=&quot;_blank&quot;&gt;Joe Rinehart blogged about his RemoteMethodMediator&lt;/a&gt; for Swiz. Like Joe, I&apos;ve found that most of my executeSeviceCall callback methods were just dispatching events via Swiz, so I liked the idea of skipping callbacks completely. However, I didn&apos;t really like Joe&apos;s implementation, so I yesterday I did some playing around and came up with the a &lt;a href=&quot;http://swizrpc.riaforge.org&quot; target=&quot;_blank&quot;&gt;Swiz RPC library&lt;/a&gt;. The library has swiz specific implementations of mx.rpc.remoting.mxml.RemoteObject, mx.rpc.remoting.mxml.Operation, and mx.rpc.CallResponder. These classes can be used in your bean loader in place of the standard mx:RemoteObject, mx:method, and mx:CallResponder tags.  [More]
				</description>
				
				<category>SwizRPC</category>				
				
				<category>Swiz</category>				
				
				<category>Frameworks</category>				
				
				<category>Flex</category>				
				
				<pubDate>Thu, 19 Nov 2009 16:25:00-0400</pubDate>
				<guid>http://www.mischefamily.com/nathan/index.cfm/2009/11/19/Swiz-RPC-Library</guid>
				
			</item>
			
			<item>
				<title>Using Secure AMF Channels in Swiz</title>
				<link>http://www.mischefamily.com/nathan/index.cfm/2009/7/16/Using-Secure-AMF-Channels-in-Swiz</link>
				<description>
				
				This question comes up quite a bit on the Swiz mailing list so I thought I&apos;d write a blog post on how I handle this. For those new to Swiz, one very cool feature of the framework is the DynamicChannelSet wich allows you to remove the dependency on services-config.xml. Here is an example, from the Swiz docs, of how you would use DynamicChannelSet in your Bean Loader:  [More]
				</description>
				
				<category>Frameworks</category>				
				
				<category>Flex</category>				
				
				<pubDate>Thu, 16 Jul 2009 10:11:00-0400</pubDate>
				<guid>http://www.mischefamily.com/nathan/index.cfm/2009/7/16/Using-Secure-AMF-Channels-in-Swiz</guid>
				
			</item>
			
			<item>
				<title>Flex Remoting to CFCs under a Fusebox 5.5.1 Application.cfc</title>
				<link>http://www.mischefamily.com/nathan/index.cfm/2009/3/6/Flex-Remoting-to-CFCs-under-a-Fusebox-551-Applicationcfc</link>
				<description>
				
				I recently started using Fusebox again and one issue I ran into was that Flex Remoting calls to CFCs under my Fusebox application were not working. (The application in question used an extended version of Fusebox&apos;s Application.cfc.) To work around the issue I put the remote components under a different, minimal, Application.cfc which used the same name as my main applicaiton. Something like the following:

&lt;code&gt;
&lt;cfcomponent&gt;
    &lt;cfset this.name=&quot;myApp&quot; /&gt;
&lt;/cfcomponent&gt;
&lt;/code&gt;

This fixed the issue, but I was still a little puzzled. It is well know that the Application.cfc onRequest method &lt;a href=&quot;http://www.coldfusionjedi.com/index.cfm?mode=entry&amp;entry=ED9D4058-E661-02E9-E70A41706CD89724&quot;&gt;doesn&apos;t play well with Flex Remoting&lt;/a&gt;, but I looked at Fusebox&apos;s Application.cfc and thought it was handling the issue with the following code in onRequestStart:
&lt;code&gt;
&lt;!--- ensure CFC / Web Service / Flex Remoting calls are not intercepted ---&gt;
&lt;cfif right(arguments.targetPage,4) is &quot;.cfc&quot;&gt;
    &lt;cfset doCompile = false /&gt;
    &lt;cfset structDelete(variables,&quot;onRequest&quot;) /&gt;
    &lt;cfset structDelete(this,&quot;onRequest&quot;) /&gt;
    &lt;cfreturn/&gt;
&lt;/cfif&gt;
&lt;/code&gt;

Well, today I had a little bit of time to look into this and it turns out that for Flex Remoting requests the targetPage is &quot;/flex2gateway,&quot; not the name of the target CFC. It was a bit of a &quot;duh&quot; moment, because if you have ever looked at a services-config.xml file or watched Flex Remoting requests via a proxy like ServiceCapture then you know the URL used is something like http://localhost/flex2gateway. Anyway, to fix the issue I ended up modifing the Fusebox Application CFC code above to the following:

&lt;code&gt;
&lt;cfif right(arguments.targetPage,4) is &quot;.cfc&quot; or findNoCase(&quot;/flex2gateway&quot;,arguments.targetPage) gt 0&gt;
    &lt;cfset doCompile = false /&gt;
    &lt;cfset structDelete(variables,&quot;onRequest&quot;) /&gt;
    &lt;cfset structDelete(this,&quot;onRequest&quot;) /&gt;
    &lt;cfreturn/&gt;
&lt;/cfif&gt;
&lt;/code&gt;

Now I no longer need to remember to add a custom Application.cfc for remote CFCs.

It is important to note that Flash Remoting can be configured to use any URL, but this at least covers the default configuration for ColdFusion. 
				</description>
				
				<category>ColdFusion</category>				
				
				<category>Frameworks</category>				
				
				<category>Flex</category>				
				
				<pubDate>Fri, 06 Mar 2009 14:55:00-0400</pubDate>
				<guid>http://www.mischefamily.com/nathan/index.cfm/2009/3/6/Flex-Remoting-to-CFCs-under-a-Fusebox-551-Applicationcfc</guid>
				
			</item>
			</channel></rss>