I think it was Sean Corfield who offered a solution if you must have both
onRequest in your application.cfc and use web services that use this
application.cfc. Basically you implement a workaround in your onRequestStart
method. It checks the file extension of the file called and if it is a cfc
it structDeletes the onRequest method from the CFC (I think it removes it
from the this scope). If I get the chance I will rewrite this code if
necessary because for the life of me, I cannot find it anywhere (I thought
it would be on Sean or Ray's sites).

- Brian Rinaldi
blog - http://www.remotesynthesis.com/blog
CF Open Source List - http://www.remotesynthesis.com/cfopensourcelist
Boston CFUG - http://www.bostoncfug.org

On 7/4/06, Dave Watts <[EMAIL PROTECTED]> wrote:
>
> > I use flash remoting to call cfm pages and I want to use
> > Application.cfc to define the onRequest event so that I can
> > have global tag libraries. But it's not working as I get an
> > error saying it can't include /flashservices/gateway/ which
> > correct as it's not a real location. How do I get it working?
>
> I'm pretty sure you can't use the onRequest event for Flash Remoting or
> SOAP
> requests. Typically, you might use a separate Application.cfc for those
> requests. For example, in some of our applications we have three
> Application.cfc files. The core one has no onRequest event, and is used to
> extend two others: one for CFM pages that defines an onRequest event, and
> one for direct calls to CFCs that doesn't.
>
> Dave Watts, CTO, Fig Leaf Software
> http://www.figleaf.com/
>
> Fig Leaf Software provides the highest caliber vendor-authorized
> instruction at our training centers in Washington DC, Atlanta,
> Chicago, Baltimore, Northern Virginia, or on-site at your location.
> Visit http://training.figleaf.com/ for more information!
>
>
> 

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Message: http://www.houseoffusion.com/lists.cfm/link=i:4:245366
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
Donations & Support: http://www.houseoffusion.com/tiny.cfm/54

Reply via email to