Dave, How exactly does this help in clustered environments? Where do you store the beans and how do you do snapshots?
Russ > -----Original Message----- > From: Dave Carabetta [mailto:[EMAIL PROTECTED] > Sent: Tuesday, August 15, 2006 12:57 PM > To: CF-Talk > Subject: Re: CFDumping a bean > > > -----Original Message----- > > From: Robert Everland III [mailto:[EMAIL PROTECTED] > > Sent: Tuesday, August 15, 2006 11:23 AM > > To: CF-Talk > > Subject: CFDumping a bean > > > > I want to dump a bean, but a dump on a bean only gives me a list of the > > functions. How do you dump a bean? Do you create a function that > > displays the parameter with the value? Or another way? > > Your best bet is to create an global struct (I call mine "instance") > in my init() method and store the instance variables in there. Then I > have a method call getInstanceData() which is just a return of > variables.instance. So, for example, you'd have something like: > > <cfset variables.instance = structNew() /> > <cfset variables.foo = "bar" /> > <cfset variables.poo = "stinks" /> > > and then a method like so: > > <cffunction name="getInstanceData" returntype="struct" access="public" > output="false" hint="I return a snapshot of the instance variables." > /> > <cfreturn variables.instance /> > </cffunction> > > You'll find that if you work in a clustered environment that this > approach will be immensely helpful because CFCs are not sessionable > (so you need to get snapshots). > > Regards, > Dave. > > ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| Introducing the Fusion Authority Quarterly Update. 80 pages of hard-hitting, up-to-date ColdFusion information by your peers, delivered to your door four times a year. http://www.fusionauthority.com/quarterly Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:249875 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4

