Just wanted to follow up in case anyone ever wants to try it. 
On your super init method, use this code:


accessRemote = false;
cfcname = getmetadata(this);
        for(i=1;i lte arrayLen(cfcname.FUNCTIONS);i++){
                fname = cfcname.FUNCTIONS[i];
                if(fname.name eq url.method && fname.access eq "remote"){
                        accessRemote = true;
                        break;
                }
        }



Call super.init() on your child cfc's. This only works with methods called via 
URL and do not use only one instance of the parent cfc. 

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Order the Adobe Coldfusion Anthology now!
http://www.amazon.com/Adobe-Coldfusion-Anthology-Michael-Dinowitz/dp/1430272155/?tag=houseoffusion
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:335729
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm

Reply via email to