I'm trying to migrate code in my application.cfm page to a application.cfc
file. I tried applying my cfapplication tag code to the onApplicationStart but
that didn't seem to work. I then applied it to the onRequestStart and it seems
to work fine but just curious if that's right. Can someone give me a
recommendation as to which method should be used for this? Also, how do I
propoerly define the constructor function of the application.cfc?

<cfcomponent>

<cffunction name="init" access="private" returntype="void" output="false">
</cffunction>

<cffunction name="onApplicationStart">
</cffunction>

<cffunction name="onRequestStart" returnType="any">
<!--- Application settings
-------------------------------------------------->
<cfapplication
name="templateFB4"
applicationtimeout="#CreateTimeSpan(30,00,00,00)#"
clientmanagement="yes"
clientStorage="registry"
loginStorage="cookie"
sessionmanagement="yes"
sessiontimeout="#CreateTimeSpan(00,30,00,00)#"
setclientcookies="yes"
setdomaincookies="yes" />
<!--- Fusebox required --------------------------------------------------->
<cfsilent>
<cfif right(cgi.script_name, Len("index.cfm")) NEQ "index.cfm" AND
right(cgi.script_name, 3) NEQ "cfc">
<cflocation url="index.cfm" addtoken="no" />
</cfif>
</cfsilent>
</cffunction>

</cfcomponent>