Hi, I needed to invoke a cfc from my cfc library using a page running on a shared SSL certificate. I couldnt find much info about how to do it, so this solution might help someone.
Given a cfc library under your site root of (say) /CFfunctions/cfc, create a CF mapping (eg Logical path: /myCFCmap Directory: /CFfunctions/cfc) Given a cfc in your library eg: /CFfunctions/cfc/person.cfc that needs to be invoked from a page like http://www.mysite.com.au/public/index.cfm you could use one of the following ways of invoking the cfc: aPerson = createObject("component", "CFfunctions.cfc.person"); or aPerson = createObject("component", "myCFCmap.person"); The first method uses the directory structure itself, while the second method uses the mapping. You will find that the first method wont work if you invoke the page under a shared SSL certificate. eg if your isp has a shared SSL certificate and you use an alias like https://mysite.myisp.net/public/index.cfm to run the same page as above under SSL, you will get a CF error saying it cant find CFfunctions.cfc.person.cfc. However, if you use the mapping technique to invoke the cfc (ie "myCFCmap.person") it will work under both the SSL and non-SSL methods of invoking. Now, here is a twist. If you extend your object "person" in the same library: <cfcomponent displayname="Farmer" extends="person"> then invoke Farmer aFarmer = createObject("component", "myCFCmap.farmer"); then (say) farmerName = aFarmer.getName(); the method of person ( getName() ) isnt available via farmer - you get a CF error saying it cant find the method. To fix that, extend the object lin this way: <cfcomponent displayname="farmer" extends="myCFCmap.person"> ie use the mapping name in the extends parameter. >From my testing this all seems to work. Cheers, Murray --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "cfaussie" group. To post to this group, send email to cfaussie@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/cfaussie -~----------~----~----~----~------~----~------~--~---