<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	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/"
		>
<channel>
	<title>Comments for Anuj Gakhar</title>
	<atom:link href="http://www.anujgakhar.com/comments/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.anujgakhar.com</link>
	<description>My thoughts on ColdFusion, Flex and other RIA stuff....</description>
	<lastBuildDate>Wed, 22 Feb 2012 09:47:41 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3</generator>
	<item>
		<title>Comment on Flex: Casting with AS vs Casting with Braces by Elan</title>
		<link>http://www.anujgakhar.com/2009/08/26/flex-casting-with-as-vs-casting-with-braces/comment-page-1/#comment-23969</link>
		<dc:creator>Elan</dc:creator>
		<pubDate>Wed, 22 Feb 2012 09:47:41 +0000</pubDate>
		<guid isPermaLink="false">http://www.anujgakhar.com/?p=545#comment-23969</guid>
		<description>Yes, that sounds like an interview question! But I like the way you explained it. Just using the errors to determine which is which.</description>
		<content:encoded><![CDATA[<p>Yes, that sounds like an interview question! But I like the way you explained it. Just using the errors to determine which is which.</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Using REST Services in ColdFusion 10 by Anuj Gakhar</title>
		<link>http://www.anujgakhar.com/2012/02/20/using-rest-services-in-coldfusion-10/comment-page-1/#comment-23891</link>
		<dc:creator>Anuj Gakhar</dc:creator>
		<pubDate>Tue, 21 Feb 2012 13:46:40 +0000</pubDate>
		<guid isPermaLink="false">http://www.anujgakhar.com/?p=1750#comment-23891</guid>
		<description>Yeah, it is indeed frustrating having to refresh at all. I assume CF keeps a cached copy of the service to be able to serve all the GET,POST,PUT,DELETE methods. But as you said, I&#039;d love to find out too about what&#039;s going on behind the scenes here.</description>
		<content:encoded><![CDATA[<p>Yeah, it is indeed frustrating having to refresh at all. I assume CF keeps a cached copy of the service to be able to serve all the GET,POST,PUT,DELETE methods. But as you said, I&#8217;d love to find out too about what&#8217;s going on behind the scenes here.</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Using REST Services in ColdFusion 10 by Adam Tuttle</title>
		<link>http://www.anujgakhar.com/2012/02/20/using-rest-services-in-coldfusion-10/comment-page-1/#comment-23890</link>
		<dc:creator>Adam Tuttle</dc:creator>
		<pubDate>Tue, 21 Feb 2012 13:43:21 +0000</pubDate>
		<guid isPermaLink="false">http://www.anujgakhar.com/?p=1750#comment-23890</guid>
		<description>I was expecting to be able to use this from a REST call to refresh the service, much in the same way that we currently use URL parameters to reset an application&#039;s variables if the config has changed.

I find it frustrating that we can&#039;t do that, and honestly, I&#039;m frustrated that we have to refresh at all. I&#039;d love to find out the technical limitations that require it.</description>
		<content:encoded><![CDATA[<p>I was expecting to be able to use this from a REST call to refresh the service, much in the same way that we currently use URL parameters to reset an application&#8217;s variables if the config has changed.</p>
<p>I find it frustrating that we can&#8217;t do that, and honestly, I&#8217;m frustrated that we have to refresh at all. I&#8217;d love to find out the technical limitations that require it.</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Using REST Services in ColdFusion 10 by Anuj Gakhar</title>
		<link>http://www.anujgakhar.com/2012/02/20/using-rest-services-in-coldfusion-10/comment-page-1/#comment-23889</link>
		<dc:creator>Anuj Gakhar</dc:creator>
		<pubDate>Tue, 21 Feb 2012 13:38:58 +0000</pubDate>
		<guid isPermaLink="false">http://www.anujgakhar.com/?p=1750#comment-23889</guid>
		<description>Ah, I see what you mean. Without an index.cfm, the Application.cfc code may never run. That makes sense.</description>
		<content:encoded><![CDATA[<p>Ah, I see what you mean. Without an index.cfm, the Application.cfc code may never run. That makes sense.</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Using REST Services in ColdFusion 10 by Anuj Gakhar</title>
		<link>http://www.anujgakhar.com/2012/02/20/using-rest-services-in-coldfusion-10/comment-page-1/#comment-23888</link>
		<dc:creator>Anuj Gakhar</dc:creator>
		<pubDate>Tue, 21 Feb 2012 13:37:27 +0000</pubDate>
		<guid isPermaLink="false">http://www.anujgakhar.com/?p=1750#comment-23888</guid>
		<description>Hi Adam,

A .cfm does not to be called because the restInitApplication() code sits in the Application.cfc&#039;s onRequestStart() method. And even if you app is api-only , it still would have a Application.cfc in any case. So, if your app sits in a folder called &quot;myapp&quot;, you would then call http://localhost/myapp?refreshRESTServices=true to refresh your services and once that&#039;s done, you can then call the actual service via http://localhost/rest/{MyMappingName}/{MyServiceRestpath}

That&#039;s what I did and it worked for me. But yes, doing it from the administrator works too. I didn&#039;t want to switch to and fro between browser windows to keep refreshing my services. But both ways it works.</description>
		<content:encoded><![CDATA[<p>Hi Adam,</p>
<p>A .cfm does not to be called because the restInitApplication() code sits in the Application.cfc&#8217;s onRequestStart() method. And even if you app is api-only , it still would have a Application.cfc in any case. So, if your app sits in a folder called &#8220;myapp&#8221;, you would then call <a href="http://localhost/myapp?refreshRESTServices=true" rel="nofollow">http://localhost/myapp?refreshRESTServices=true</a> to refresh your services and once that&#8217;s done, you can then call the actual service via <a href="http://localhost/rest/" rel="nofollow">http://localhost/rest/</a>{MyMappingName}/{MyServiceRestpath}</p>
<p>That&#8217;s what I did and it worked for me. But yes, doing it from the administrator works too. I didn&#8217;t want to switch to and fro between browser windows to keep refreshing my services. But both ways it works.</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Using REST Services in ColdFusion 10 by Adam Tuttle</title>
		<link>http://www.anujgakhar.com/2012/02/20/using-rest-services-in-coldfusion-10/comment-page-1/#comment-23885</link>
		<dc:creator>Adam Tuttle</dc:creator>
		<pubDate>Tue, 21 Feb 2012 13:07:49 +0000</pubDate>
		<guid isPermaLink="false">http://www.anujgakhar.com/?p=1750#comment-23885</guid>
		<description>Since a CFM is not being called directly, and the path does not match the file system, ColdFusion can&#039;t route the request (because it&#039;s not defined in the administrator).

The ONLY way that I see this as possible is if you have non-REST code, eg an index.cfm somewhere, and you call THAT and reinitialize the rest application. That does not suit my purposes, my application is api-only.

It would seem, then, that I have no choice but to use the refreshing tool within the CF Administrator. I could create an index.cfm that does the refresh and use that instead, but they are functionally equivalent so why waste my time?</description>
		<content:encoded><![CDATA[<p>Since a CFM is not being called directly, and the path does not match the file system, ColdFusion can&#8217;t route the request (because it&#8217;s not defined in the administrator).</p>
<p>The ONLY way that I see this as possible is if you have non-REST code, eg an index.cfm somewhere, and you call THAT and reinitialize the rest application. That does not suit my purposes, my application is api-only.</p>
<p>It would seem, then, that I have no choice but to use the refreshing tool within the CF Administrator. I could create an index.cfm that does the refresh and use that instead, but they are functionally equivalent so why waste my time?</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Book Give-away : PhoneGap Beginner&#8217;s Guide by Anuj Gakhar</title>
		<link>http://www.anujgakhar.com/2011/11/23/book-give-away-phonegap-beginners-guide/comment-page-1/#comment-23869</link>
		<dc:creator>Anuj Gakhar</dc:creator>
		<pubDate>Tue, 21 Feb 2012 08:14:46 +0000</pubDate>
		<guid isPermaLink="false">http://www.anujgakhar.com/?p=1423#comment-23869</guid>
		<description>Simith, the contest closed on 10th December, 2011 as specified in the post.</description>
		<content:encoded><![CDATA[<p>Simith, the contest closed on 10th December, 2011 as specified in the post.</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Book Give-away : PhoneGap Beginner&#8217;s Guide by Simith</title>
		<link>http://www.anujgakhar.com/2011/11/23/book-give-away-phonegap-beginners-guide/comment-page-1/#comment-23845</link>
		<dc:creator>Simith</dc:creator>
		<pubDate>Tue, 21 Feb 2012 00:11:36 +0000</pubDate>
		<guid isPermaLink="false">http://www.anujgakhar.com/?p=1423#comment-23845</guid>
		<description>PhoneGap solves a really big problem, for developing cross platform applications, already built my first app, looks nice,please send me the book i will write more :-)</description>
		<content:encoded><![CDATA[<p>PhoneGap solves a really big problem, for developing cross platform applications, already built my first app, looks nice,please send me the book i will write more <img src='http://www.anujgakhar.com/wp-includes/images/smilies/icon_smile.gif' alt=':-)' class='wp-smiley' /> </p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Using REST Services in ColdFusion 10 by Anuj Gakhar</title>
		<link>http://www.anujgakhar.com/2012/02/20/using-rest-services-in-coldfusion-10/comment-page-1/#comment-23843</link>
		<dc:creator>Anuj Gakhar</dc:creator>
		<pubDate>Mon, 20 Feb 2012 22:26:13 +0000</pubDate>
		<guid isPermaLink="false">http://www.anujgakhar.com/?p=1750#comment-23843</guid>
		<description>In my code here :-

restInitApplication(getDirectoryFromPath(getCurrentTemplatePath()), this.name);

I am using the current directory as the root folder (first argument), which is where CF will search for any REST enabled services. and the second argument can be any name you want. I just chose to use this.name.</description>
		<content:encoded><![CDATA[<p>In my code here :-</p>
<p>restInitApplication(getDirectoryFromPath(getCurrentTemplatePath()), this.name);</p>
<p>I am using the current directory as the root folder (first argument), which is where CF will search for any REST enabled services. and the second argument can be any name you want. I just chose to use this.name.</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Using REST Services in ColdFusion 10 by Adam Tuttle</title>
		<link>http://www.anujgakhar.com/2012/02/20/using-rest-services-in-coldfusion-10/comment-page-1/#comment-23841</link>
		<dc:creator>Adam Tuttle</dc:creator>
		<pubDate>Mon, 20 Feb 2012 22:09:34 +0000</pubDate>
		<guid isPermaLink="false">http://www.anujgakhar.com/?p=1750#comment-23841</guid>
		<description>If I remove it from the administrator, how will it know where to find my service? The service mapping points to the application folder.... Even if I used the application name, which I&#039;m not, that still wouldn&#039;t be enough information for CF to find the code.</description>
		<content:encoded><![CDATA[<p>If I remove it from the administrator, how will it know where to find my service? The service mapping points to the application folder&#8230;. Even if I used the application name, which I&#8217;m not, that still wouldn&#8217;t be enough information for CF to find the code.</p>
]]></content:encoded>
	</item>
</channel>
</rss>

