Hi,

I recently listened to the ColdFusion weekly podcast Safari Edition (episode 1.10) and I really learnt a lot about using design patterns to create CFC's. One question that I do have is, in the podcast they spoke about a service layer, now I know what the service layer should do after looking through the example code they provided, but I was wondering how you access this service layer through the cfm page.

At the  moment I'm building a small search form, in which the user either enters a ID number or part of a name, then I have the page reload and create the service layer with which I can access all the methods and functionality I have created in my DAO.

One thing I did notice in their example code was I can't seem to see where they initialise the Bean CFC. In the service cfc the DAO cfc is created, but I thought that the Bean cfc would be created as part of the service layer initialisation, in the service cfc init method?

Do you create the service layer, create the DAO object and the Bean object, then populate the bean all within initialising the service layer cfc?

Thanks

Stephen
----------------------------------------------------------
You are subscribed to cfcdev. To unsubscribe, send an email to cfcdev@cfczone.org with the words 'unsubscribe cfcdev' as the subject of the email.

CFCDev is run by CFCZone (www.cfczone.org) and supported by CFXHosting (www.cfxhosting.com).

An archive of the CFCDev list is available at www.mail-archive.com/cfcdev@cfczone.org

Reply via email to