Barney I haven't tried it, but are you saying that CFMX7 does *not*
allow for replication of session-scoped CFC instances? Or are you
saying that it does? Thanks.


On Wed, 23 Feb 2005 17:24:37 -0800, Barney Boisvert <[EMAIL PROTECTED]> wrote:
> That won't work.  I belive it'll error on the methods that are in the
> 'this' scope.  You can do some looping and typechecking to get around
> this, of course, but the real problem resides with nested objects,
> because they have to be recursively serialized as well.
> 
> In Java, your serializable object gets passed an output stream that it
> writes to, usually just delegating to the Object class's
> implementation.  Then the serializer (the code doing the serialization
> of the object) does whatever it wants with the data (save to file,
> write to DB, pass over network, etc.).  Deserialization works in
> exactly the reverse fashion.
> 
> The other problem you have to contend with is that to deserialize an
> object, you need to have access to the class that backs it.  I.e. be
> able to instantiate an instance of the class.  Since it's unlikely
> that you'll have your application code somewhere else without also
> having the database hanging around, it's usually easier to just
> persist the object to the DB and then recreate it on the other side.
> The main exception would be for session replication with CFC
> instances, of course.
> 
> cheers,
> barneyb
>

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
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:196256
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

Reply via email to