Daryl,

Have you got some example code that you could send to me, I get what your
saying but would like to see how you use it.

I have a project that I am looking at reducing code on, and make the code
runable from 3 different applications, that would allow persistent data
using databases access.

For example, I am trying to get a best idea on how to do this as one
scenario.

A module that we have is a list of categories. Now this code can be shared
across the websites in question but the data only changes on each website, I
am kind of looking at how others have implemented something like this or how
they would approach it.

So far I have this in mind

Database
-- Datasource

Services
-- Categories

System
-- Authentication

<!--- Categories --->
<cfcomponent extends="Database.Datasource">

 <cffunction Name="init">
  <cfreturn this />
 </cffunction>

 <cffunction name="getCategories">
  <cfset var Test = '' />
  <cfquery name="Test" datasource="#Datasource#" /> <!--- Held in
Database.Datasource --->
   select * from Categories
  </cfquery>
  <cfreturn Categories />
 </cffunction>

</cfcomponent>

What I am trying to understand and achieve is something that is flexible,
extendable and easy to maintain in the future. But I am not 100% sure on the
approach, or if others have a better way to achieve this. Mach-II was an
option that I looked at, but due its nature is not applicable to this
project.

 
Regards
Andrew Scott
Technical Consultant

NuSphere Pty Ltd
Level 2/33 Bank Street
South Melbourne, Victoria, 3205

Phone: 03 9686 0485  -  Fax: 03 9699 7976


-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Darryl Lyons
Sent: Tuesday, 1 March 2005 10:36 AM
To: CFAussie Mailing List
Subject: [cfaussie] Re: CFCs calling CFCs

> So that means that Mach-II is based on the singleton pattern then! 

Not knowing Mach-II very well, I wouldn't know!  So it loads all components
into memory only once? We also have a method to create Session Singletons
for components that persist data.

Darryl 




To unsubscribe from this email please forward this email to
[EMAIL PROTECTED] 

This email message is confidential and may be privileged. If you are not the
intended recipient please forward the email to [EMAIL PROTECTED]
and delete the original.
 
ABN AMRO Morgans Limited and its associates hold or may hold securities in
the companies/trusts mentioned herein.
Any general advice included in this email has been prepared without taking
into account your objectives, financial situation or needs.
Before acting on the advice, you should consider its appropriateness or
discuss with one of our investment advisors.

ABN AMRO Morgans Limited (ABN 49 010 669 726 AFSL 235410) A Participant of
ASX Group.
A principal member of the Financial Planning Association.


---
You are currently subscribed to cfaussie as: [EMAIL PROTECTED] To unsubscribe
send a blank email to [EMAIL PROTECTED]
Aussie Macromedia Developers: http://lists.daemon.com.au/




---
You are currently subscribed to cfaussie as: [email protected]
To unsubscribe send a blank email to [EMAIL PROTECTED]
Aussie Macromedia Developers: http://lists.daemon.com.au/

Reply via email to