Beauty, thanks.

Stace

-----Original Message-----
From: Sean A Corfield [mailto:[EMAIL PROTECTED]
Sent: Friday, August 15, 2003 2:20 PM
To: [EMAIL PROTECTED]
Subject: Re: [CFCDev] CFC Persistance

On Friday, Aug 15, 2003, at 10:08 US/Pacific, Stacy Young wrote:
> As a follow-up question...If we're load balancing across two machines
> *and* have some CFCs in session scope. We're still ok if the connector
> is set to "sticky" sessions and replication is not turned off in JRun?

I would definitely recommend sticky session to avoid having request
bounce from server to server (and then also having to deal with the CFC
session replication issue).

I would only turn session replication on if it is critical to your
application that losing a server does not cause loss of session. I
don't believe many systems really require that.

As for handling the CFC session replication issue, no error is thrown
but you can detect that you got a failed replication:

        <cfif structKeyExists(session,"myObject") and
                not isObject(session.myObject)>
                <!---
                        need to recreate session.myObject because
                        we lost a server and the replication failed
                        for this CFC
                --->
        </cfif>

Hope that helps?

Sean A Corfield -- http://www.corfield.org/blog/

"If you're not annoying somebody, you're not really alive."
-- Margaret Atwood

----------------------------------------------------------
You are subscribed to cfcdev. To unsubscribe, send an email
to [EMAIL PROTECTED] with the word 'unsubscribe cfcdev'
in the message of the email.

CFCDev is run by CFCZone (www.cfczone.org) and supported
by Mindtool, Corporation (www.mindtool.com).


AVIS IMPORTANT:
-------------------------------
Les informations contenues dans le present document et ses pieces jointes sont 
strictement confidentielles et reservees a l'usage de la (des) personne(s) a qui il 
est adresse. Si vous n'etes pas le destinataire, soyez avise que toute divulgation, 
distribution, copie, ou autre utilisation de ces informations est strictement 
prohibee. Si vous avez recu ce document par erreur, veuillez s'il vous plait 
communiquer immediatement avec l'expediteur et detruire ce document sans en faire de 
copie sous quelque forme.

WARNING:
-------------------------------
The information contained in this document and attachments is confidential and 
intended only for the person(s) named above. If you are not the intended recipient you 
are hereby notified that any disclosure, copying, distribution, or any other use of 
the information is strictly prohibited. If you have received this document by mistake, 
please notify the sender immediately and destroy this document and attachments without 
making any copy of any kind.

----------------------------------------------------------
You are subscribed to cfcdev. To unsubscribe, send an email
to [EMAIL PROTECTED] with the word 'unsubscribe cfcdev'
in the message of the email.

CFCDev is run by CFCZone (www.cfczone.org) and supported
by Mindtool, Corporation (www.mindtool.com).

Reply via email to