Re: CFC is server scope and session calls to it...

2007-07-20 Thread John Skrotzki
Thanks all, that is what I figured just wanted to make sure my thinking was on 
the right path and a small part want to see if I could be a bit lazy lol.

~|
CF 8 – Scorpio beta now available, 
easily build great internet experiences – Try it now on Labs
http://www.adobe.com/cfusion/entitlement/index.cfm?e=labs_adobecf8_beta

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:284277
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4


RE: CFC is server scope and session calls to it...

2007-07-20 Thread Dave Watts
> Hi!  Question, I have several cfc's stored in server scope ( 
> yes, I own server and it is for a intranet and I use vars ) 
> that are the "guts" of my app.  I have a pretty clear 
> understanding of how things work except one situation.  
> 
> When a call is made to a method with arguments passed in, 
> currently I am passing in my session.user.ident ( where I 
> store the user identity ) explicitly.  I was wondering if I 
> am able to reference the session scope implicitly in the cfc 
> method directly without causing erroneous user.idents 
> references.  I would assume that I would have to do a lock?  
> What kind?  Or is it better to pass in the session directly 
> into the cfc method using the arguments?  Am I making sense? Lol

I'm not sure what you mean exactly by passing session.user.ident explicitly,
but I assume that you mean something like this:



That would be strongly preferable to referencing the Session scope directly
within your CFC instance, since doing so tightly couples your component to
its caller.

Dave Watts, CTO, Fig Leaf Software
http://www.figleaf.com/

Fig Leaf Software provides the highest caliber vendor-authorized
instruction at our training centers in Washington DC, Atlanta,
Chicago, Baltimore, Northern Virginia, or on-site at your location.
Visit http://training.figleaf.com/ for more information!

This email has been processed by SmoothZap - www.smoothwall.net


~|
Upgrade to Adobe ColdFusion MX7
Experience Flex 2 & MX7 integration & create powerful cross-platform RIAs
http://www.adobe.com/products/coldfusion/flex2/?sdid=RVJQ 

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:284274
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4


Re: CFC is server scope and session calls to it...

2007-07-20 Thread Cameron Childress
Definitely I would either just pass the entire user object in or use a 
session facade to instantiate the user ubject from within the server 
scoped CFC.  The primary reason I would choose one over the other would 
be that explicitly passing in the user object would allow you to 
potentially pass in ANY user object (logged in user or not), while using 
a session facade pretty much will tightly couple that server scope CFC 
to the logged in user and you will have to refactor to allow it to 
support other user objects.

-Cameron

Robertson-Ravo, Neil (RX) wrote:
> I would, if at all possible for designs sake pass in the session data as an 
> argument and to not use / explicitly reference the session scope within.
>   
> -Original Message-
> From: John Skrotzki
> To: CF-Talk
> Sent: Fri Jul 20 22:45:39 2007
> Subject: CFC is server scope and session calls to it...
>
> Hi!  Question, I have several cfc's stored in server scope ( yes, I own 
> server and it is for a intranet and I use vars ) that are the "guts" of my 
> app.  I have a pretty clear understanding of how things work except one 
> situation.  
>
> When a call is made to a method with arguments passed in, currently I am 
> passing in my session.user.ident ( where I store the user identity ) 
> explicitly.  I was wondering if I am able to reference the session scope 
> implicitly in the cfc method directly without causing erroneous user.idents 
> references.  I would assume that I would have to do a lock?  What kind?  Or 
> is it better to pass in the session directly into the cfc method using the 
> arguments?  Am I making sense? lol
>
> Thanks.
>   


~|
Macromedia ColdFusion MX7
Upgrade to MX7 & experience time-saving features, more productivity.
http://www.adobe.com/products/coldfusion?sdid=RVJW

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:284273
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4


Re: CFC is server scope and session calls to it...

2007-07-20 Thread Robertson-Ravo, Neil (RX)
I would, if at all possible for designs sake pass in the session data as an 
argument and to not use / explicitly reference the session scope within.









"This e-mail is from Reed Exhibitions (Gateway House, 28 The Quadrant, 
Richmond, Surrey, TW9 1DN, United Kingdom), a division of Reed Business, 
Registered in England, Number 678540.  It contains information which is 
confidential and may also be privileged.  It is for the exclusive use of the 
intended recipient(s).  If you are not the intended recipient(s) please note 
that any form of distribution, copying or use of this communication or the 
information in it is strictly prohibited and may be unlawful.  If you have 
received this communication in error please return it to the sender or call our 
switchboard on +44 (0) 20 89107910.  The opinions expressed within this 
communication are not necessarily those expressed by Reed Exhibitions." 
Visit our website at http://www.reedexpo.com

-Original Message-
From: John Skrotzki
To: CF-Talk
Sent: Fri Jul 20 22:45:39 2007
Subject: CFC is server scope and session calls to it...

Hi!  Question, I have several cfc's stored in server scope ( yes, I own server 
and it is for a intranet and I use vars ) that are the "guts" of my app.  I 
have a pretty clear understanding of how things work except one situation.  

When a call is made to a method with arguments passed in, currently I am 
passing in my session.user.ident ( where I store the user identity ) 
explicitly.  I was wondering if I am able to reference the session scope 
implicitly in the cfc method directly without causing erroneous user.idents 
references.  I would assume that I would have to do a lock?  What kind?  Or is 
it better to pass in the session directly into the cfc method using the 
arguments?  Am I making sense? lol

Thanks.



~|
Upgrade to Adobe ColdFusion MX7
Experience Flex 2 & MX7 integration & create powerful cross-platform RIAs
http://www.adobe.com/products/coldfusion/flex2/?sdid=RVJQ 

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:284272
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4


CFC is server scope and session calls to it...

2007-07-20 Thread John Skrotzki
Hi!  Question, I have several cfc's stored in server scope ( yes, I own server 
and it is for a intranet and I use vars ) that are the "guts" of my app.  I 
have a pretty clear understanding of how things work except one situation.  

When a call is made to a method with arguments passed in, currently I am 
passing in my session.user.ident ( where I store the user identity ) 
explicitly.  I was wondering if I am able to reference the session scope 
implicitly in the cfc method directly without causing erroneous user.idents 
references.  I would assume that I would have to do a lock?  What kind?  Or is 
it better to pass in the session directly into the cfc method using the 
arguments?  Am I making sense? lol

Thanks.

~|
Upgrade to Adobe ColdFusion MX7
The most significant release in over 10 years. Upgrade & see new features.
http://www.adobe.com/products/coldfusion?sdid=RVJR

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:284271
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4