<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:clearspace="http://www.jivesoftware.com/xmlns/jive/rss" version="2.0">
  <channel>
    <title>Adobe Community: Message List - ussue with application.cfc in flash remoting</title>
    <link>https://forums.adobe.com/community/coldfusion/coldfusion_flash_integration?view=discussions</link>
    <description>Most recent forum messages</description>
    <language>en</language>
    <pubDate>Tue, 26 Jun 2012 11:14:18 GMT</pubDate>
    <generator>Jive Engage 7.0.0.1  (http://jivesoftware.com/products/)</generator>
    <dc:date>2012-06-26T11:14:18Z</dc:date>
    <dc:language>en</dc:language>
    <item>
      <title>Re: ussue with application.cfc in flash remoting</title>
      <link>https://forums.adobe.com/message/4520815?tstart=0#4520815</link>
      <description>&lt;!-- [DocumentBodyStart:d263b47a-c4c3-4210-8c2c-92137b778b5d] --&gt;&lt;div class="jive-rendered-content"&gt;&lt;p&gt;that should work for me too,&lt;/p&gt;&lt;p style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;what I'm trying to do is pass this application.env to flex so I can check the env variable is set up correctly, it appears in teh flex result event as an empty object &lt;span aria-label="Sad" class="emoticon-inline emoticon_sad" style="height:16px;width:16px;"&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt; &amp;lt;cffunction name="onApplicationStart" output="false"&amp;gt;&lt;/p&gt;&lt;p&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/p&gt;&lt;p&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;cfset path = cgi.HTTP_REFERER&amp;gt;&lt;/p&gt;&lt;p&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/p&gt;&lt;p&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;cfset serverAnd2Dirs = reFind("([\w-]+/\w+/\w+)",path,0,true)&amp;gt;&lt;/p&gt;&lt;p&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;cfset match = mid(path, serverAnd2Dirs.pos[1], serverAnd2Dirs.len[1])&amp;nbsp;&amp;nbsp; &amp;gt;&lt;/p&gt;&lt;p&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/p&gt;&lt;p&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/p&gt;&lt;p&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/p&gt;&lt;p&gt;&amp;nbsp;&amp;nbsp; &amp;lt;cfset var identifier = createObject("component","DomainEnvironmentIdentifier").init(match)&amp;gt;&lt;/p&gt;&lt;p&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;cfset var environment = createObject("component","Environment" ).init(expandPath('/')&amp;amp;"flex\coldfusion\config\environments.xml.cfm")&amp;gt;&lt;/p&gt;&lt;p&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;cfset environment.use( identifier.currentEnvironment() )&amp;gt;&lt;/p&gt;&lt;p&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;cfset application.env = environment &amp;gt;&lt;/p&gt;&lt;p&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/p&gt;&lt;p&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/p&gt;&lt;p&gt;&amp;lt;/cffunction&amp;gt;&lt;/p&gt;&lt;/div&gt;&lt;!-- [DocumentBodyEnd:d263b47a-c4c3-4210-8c2c-92137b778b5d] --&gt;&lt;img src='/beacon?t=1415918325902' /&gt;</description>
      <pubDate>Tue, 26 Jun 2012 11:14:18 GMT</pubDate>
      <author>forums_noreply@adobe.com</author>
      <guid>https://forums.adobe.com/message/4520815?tstart=0#4520815</guid>
      <dc:date>2012-06-26T11:14:18Z</dc:date>
      <clearspace:dateToText>2 years 5 months ago</clearspace:dateToText>
      <clearspace:objectType>0</clearspace:objectType>
    </item>
    <item>
      <title>Re: ussue with application.cfc in flash remoting</title>
      <link>https://forums.adobe.com/message/4520828?tstart=0#4520828</link>
      <description>&lt;!-- [DocumentBodyStart:e6b82c88-fdd7-4907-b79e-4aef721a8255] --&gt;&lt;div class="jive-rendered-content"&gt;&lt;blockquote class="jive-quote"&gt;&lt;p&gt;I'm trying to get Cf to know the location of the actual cfc I'm calling from flex but I can't get anything other than stuff like this:&lt;/p&gt;&lt;p style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;c:\\inetpub\\wwwroot\\flex2gateway&lt;/p&gt;&lt;/blockquote&gt;&lt;p style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;How are you getting that?&lt;/p&gt;&lt;p style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;It'd be a lot easier to help you if you explain what you're doing (code) what the results are (as per above), and how that differs from your expectation.&lt;/p&gt;&lt;p style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;You could try getBaseTemplatePath().&amp;nbsp; This works for me when being called remotely from a browser, eg:&lt;/p&gt;&lt;p style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;&amp;lt;!--- Application.cfc ---&amp;gt;&lt;/p&gt;&lt;p&gt;&amp;lt;cfcomponent&amp;gt;&lt;/p&gt;&lt;p&gt;&amp;nbsp; &lt;/p&gt;&lt;p&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;lt;cffunction name="onApplicationStart"&amp;gt;&lt;/p&gt;&lt;p&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;lt;cfdump var="#getBaseTemplatePath()#"&amp;gt;&lt;/p&gt;&lt;p&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;lt;cfabort&amp;gt;&lt;/p&gt;&lt;p&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;lt;/cffunction&amp;gt;&lt;/p&gt;&lt;p&gt;&amp;nbsp; &lt;/p&gt;&lt;p&gt;&amp;lt;/cfcomponent&amp;gt;&lt;/p&gt;&lt;p style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;&amp;lt;!--- C.cfc ---&amp;gt;&lt;/p&gt;&lt;p&gt;&amp;lt;cfcomponent&amp;gt;&lt;/p&gt;&lt;p&gt;&amp;nbsp; &lt;/p&gt;&lt;p&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;lt;cffunction name="f" access="remote"&amp;gt;&lt;/p&gt;&lt;p&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;lt;cfreturn "Hello World"&amp;gt;&lt;/p&gt;&lt;p&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;lt;/cffunction&amp;gt;&lt;/p&gt;&lt;p style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;&amp;lt;/cfcomponent&amp;gt;&lt;/p&gt;&lt;p style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;Browsing to:&lt;/p&gt;&lt;p&gt;&lt;a class="jive-link-external-small" href="http://www.scribble.local/cf/cfcs/app/whichFile/C.cfc?method=f" rel="nofollow"&gt;http://www.scribble.local/cf/cfcs/app/whichFile/C.cfc?method=f&lt;/a&gt;&lt;/p&gt;&lt;p style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;I dunno if the contortions FLex goes to will mess with that, but what I see is:&lt;/p&gt;&lt;p style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;&lt;span style="color: #000000; font-family: 'Times New Roman'; text-align: -webkit-auto; font-size: medium;"&gt;C:\WebSites\scribble\cf\cfcs\app\whichFile\C.cfc&lt;/span&gt;&lt;/p&gt;&lt;p style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;Which is correct.&lt;/p&gt;&lt;p style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;-- &lt;/p&gt;&lt;p&gt;Adam&lt;/p&gt;&lt;/div&gt;&lt;!-- [DocumentBodyEnd:e6b82c88-fdd7-4907-b79e-4aef721a8255] --&gt;</description>
      <pubDate>Tue, 26 Jun 2012 10:40:49 GMT</pubDate>
      <author>forums_noreply@adobe.com</author>
      <guid>https://forums.adobe.com/message/4520828?tstart=0#4520828</guid>
      <dc:date>2012-06-26T10:40:49Z</dc:date>
      <clearspace:dateToText>2 years 5 months ago</clearspace:dateToText>
      <clearspace:replyCount>1</clearspace:replyCount>
      <clearspace:objectType>0</clearspace:objectType>
    </item>
    <item>
      <title>Re: ussue with application.cfc in flash remoting</title>
      <link>https://forums.adobe.com/message/4520812?tstart=0#4520812</link>
      <description>&lt;!-- [DocumentBodyStart:091e2376-3f76-4c91-a54c-af63ec085403] --&gt;&lt;div class="jive-rendered-content"&gt;&lt;p&gt;I've got the app.cfc working now:&lt;/p&gt;&lt;p style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt; &amp;lt;cffunction name="onApplicationStart" output="false"&amp;gt;&lt;/p&gt;&lt;p&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/p&gt;&lt;p&gt; ..&lt;/p&gt;&lt;p&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;cfset application.env = environment &amp;gt;&lt;/p&gt;&lt;p&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/p&gt;&lt;p&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/p&gt;&lt;p&gt;&amp;lt;/cffunction&amp;gt;&lt;/p&gt;&lt;p&gt;however when I return this var to flex for testing it, it is empty in the flex debug&lt;/p&gt;&lt;p style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/p&gt;&lt;table&gt;&lt;tbody&gt;&lt;tr&gt;&lt;td style=";"&gt;&lt;/td&gt;&lt;td style=";"&gt;&amp;lt;cffunction name="getCurrentDatasourceBasedOnEnvironment" access="remote" returntype="any" &amp;gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td style=";"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/td&gt;&lt;td style=";"&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td style=";"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/td&gt;&lt;td style=";"&gt;&amp;lt;&lt;strong&gt;cfreturn application.env&lt;/strong&gt;&amp;gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td style=";"&gt;&lt;/td&gt;&lt;td style=";"&gt;&amp;lt;/cffunction&amp;gt;&lt;/td&gt;&lt;/tr&gt;&lt;/tbody&gt;&lt;/table&gt;&lt;p style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;testing here in flex:&lt;/p&gt;&lt;p style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;private function onResult2(event:ResultEvent, passthroughData:Object):void {&lt;/p&gt;&lt;p&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/p&gt;&lt;p&gt;//should have a object&lt;/p&gt;&lt;p&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; trace(event.result);&lt;/p&gt;&lt;p&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;/p&gt;&lt;p style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;perhaps the cfc is not getting the object env instatiated quickly enough on teh CF side?&lt;/p&gt;&lt;/div&gt;&lt;!-- [DocumentBodyEnd:091e2376-3f76-4c91-a54c-af63ec085403] --&gt;</description>
      <pubDate>Tue, 26 Jun 2012 10:34:02 GMT</pubDate>
      <author>forums_noreply@adobe.com</author>
      <guid>https://forums.adobe.com/message/4520812?tstart=0#4520812</guid>
      <dc:date>2012-06-26T10:34:02Z</dc:date>
      <clearspace:dateToText>2 years 5 months ago</clearspace:dateToText>
      <clearspace:objectType>0</clearspace:objectType>
    </item>
    <item>
      <title>Re: ussue with application.cfc in flash remoting</title>
      <link>https://forums.adobe.com/message/4520806?tstart=0#4520806</link>
      <description>&lt;!-- [DocumentBodyStart:0b4c93b2-649e-4698-b7e5-5e6306e76de4] --&gt;&lt;div class="jive-rendered-content"&gt;&lt;p&gt;I'm trying to get Cf to know the location of the actual cfc I'm calling from flex but I can't get anything other than stuff like this:&lt;/p&gt;&lt;p style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;c:\\inetpub\\wwwroot\\flex2gateway&lt;/p&gt;&lt;p style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;basically the problem im having now is there are no vars in CGI in CF that let me know the directory of the current cfc being called. which is a problem because my cf app needs to behave differently based on its location of the server&lt;/p&gt;&lt;/div&gt;&lt;!-- [DocumentBodyEnd:0b4c93b2-649e-4698-b7e5-5e6306e76de4] --&gt;</description>
      <pubDate>Tue, 26 Jun 2012 09:45:33 GMT</pubDate>
      <author>forums_noreply@adobe.com</author>
      <guid>https://forums.adobe.com/message/4520806?tstart=0#4520806</guid>
      <dc:date>2012-06-26T09:45:33Z</dc:date>
      <clearspace:dateToText>2 years 5 months ago</clearspace:dateToText>
      <clearspace:replyCount>3</clearspace:replyCount>
      <clearspace:objectType>0</clearspace:objectType>
    </item>
    <item>
      <title>Re: ussue with application.cfc in flash remoting</title>
      <link>https://forums.adobe.com/message/4520681?tstart=0#4520681</link>
      <description>&lt;!-- [DocumentBodyStart:cfa602c9-62e2-42d0-a443-beca32ef8412] --&gt;&lt;div class="jive-rendered-content"&gt;&lt;p&gt;all the log says is&lt;/p&gt;&lt;p style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;"Error","jrpp-122","06/25/12","15:12:55",,"Event handler exception. An exception occurred while invoking an event handler method from Application.cfc. The method name is: onApplicationStart."&lt;/p&gt;&lt;p style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;Debugger broken as usual.&lt;/p&gt;&lt;p style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;I've narrowed down my error to this in app.cfc because the match is failing on a regex because I didnt realise flex requests always set this to the flex gateway&lt;/p&gt;&lt;p&gt; &amp;lt;cfset application.path = cgi.SERVER_NAME &amp;amp; cgi.SCRIPT_NAME&amp;gt;&lt;/p&gt;&lt;p&gt;I need to look at the file paths instead of these vars &lt;/p&gt;&lt;/div&gt;&lt;!-- [DocumentBodyEnd:cfa602c9-62e2-42d0-a443-beca32ef8412] --&gt;</description>
      <pubDate>Tue, 26 Jun 2012 09:23:10 GMT</pubDate>
      <author>forums_noreply@adobe.com</author>
      <guid>https://forums.adobe.com/message/4520681?tstart=0#4520681</guid>
      <dc:date>2012-06-26T09:23:10Z</dc:date>
      <clearspace:dateToText>2 years 5 months ago</clearspace:dateToText>
      <clearspace:replyCount>4</clearspace:replyCount>
      <clearspace:objectType>0</clearspace:objectType>
    </item>
    <item>
      <title>Re: ussue with application.cfc in flash remoting</title>
      <link>https://forums.adobe.com/message/4518616?tstart=0#4518616</link>
      <description>&lt;!-- [DocumentBodyStart:c6909811-7e0a-4874-aff9-7387c11745cd] --&gt;&lt;div class="jive-rendered-content"&gt;&lt;p&gt;I couldn't comment on how Flex calls might impact the presence of those variables.&lt;/p&gt;&lt;p style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;What do the error logs say?&amp;nbsp; They're likely to have more info.&lt;/p&gt;&lt;p style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;What other troubleshooting steps have you yourself come up with?&amp;nbsp; How have you tried to debug this?&lt;/p&gt;&lt;p style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;-- &lt;br/&gt;Adam&lt;/p&gt;&lt;/div&gt;&lt;!-- [DocumentBodyEnd:c6909811-7e0a-4874-aff9-7387c11745cd] --&gt;</description>
      <pubDate>Mon, 25 Jun 2012 14:52:04 GMT</pubDate>
      <author>forums_noreply@adobe.com</author>
      <guid>https://forums.adobe.com/message/4518616?tstart=0#4518616</guid>
      <dc:date>2012-06-25T14:52:04Z</dc:date>
      <clearspace:dateToText>2 years 5 months ago</clearspace:dateToText>
      <clearspace:replyCount>5</clearspace:replyCount>
      <clearspace:objectType>0</clearspace:objectType>
    </item>
    <item>
      <title>Re: ussue with application.cfc in flash remoting</title>
      <link>https://forums.adobe.com/message/4518546?tstart=0#4518546</link>
      <description>&lt;!-- [DocumentBodyStart:57c5358e-52ca-4731-ba06-4b14456357d6] --&gt;&lt;div class="jive-rendered-content"&gt;&lt;p&gt;the code works fine for coldfusion apps, but when calling from flex via remote object I get this error now:&lt;/p&gt;&lt;p style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;Unable to invoke CFC - Event handler exception.An exception occurred while invoking an event handler method from Application.cfc. The method name is: onApplicationStart.&lt;/p&gt;&lt;p style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;could this be the problem:&lt;/p&gt;&lt;p style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;&amp;lt;cffunction name="onApplicationStart" output="false"&amp;gt;&lt;/p&gt;&lt;p&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/p&gt;&lt;p&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;cfset path = &lt;strong&gt;cgi.SERVER_NAME &amp;amp; cgi.SCRIPT_NAME&lt;/strong&gt;&amp;gt;&lt;/p&gt;&lt;/div&gt;&lt;!-- [DocumentBodyEnd:57c5358e-52ca-4731-ba06-4b14456357d6] --&gt;</description>
      <pubDate>Mon, 25 Jun 2012 14:44:09 GMT</pubDate>
      <author>forums_noreply@adobe.com</author>
      <guid>https://forums.adobe.com/message/4518546?tstart=0#4518546</guid>
      <dc:date>2012-06-25T14:44:09Z</dc:date>
      <clearspace:dateToText>2 years 5 months ago</clearspace:dateToText>
      <clearspace:replyCount>6</clearspace:replyCount>
      <clearspace:objectType>0</clearspace:objectType>
    </item>
    <item>
      <title>Re: ussue with application.cfc in flash remoting</title>
      <link>https://forums.adobe.com/message/4514101?tstart=0#4514101</link>
      <description>&lt;!-- [DocumentBodyStart:1ecc0237-087a-428d-958c-79ca889fc31c] --&gt;&lt;div class="jive-rendered-content"&gt;&lt;p&gt;hopefully i wont need to read much more:), .Net is a dream with c#&lt;/p&gt;&lt;/div&gt;&lt;!-- [DocumentBodyEnd:1ecc0237-087a-428d-958c-79ca889fc31c] --&gt;</description>
      <pubDate>Fri, 22 Jun 2012 16:32:39 GMT</pubDate>
      <author>forums_noreply@adobe.com</author>
      <guid>https://forums.adobe.com/message/4514101?tstart=0#4514101</guid>
      <dc:date>2012-06-22T16:32:39Z</dc:date>
      <clearspace:dateToText>2 years 5 months ago</clearspace:dateToText>
      <clearspace:replyCount>7</clearspace:replyCount>
      <clearspace:objectType>0</clearspace:objectType>
    </item>
    <item>
      <title>Re: ussue with application.cfc in flash remoting</title>
      <link>https://forums.adobe.com/message/4513895?tstart=0#4513895</link>
      <description>&lt;!-- [DocumentBodyStart:b240aa71-8ad0-4dad-b5f3-5faff443ccaa] --&gt;&lt;div class="jive-rendered-content"&gt;&lt;p&gt;Yup!&lt;/p&gt;&lt;p style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;Make sure you read those docs though, eh?&amp;nbsp; It'll help clear up a lot of mysteries like this.&lt;/p&gt;&lt;p style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;-- &lt;/p&gt;&lt;p&gt;Adam&lt;/p&gt;&lt;/div&gt;&lt;!-- [DocumentBodyEnd:b240aa71-8ad0-4dad-b5f3-5faff443ccaa] --&gt;</description>
      <pubDate>Fri, 22 Jun 2012 15:24:42 GMT</pubDate>
      <author>forums_noreply@adobe.com</author>
      <guid>https://forums.adobe.com/message/4513895?tstart=0#4513895</guid>
      <dc:date>2012-06-22T15:24:42Z</dc:date>
      <clearspace:dateToText>2 years 5 months ago</clearspace:dateToText>
      <clearspace:replyCount>8</clearspace:replyCount>
      <clearspace:objectType>0</clearspace:objectType>
    </item>
    <item>
      <title>Re: ussue with application.cfc in flash remoting</title>
      <link>https://forums.adobe.com/message/4513824?tstart=0#4513824</link>
      <description>&lt;!-- [DocumentBodyStart:8b762290-f51b-4a77-8e23-7bb745dd16be] --&gt;&lt;div class="jive-rendered-content"&gt;&lt;p&gt;sweet mate:&lt;/p&gt;&lt;p style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;this is what I had to do&lt;/p&gt;&lt;p&gt;&amp;nbsp;&amp;nbsp; &amp;lt;cfset application.env = environment &amp;gt;&lt;/p&gt;&lt;/div&gt;&lt;!-- [DocumentBodyEnd:8b762290-f51b-4a77-8e23-7bb745dd16be] --&gt;</description>
      <pubDate>Fri, 22 Jun 2012 15:21:17 GMT</pubDate>
      <author>forums_noreply@adobe.com</author>
      <guid>https://forums.adobe.com/message/4513824?tstart=0#4513824</guid>
      <dc:date>2012-06-22T15:21:17Z</dc:date>
      <clearspace:dateToText>2 years 5 months ago</clearspace:dateToText>
      <clearspace:replyCount>9</clearspace:replyCount>
      <clearspace:objectType>0</clearspace:objectType>
    </item>
    <item>
      <title>Re: ussue with application.cfc in flash remoting</title>
      <link>https://forums.adobe.com/message/4513771?tstart=0#4513771</link>
      <description>&lt;!-- [DocumentBodyStart:86d60d75-49a5-4f89-b906-b408b1b5e031] --&gt;&lt;div class="jive-rendered-content"&gt;&lt;p&gt;No.&amp;nbsp; The application scope is used to access application-scoped variables.&lt;/p&gt;&lt;p style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;I think you need to read up on how scopes work in CF.&amp;nbsp; Read this entire section of the docs:&lt;/p&gt;&lt;p&gt;&lt;a class="jive-link-external-small" href="http://help.adobe.com/en_US/ColdFusion/9.0/Developing/WSc3ff6d0ea77859461172e0811cbec22c24-7ff2.html" rel="nofollow"&gt;http://help.adobe.com/en_US/ColdFusion/9.0/Developing/WSc3ff6d0ea77859461172e0811cbec22c24 -7ff2.html&lt;/a&gt;&lt;/p&gt;&lt;p style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;I can't guess where in your code you put the CFDUMP, so I can't really comment on the rest of it.&lt;/p&gt;&lt;p style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;-- &lt;/p&gt;&lt;p&gt;Adam&lt;/p&gt;&lt;/div&gt;&lt;!-- [DocumentBodyEnd:86d60d75-49a5-4f89-b906-b408b1b5e031] --&gt;</description>
      <pubDate>Fri, 22 Jun 2012 14:42:58 GMT</pubDate>
      <author>forums_noreply@adobe.com</author>
      <guid>https://forums.adobe.com/message/4513771?tstart=0#4513771</guid>
      <dc:date>2012-06-22T14:42:58Z</dc:date>
      <clearspace:dateToText>2 years 5 months ago</clearspace:dateToText>
      <clearspace:replyCount>10</clearspace:replyCount>
      <clearspace:objectType>0</clearspace:objectType>
    </item>
    <item>
      <title>Re: ussue with application.cfc in flash remoting</title>
      <link>https://forums.adobe.com/message/4513696?tstart=0#4513696</link>
      <description>&lt;!-- [DocumentBodyStart:3314285b-9245-4d95-b19a-b250cff56cc2] --&gt;&lt;div class="jive-rendered-content"&gt;&lt;p&gt;ah I thought application.var was used to access global vars&lt;/p&gt;&lt;p style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;anyway I tried&lt;/p&gt;&lt;p style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;&amp;lt;cfdump var="#this.name#" &amp;gt;&lt;/p&gt;&lt;p style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/p&gt;&lt;p style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/p&gt;&lt;h1 style="color: black;"&gt;Element NAME is undefined in THIS. &lt;/h1&gt;&lt;/div&gt;&lt;!-- [DocumentBodyEnd:3314285b-9245-4d95-b19a-b250cff56cc2] --&gt;</description>
      <pubDate>Fri, 22 Jun 2012 14:20:47 GMT</pubDate>
      <author>forums_noreply@adobe.com</author>
      <guid>https://forums.adobe.com/message/4513696?tstart=0#4513696</guid>
      <dc:date>2012-06-22T14:20:47Z</dc:date>
      <clearspace:dateToText>2 years 5 months ago</clearspace:dateToText>
      <clearspace:replyCount>11</clearspace:replyCount>
      <clearspace:objectType>0</clearspace:objectType>
    </item>
    <item>
      <title>Re: ussue with application.cfc in flash remoting</title>
      <link>https://forums.adobe.com/message/4513614?tstart=0#4513614</link>
      <description>&lt;!-- [DocumentBodyStart:d8c32f82-d731-41ad-ba0c-53703c779ab1] --&gt;&lt;div class="jive-rendered-content"&gt;&lt;p&gt;Well you're not setting that either.&amp;nbsp; Why would you expect it to exist?&amp;nbsp; Do you understand that THIS.someVar != APPLICATION.someVar != someVar.&amp;nbsp; They are completely different things.&lt;/p&gt;&lt;p style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;-- &lt;/p&gt;&lt;p&gt;Adam&lt;/p&gt;&lt;/div&gt;&lt;!-- [DocumentBodyEnd:d8c32f82-d731-41ad-ba0c-53703c779ab1] --&gt;</description>
      <pubDate>Fri, 22 Jun 2012 13:46:47 GMT</pubDate>
      <author>forums_noreply@adobe.com</author>
      <guid>https://forums.adobe.com/message/4513614?tstart=0#4513614</guid>
      <dc:date>2012-06-22T13:46:47Z</dc:date>
      <clearspace:dateToText>2 years 5 months ago</clearspace:dateToText>
      <clearspace:replyCount>12</clearspace:replyCount>
      <clearspace:objectType>0</clearspace:objectType>
    </item>
    <item>
      <title>Re: ussue with application.cfc in flash remoting</title>
      <link>https://forums.adobe.com/message/4513564?tstart=0#4513564</link>
      <description>&lt;!-- [DocumentBodyStart:b57abc0c-fc28-40bc-b6d2-3b09b2ac2351] --&gt;&lt;div class="jive-rendered-content"&gt;&lt;p&gt;these debugger issues just force users to move to things like .Net &lt;span aria-label="Sad" class="emoticon-inline emoticon_sad" style="height:16px;width:16px;"&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;anyway, even if I do &lt;/p&gt;&lt;p&gt;&lt;span&gt;&lt;pre class="jive-pre"&gt;&lt;strong&gt; &amp;lt;cfdump var="#application.name#" &amp;gt;&lt;/strong&gt;&lt;/pre&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;I get the error &lt;/p&gt;&lt;p&gt;&lt;span&gt;&lt;h1 style="color: black;"&gt;Element NAME is undefined in APPLICATION. &lt;/h1&gt;&lt;/span&gt;&lt;/p&gt;&lt;/div&gt;&lt;!-- [DocumentBodyEnd:b57abc0c-fc28-40bc-b6d2-3b09b2ac2351] --&gt;</description>
      <pubDate>Fri, 22 Jun 2012 13:44:00 GMT</pubDate>
      <author>forums_noreply@adobe.com</author>
      <guid>https://forums.adobe.com/message/4513564?tstart=0#4513564</guid>
      <dc:date>2012-06-22T13:44:00Z</dc:date>
      <clearspace:dateToText>2 years 5 months ago</clearspace:dateToText>
      <clearspace:replyCount>13</clearspace:replyCount>
      <clearspace:objectType>0</clearspace:objectType>
    </item>
    <item>
      <title>Re: ussue with application.cfc in flash remoting</title>
      <link>https://forums.adobe.com/message/4513537?tstart=0#4513537</link>
      <description>&lt;!-- [DocumentBodyStart:cb2498f4-34ce-4466-abe6-899bf7f7216e] --&gt;&lt;div class="jive-rendered-content"&gt;&lt;p&gt;The only reference to this.environment is in that statement you just quoted.&amp;nbsp; So it &lt;em&gt;doesn't&lt;/em&gt; exist.&amp;nbsp; Nowhere in your Application.cfc (as quoted in your earlier post) do you create that variables.&amp;nbsp; That's why CF is telling you it doesn't exist.&amp;nbsp; Because it dun't ;-)&lt;/p&gt;&lt;p style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;And - no - I could not get the CFB debugger working in any way other than very basic test cases (and ti wasn't very robust when I &lt;em&gt;could&lt;/em&gt; get it working).&amp;nbsp; It seems you need to have your source code location, site structure and CFB project set up in a very unlikely-to-be-how-one-needs-it-to-be sort of way for it to work.&amp;nbsp; And I'm not going to restructure our application justt o get some shoddy CFB functionality to work.&lt;/p&gt;&lt;p style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;-- &lt;/p&gt;&lt;p&gt;Adam&lt;/p&gt;&lt;/div&gt;&lt;!-- [DocumentBodyEnd:cb2498f4-34ce-4466-abe6-899bf7f7216e] --&gt;</description>
      <pubDate>Fri, 22 Jun 2012 13:08:20 GMT</pubDate>
      <author>forums_noreply@adobe.com</author>
      <guid>https://forums.adobe.com/message/4513537?tstart=0#4513537</guid>
      <dc:date>2012-06-22T13:08:20Z</dc:date>
      <clearspace:dateToText>2 years 5 months ago</clearspace:dateToText>
      <clearspace:replyCount>14</clearspace:replyCount>
      <clearspace:objectType>0</clearspace:objectType>
    </item>
    <item>
      <title>Re: ussue with application.cfc in flash remoting</title>
      <link>https://forums.adobe.com/message/4513492?tstart=0#4513492</link>
      <description>&lt;!-- [DocumentBodyStart:e22ad61b-fffa-41ba-9e30-e0a046455aef] --&gt;&lt;div class="jive-rendered-content"&gt;&lt;p&gt;I see that, but I don't see what is wrong with my code:&lt;/p&gt;&lt;p style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;&amp;lt;cfdump var="#application.environment#" &amp;gt;&lt;/p&gt;&lt;p style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;because that var should be defined in app.cfc?&lt;/p&gt;&lt;p style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/p&gt;&lt;table&gt;&lt;tbody&gt;&lt;tr&gt;&lt;td style=";"&gt;&lt;/td&gt;&lt;td style=";"&gt;&lt;p&gt;&amp;lt;cfset APPLICATION.environment = this.environment&amp;gt;&lt;/p&gt;&lt;p style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/p&gt;&lt;/td&gt;&lt;/tr&gt;&lt;/tbody&gt;&lt;/table&gt;&lt;p style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;btw can you offer any tips on getting this horrible debugger to work better?&lt;/p&gt;&lt;/div&gt;&lt;!-- [DocumentBodyEnd:e22ad61b-fffa-41ba-9e30-e0a046455aef] --&gt;</description>
      <pubDate>Fri, 22 Jun 2012 12:59:28 GMT</pubDate>
      <author>forums_noreply@adobe.com</author>
      <guid>https://forums.adobe.com/message/4513492?tstart=0#4513492</guid>
      <dc:date>2012-06-22T12:59:28Z</dc:date>
      <clearspace:dateToText>2 years 5 months ago</clearspace:dateToText>
      <clearspace:replyCount>15</clearspace:replyCount>
      <clearspace:objectType>0</clearspace:objectType>
    </item>
    <item>
      <title>Re: ussue with application.cfc in flash remoting</title>
      <link>https://forums.adobe.com/message/4513437?tstart=0#4513437</link>
      <description>&lt;!-- [DocumentBodyStart:e837c0b8-7bdf-47c4-8080-e606a7c2c005] --&gt;&lt;div class="jive-rendered-content"&gt;&lt;p&gt;Right.&amp;nbsp; And what does the error message say:&lt;/p&gt;&lt;p style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;&lt;span style="font-family: AdobeCleanRegular, 'Helvetica Neue', Arial, sans-serif; font-size: 14px; background-color: #e7e7e7;"&gt;Element ENVIRONMENT is undefined in THIS. The specific sequence of files included or processed is: C:\Inetpub\wwwroot\coldfusion\tests\testEnvironmentName.cfm, line: 24&lt;/span&gt;&lt;/p&gt;&lt;p style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;Does that not give you a pretty big hint as to what's wrong?&amp;nbsp; Read the error, and ask youirself "OK, what does that mean?&amp;nbsp; What's CF telling me here?"&lt;/p&gt;&lt;p style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;It's also telling you the exact line that has the problem on it.&lt;/p&gt;&lt;p style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;-- &lt;/p&gt;&lt;p&gt;Adam&lt;/p&gt;&lt;/div&gt;&lt;!-- [DocumentBodyEnd:e837c0b8-7bdf-47c4-8080-e606a7c2c005] --&gt;</description>
      <pubDate>Fri, 22 Jun 2012 12:57:16 GMT</pubDate>
      <author>forums_noreply@adobe.com</author>
      <guid>https://forums.adobe.com/message/4513437?tstart=0#4513437</guid>
      <dc:date>2012-06-22T12:57:16Z</dc:date>
      <clearspace:dateToText>2 years 5 months ago</clearspace:dateToText>
      <clearspace:replyCount>16</clearspace:replyCount>
      <clearspace:objectType>0</clearspace:objectType>
    </item>
    <item>
      <title>Re: ussue with application.cfc in flash remoting</title>
      <link>https://forums.adobe.com/message/4513489?tstart=0#4513489</link>
      <description>&lt;!-- [DocumentBodyStart:a79b7dd6-b841-43a1-9d0e-4ad0ecf9e936] --&gt;&lt;div class="jive-rendered-content"&gt;&lt;p&gt;&lt;span aria-label="Happy" class="emoticon-inline emoticon_happy" style="height:16px;width:16px;"&gt;&lt;/span&gt; why does adobe release this CFB2 debugger nonsense ?!&lt;/p&gt;&lt;p style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;If I call a cfc from flex this is the error:&lt;/p&gt;&lt;p style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;"Error","jrpp-65","06/22/12","13:44:05",,"Event handler exception. An exception occurred while invoking an event handler method from Application.cfc. The method name is: onApplicationStart."&lt;/p&gt;&lt;p style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;if I call from a cfm:&lt;/p&gt;&lt;p style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;"Error","jrpp-65","06/22/12","13:41:19","2EC8204583ADAF402268D67FCB11BF48","Element ENVIRONMENT is undefined in THIS. The specific sequence of files included or processed is: C:\Inetpub\wwwroot\coldfusion\tests\testEnvironmentName.cfm, line: 24 "&lt;/p&gt;&lt;p style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;code in cfm=&amp;gt;&lt;/p&gt;&lt;p&gt;&amp;lt;cfdump var="#application.environment#" &amp;gt;&lt;/p&gt;&lt;/div&gt;&lt;!-- [DocumentBodyEnd:a79b7dd6-b841-43a1-9d0e-4ad0ecf9e936] --&gt;</description>
      <pubDate>Fri, 22 Jun 2012 12:46:46 GMT</pubDate>
      <author>forums_noreply@adobe.com</author>
      <guid>https://forums.adobe.com/message/4513489?tstart=0#4513489</guid>
      <dc:date>2012-06-22T12:46:46Z</dc:date>
      <clearspace:dateToText>2 years 5 months ago</clearspace:dateToText>
      <clearspace:replyCount>17</clearspace:replyCount>
      <clearspace:objectType>0</clearspace:objectType>
    </item>
    <item>
      <title>Re: ussue with application.cfc in flash remoting</title>
      <link>https://forums.adobe.com/message/4513354?tstart=0#4513354</link>
      <description>&lt;!-- [DocumentBodyStart:7159d9a7-8020-46e1-9af8-879931782e4b] --&gt;&lt;div class="jive-rendered-content"&gt;&lt;p&gt;Well you can debug it via a CFM file instead of from Flash (or using the CFB debugger, which I agree is a bit hit and miss.&amp;nbsp; Mostly miss).&amp;nbsp; And you could look at the error logs to see what the errors are...&lt;/p&gt;&lt;p style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;-- &lt;/p&gt;&lt;p&gt;Adam&lt;/p&gt;&lt;/div&gt;&lt;!-- [DocumentBodyEnd:7159d9a7-8020-46e1-9af8-879931782e4b] --&gt;</description>
      <pubDate>Fri, 22 Jun 2012 11:42:00 GMT</pubDate>
      <author>forums_noreply@adobe.com</author>
      <guid>https://forums.adobe.com/message/4513354?tstart=0#4513354</guid>
      <dc:date>2012-06-22T11:42:00Z</dc:date>
      <clearspace:dateToText>2 years 5 months ago</clearspace:dateToText>
      <clearspace:replyCount>18</clearspace:replyCount>
      <clearspace:objectType>0</clearspace:objectType>
    </item>
    <item>
      <title>ussue with application.cfc in flash remoting</title>
      <link>https://forums.adobe.com/message/4513395?tstart=0#4513395</link>
      <description>&lt;!-- [DocumentBodyStart:517fe2dc-7a49-4123-9b75-c23b747fa1f0] --&gt;&lt;div class="jive-rendered-content"&gt;&lt;p&gt;&amp;lt;cfcomponent&lt;/p&gt;&lt;p&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; output="false"&lt;/p&gt;&lt;p&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; hint="I define the application settings and event handlers."&amp;gt;&lt;/p&gt;&lt;p style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;hi, im using flash remoting to call cfcs and I want to use this application.cfc to determine the environment (the APPLICATION.environment defines a DSN used in the cfcs flash calls).&lt;/p&gt;&lt;p style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;however everytime I call a cfc with this app.cfc I get a error from CF which I can't debug because CF builder is uselss for connecting to debuggers. Any ideas?&lt;/p&gt;&lt;p style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;!--- Define the application. ---&amp;gt;&lt;/p&gt;&lt;p&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;cfset this.name = hash( getCurrentTemplatePath() ) /&amp;gt;&lt;/p&gt;&lt;p&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;cfset this.applicationTimeout = createTimeSpan( 0, 0, 1, 0 ) /&amp;gt;&lt;/p&gt;&lt;p style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/p&gt;&lt;p&gt; &amp;lt;cffunction name="onApplicationStart" output="false"&amp;gt;&lt;/p&gt;&lt;p&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/p&gt;&lt;p&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;cfset path = cgi.SERVER_NAME &amp;amp; cgi.SCRIPT_NAME&amp;gt;&lt;/p&gt;&lt;p&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/p&gt;&lt;p&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;cfset serverAnd2Dirs = reFind("([\w-]+/\w+/\w+)",path,0,true)&amp;gt;&lt;/p&gt;&lt;p&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;cfset match = mid(path, serverAnd2Dirs.pos[1], serverAnd2Dirs.len[1])&amp;nbsp;&amp;nbsp; &amp;gt;&lt;/p&gt;&lt;p&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/p&gt;&lt;p&gt;&amp;nbsp;&amp;nbsp; &amp;lt;cfset var identifier = createObject("component","DomainEnvironmentIdentifier").init(match)&amp;gt;&lt;/p&gt;&lt;p&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;cfset var environment = createObject("component","Environment" ).init(expandPath('/')&amp;amp;"coldfusion\config\environments.xml.cfm")&amp;gt;&lt;/p&gt;&lt;p&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;cfset environment.use( identifier.currentEnvironment() )&amp;gt;&lt;/p&gt;&lt;p&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;cfset APPLICATION.environment = this.environment&amp;gt;&lt;/p&gt;&lt;p&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/p&gt;&lt;p&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/p&gt;&lt;p&gt;&amp;lt;/cffunction&amp;gt; &lt;/p&gt;&lt;p style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/p&gt;&lt;p style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/p&gt;&lt;p style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;&amp;lt;/cfcomponent&amp;gt;&lt;/p&gt;&lt;/div&gt;&lt;!-- [DocumentBodyEnd:517fe2dc-7a49-4123-9b75-c23b747fa1f0] --&gt;</description>
      <pubDate>Fri, 22 Jun 2012 11:29:38 GMT</pubDate>
      <author>forums_noreply@adobe.com</author>
      <guid>https://forums.adobe.com/message/4513395?tstart=0#4513395</guid>
      <dc:date>2012-06-22T11:29:38Z</dc:date>
      <clearspace:dateToText>2 years 5 months ago</clearspace:dateToText>
      <clearspace:replyCount>19</clearspace:replyCount>
      <clearspace:objectType>0</clearspace:objectType>
    </item>
  </channel>
</rss>

