>by CFMX cluster you are speaking of SOFTWARE based clustering in JRun, not a >load balancer correct? Try this code below, it will tell you what instance >you are on. I use this. Its a real PITA though to make sure you are on >instance foo or goo. > > ><cfobject action="create" type="java" class="jrunx.kernel.JRun" name="jr" /> ><cfset servername = jr.getServerName() /> ><p><cfoutput>JRun Server Name: #servername#</cfoutput></p
Yes, I'm currently using that code to tell me *which* machine I'm actually updating; However I just have to keep hitting the page until I have eventually hit both Machine A and Machine B (it's luck of the draw, since I can *know* which machine I'm on, but I can't *specify* which machine to be on). This is obviously not ideal, but is my current, temporary workaround. >Now, another solution, one I am getting ready to use: In my JRun cluster, I >have the internal webserver turned on for each instance. You need to do this >anyway to get at the CFAdmin tool per instance. I am planning on dropping >code in the internal server web root for each instance to refresh app scopes >and such. > DK We were thinking of going that route, too, since that's the only way we can think of to hit a specific instance. It's a pain to have to do this for app-specific (not general CFMX) reloading, though. (Some of my apps have different interpretations for what "reloading" the application means: some purge app-specific files, or do other fine-grained things.) Since I already have a hardware load balancer, it would be ideal if I could keep sharing J2EE *sessions* but not the application themselves. I'd sure like a definitive answer, if anybody knows it. If this isn't possible, is there some other way to achieve the same overall goal? Thanks for your reply, Douglas, it's nice to know that somebody else is giving this J2EE session sharing thing a shot. BTW, were you surprised to see your Machine A serving up Machine B's code when you first enabled session sharing? I sure was. :-/ Thanks, Jamie ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| Discover CFTicket - The leading ColdFusion Help Desk and Trouble Ticket application http://www.houseoffusion.com/banners/view.cfm?bannerid=48 Message: http://www.houseoffusion.com/lists.cfm/link=i:4:210259 Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4 Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4 Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4 Donations & Support: http://www.houseoffusion.com/tiny.cfm/54

