Well you could always do this:
<cffunction name="serialize">
<cfset var wddx = "">
<cfwddx action="cfml2wddx" input="#variables#" variable="wddx">
<cfreturn wddx>
</cffunction>
I've never serialized objects via java myself -- I remember reading
that they typically get written to files, so maybe the serialize
function should actually be writing the packet to a file and returning
true instead. I'd have to go look at the java docs for reference to
know... But iirc the "this" scope is also included in the variables
scope for the CFC, so that one cfwddx call should wrap up all your
data which would let you reinstantiate the serialized component later.
hth
s. isaac dealey 954.927.5117
new epoch : isn't it time for a change?
add features without fixtures with
the onTap open source framework
http://www.fusiontap.com
> Doesn't work in CFMX7.
> -----Original Message-----
> From: Adrian Lynch [mailto:[EMAIL PROTECTED]
> Sent: Wednesday, February 23, 2005 4:22 PM
> To: CF-Talk
> Subject: RE: serialize cfc
> Not sure what's happened in CF7, but could you do it with
> Java by making a
> CFC wrapper which implements Serializable?
> Got no idea if my wording is right as it's been a while on
> the Java front.
> Just thought I'd throw the idea out there :O)
> Ade
> -----Original Message-----
> From: toru okada [mailto:[EMAIL PROTECTED]
> Sent: 23 February 2005 20:08
> To: CF-Talk
> Subject: serialize cfc
> maybe i have completely missed it, but i thought that
> cfmx7 was going
> to allow you to serialize a cfc.
> if not, what have others done to persist an object from
> memory?
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Logware (www.logware.us): a new and convenient web-based time tracking
application. Start tracking and documenting hours spent on a project or with a
client with Logware today. Try it for free with a 15 day trial account.
http://www.houseoffusion.com/banners/view.cfm?bannerid=67
Message: http://www.houseoffusion.com/lists.cfm/link=i:4:196196
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Donations & Support: http://www.houseoffusion.com/tiny.cfm/54