> Although I'm aware of j2ee session variables, it never 
> occurred to me to consider that someone might consider them a 
> different type of session variable, so I totally didn't 
> understand the question.  He did finally tell me about the 
> two "types" of session variables.

As you say, they aren't two different types of session variables. There is
only one type.

> Unfortunately, it probably made *me* look ignorant in *their* eyes.

You can always take the opportunity to explain in more detail, of course,
which would demonstrate to them that you know what you're talking about.

> I also suffered on the fact that I don't make use of cflock 
> in any of my open source apps. As you all know, the need for 
> cflock has been heavily debated over the years, and it was 
> generally accepted that you had to lock everything in the CF5
>  and earlier days... but it wasn't as necessary (if at all) in 
> CF6 but it seems we've slowly moved back towards "cflock is a 
> good thing"...

I think that people have unnecessarily complicated this. It's actually quite
simple.

If you're using CF 5 or earlier, and you're using Application/Session/Server
scopes, you need to lock all access to these variables to ensure system
stability, and if you're concerned about incorrect values resulting from
race conditions.

If you're using CFMX 6 or later, you need to lock access to these variables
if you're concerned about incorrect values resulting from race conditions.
You don't need to lock access for any other reason.

CFLOCK is a good thing, if you need it. It's overhead if you don't. It's the
programmer's job to determine whether it's needed.

> Although he said he'd heard you didn't need to lock j2ee 
> session variables.

You're less likely to need to lock using CFMX, and you may use J2EE sessions
with CFMX. To that minimal extent, he's correct. But without understanding
why he's correct to that minimal extent, he won't be able to implement
locking correctly.

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:283897
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4

Reply via email to