I think that it all depends on just how customized you need your service
layer to be.  Are we talking about the occasional need for a different
serialization method, or are you doing something so specific that it
*always* requires some fancy handling?

RC

-----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf
Of Paul Marcotte
Sent: Monday, December 04, 2006 6:49 PM
To: [email protected]
Subject: [CFCDEV] ColdSpring Remote Proxy Response Serialization

Hi All,

I'm looking for some help with ColdSpring and Remote Proxies.  Here's  
the skinny:

I have abstracted a few simple query calls into a DAO that is injected  
into a Service.  Service methods are public, but I need to access the  
same data from an Scriptaculous/Prototype Ajax.Request.  I want the  
result serialized as JSON.

I have configured Coldspring to generate a RemoteService and it works  
fine, except for the serialization.  I could edit the generated  
RemoteService.cfc, but any time I init my IoC container, blam,  
RemoteService is re-generated.

Other than writing my own Remote Façade to the service (which will  
feel like a waste instantiating the underlying service layer and  
dependencies for every call), I think my only option would be to delve  
deeper into Coldspring and write an AroundAdvice method interceptor to  
serialize my remote service calls.

Does anyone have experience with a similar situation or could provide  
a suggestion?

Thanks!

-- 
Paul Marcotte
Fancy Bread Multimedia


You are subscribed to cfcdev. To unsubscribe, please follow the instructions
at http://www.cfczone.org/listserv.cfm

CFCDev is supported by:
Katapult Media, Inc.
We are cool code geeks looking for fun projects to rock!
www.katapultmedia.com

An archive of the CFCDev list is available at
www.mail-archive.com/[email protected]




You are subscribed to cfcdev. To unsubscribe, please follow the instructions at 
http://www.cfczone.org/listserv.cfm

CFCDev is supported by:
Katapult Media, Inc.
We are cool code geeks looking for fun projects to rock!
www.katapultmedia.com

An archive of the CFCDev list is available at 
www.mail-archive.com/[email protected]

Reply via email to