-- seems to work OK;
1) I am running CFMX6.1/JRun on Mac OS X Panther (all updates available
applied)
2) Setup 2 server instances cfmx61 and cfmx61b (just duped the existing
cfmx61 instance)
3) JMC: created/initialized cfmx61b
4) Set J2EE session variables in both
5) JMC: clustered cfmx61 and cfmx61b
6) wsconfig: connected cluster to Apache
7) Used a simple program (suggested by Sean Corfield) -- see below
8) Run concurrently in several windows of the same browser
- each window of the same browser pointed to same domain is
treated as the same session
- each window of the same browser pointed to different domain is
treated as different session
9) Run concurrently in several different browsers (Safari, IE, Mozilla)
- different browsers are different sessions
10) JMC: Stop/Start cfmx server instances to see server instance
change in browser windows
HTH
Dick
Sean's program
<cfapplication name="blah"
sessionmanagement="Yes"
sessiontimeout=#CreateTimeSpan(0,0,45,0)#
setdomaincookies="yes">
and
<html>
<body>
<cfif NOT IsDefined("Session.TestA")>
<cfset Session.TestA = 0>
</cfif>
<cfset Session.TestA = Session.TestA + 1>
<cfobject action="" type="java" class="jrunx.kernel.JRun"
name="jr">
<cfset sname = jr.getServerName()>
<cfoutput>
on server #sname# <p>
Session value = #Session.TestA# <p>
SessionID = #Session.SessionID#
</cfoutput>
</body>
</html>
On Mar 2, 2004, at 7:35 AM, Igor Ilyinsky wrote:
> Has anyone been successful in setting up the session replication in
> CFMX 6.1 on Jrun 4?
>
> I'm trying to test it out on 1 machine (for now).
> I have set up 2 server instances (say Server1 and Server2) and
> deployed CFMX on both.
> I configured both instances of CFMX to allow J2EE sessions.
> I clustered those 2 server instances in JRun
> I added each of the instances as a peer to the other, and pointed the
> web root to the same index.cfm file.
>
> The simple INDEX.CFM for testing is as follows:
>
> <CFAPPLICATION name="testapp"
> applicationtimeout="#createtimespan(0,0,5,0)#"
> sessionmanagement="Yes"
> sessiontimeout="#createtimespan(0,0,1,0)#">
>
> <CFIF IsDefined("Session.Host")>
> <CFOUTPUT>#Session.Host#</CFOUTPUT>
> <CFELSE>
> First time here.
> </CFIF>
> <BR><BR>
> <CFSET Session.Host = CGI.HTTP_HOST>
> <CFDUMP var="#Session.Host#">
>
> Now, when I test the two instances (say loclhost:8001 and
> localhost:8002) I never get confirmation that a session is coming form
> the other instance.
>
> The weird thing (or maybe not) is that the JSessionID, CFID and
> CFTOKEN are the same on both calls.
>
> Any input is appreciated.
>
> thanks in advance,
> Igor
> cccfug.org
>
[Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings]

