On Monday, Nov 4, 2002, at 09:02 US/Pacific, Brook Davies wrote:
> Can any one explain how you would use client variables and persistence 
> with
> a CFC? Raymond Camden said it was possible, but I'm not sure how it 
> would
> work.

Well, you can't store complex data in client scope. You *can* store CFC 
instances in session scope (and other shared scopes) although you 
cannot generate output from a CFC in a shared scope (see many other 
threads on this issue). I didn't see Ray's post about this (or wherever 
he said it was possible).

> Interestingly, I could not find any mention of using the client scope 
> with
> CFC's from macromedia. Does this mean it is not supported?

See above.

> Is the client
> variable method of maintaining state being replaced by J2EE sessions? 
> Is
> J2EE sessions even the right term for this new way of storing session 
> state?

Well, using J2EE sessions allows you to leverage the underlying 
application server's machinery so you can take advantage of JRun's 
session management. That's the route my team are going, looking to use 
session fail over etc. We're not using client scope at all (partly 
because we don't want the overhead associated with DB access, partly 
because we want to store complex data in session scope).

"SOAP is not so much a means of transmitting data
  but a mechanism for calling COM objects over the Web."
-- not Microsoft (surprisingly!)

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Archives: http://www.houseoffusion.com/cf_lists/index.cfm?forumid=4
Subscription: 
http://www.houseoffusion.com/cf_lists/index.cfm?method=subscribe&forumid=4
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq
Get the mailserver that powers this list at http://www.coolfusion.com

Reply via email to