You could also do very similar things with something like Transfer, or Reactor.
You don't necessarily have to use Object serialisation to do it. Mark On Dec 13, 2007 5:27 PM, Mike Kear <[EMAIL PROTECTED]> wrote: > This is excellent news for me. I have to rebuild a site in CF8 in > the next few months, and I was thinking about how i was goign to > handle shopping cart information. > > I think i'll put the shopping cart in a bean thats held in the session > scope ( or maybe client scope - haven't decided) but since i can > serialise the whole shopping cart in one go (if i take care designing > the bean) it wil simplify the persisting and recalling of the cart > object. I haven't thought it all through yet, but i'm thinking it > will also simplify the storage and recall of invoices, orders, and > shipping notes too. > > The system I inherited and which we're replacing has multiple queries > for such things. To recall an order, for example there's a query to > get the customer details, then another to get orders entered by that > customer, then another to get the SKUs and quantities of the items on > the order in question, and, believe it or not, yet another to get the > product descriptions and prices. To do all of that in one trip to > the database would be a big leap forward. > > > > Cheers > Mike Kear > Windsor, NSW, Australia > Adobe Certified Advanced ColdFusion Developer > AFP Webworks > http://afpwebworks.com > ColdFusion, PHP, ASP, ASP.NET hosting from AUD$15/month > > > On 12/13/07, Rakshith N <[EMAIL PROTECTED]> wrote: > > Brian, > > Though a valid concern, just wanted to make it clear that the > > deserialized cfc will not go out of sync when a new method is added > > while it was serialized. This is because, the methods are never > > serialized. It's only the instance level data associated with the cfc > > instance, such as the variables in the this scope and in the var scope > > of the cfc, that get serialized. The methods are always available in the > > cfc template. Hence, the methods are not serialized. > > > > So, once the cfc instance is back into action when it is deserialized, > > the new methods will be available to the cfc from the .cfc template. > > > > The best part about CFC serialization is it can handle complex circular > > references as well. That is, if a cfc has a reference back to the itself > > in the this scope, then you can expect the same circular reference to be > > maintained once the cfc is deserailized. > > > > And yes, we are working on the serializing array and query objects > > within the cfc scopes. That issue will be fixed soon. > > > > Thanks, > > Rakshith > > Adobe ColdFusion Team > > > > ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to date Get the Free Trial http://ad.doubleclick.net/clk;160198600;22374440;w Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:294664 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4

