Thanks for the info Brian. I'm sure it makes sense and I think I
understand!
So, just to clarify, if I have a circuit (fb5.1 app) called Districts
which contains all the fb code for handling Districts. Instead of
calling Reactor directly in fb I would create 2 cfcs one could be
DistrictFacade.cfc and the other could be DistrictRemote.cfc.
Then any ajax calls would hit DistrictRemote which in turn would hit
DistrictFacade and this would then make calls to Reactor?
Am I almost there?
Cheers,
Dave
Brian Kotek wrote:
Dave, short answer: no. Reactor is an ORM framework, and what you are
looking for is a remote facade.
In my applicaitons, Reactor is not even "publically accessible". All
requests from the Controller go through a Service layer. Same goes for
AJAX reqeusts (or Flex requests or web service requests for that
matter). I create remote facades for my Service layer components
(actually I have ColdSpring automatically create them) and the incoming
requests hit that remote facade. So basically:
1. AJAX call hits remote facade, which has only certain methods
available for remote access, and also may apply special pre- or
post- processing to the requests, such as serializing or
deserializing to JSON, etc.
2. remote facade calls service layer component
3. service layer component calls reactor
4. query returned by service layer to remote facade
5. remote facade converts to JSON (or whatever)
6. remote facade returns results to AJAX caller
Hopefully that makes sense.
On 7/25/07, *David Phipps* < [EMAIL PROTECTED]
<mailto:[EMAIL PROTECTED]>> wrote:
Hi,
I am thinking about adding some ajax functionality using ajaxCFC and in
the past I have written a separate cfc, that extends ajaxCFC, and this
contains the methods used for the ajax calls.
Is there a way to plug/link ajaxCFC into reactor so that I don't have to
write a separate set of methods in another cfc?
Many thanks,
Dave
--
_______________________________________________________________________
David Phipps, Director
[EMAIL PROTECTED]
<mailto:[EMAIL PROTECTED]>
Chapel Studios / London
T +44 (0)20 7100 6980 F +44 (0)20 7100 6981 M +44 (0)7931 375040
New Broad Street House, 35 New Broad Street, London, EC2M 1NH, UK
Visit our website: http://www.chapel-studios.co.uk
_______________________________________________________________________
Chapel Studios is a limited company registered in England. The
information in this email is confidential, intended solely for the
addressee, and may be legally privileged. If you are not the
addressee
or authorized to receive this for the addressee, you must not use,
copy,
disclose or take any action based upon this message or any
information
herein. If you have received this message in error, please advise
the sender immediately by reply e-mail.
-- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
-- -- -- --
Reactor for ColdFusion Mailing List
[EMAIL PROTECTED] <mailto:[EMAIL PROTECTED]>
Archives at: http://www.mail-archive.com/reactor%40doughughes.net/
-- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
-- -- -- --
-- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
-- -- --
Reactor for ColdFusion Mailing List
[EMAIL PROTECTED]
Archives at: http://www.mail-archive.com/reactor%40doughughes.net/
-- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
-- -- --
--
_______________________________________________________________________
David Phipps, Director
[EMAIL PROTECTED]
Chapel Studios / London
T +44 (0)20 7100 6980 F +44 (0)20 7100 6981 M +44 (0)7931 375040
New Broad Street House, 35 New Broad Street, London, EC2M 1NH, UK
Visit our website: http://www.chapel-studios.co.uk
_______________________________________________________________________
Chapel Studios is a limited company registered in England. The
information in this email is confidential, intended solely for the
addressee, and may be legally privileged. If you are not the addressee
or authorized to receive this for the addressee, you must not use,
copy,
disclose or take any action based upon this message or any information
herein. If you have received this message in error, please advise
the sender immediately by reply e-mail.
-- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
Reactor for ColdFusion Mailing List
[EMAIL PROTECTED]
Archives at: http://www.mail-archive.com/reactor%40doughughes.net/
-- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --