That returns the name of the JRun server instance, not the machine's name. <cfexecute name="hostname" /> will do what you want on *nix platforms. Windows probably has something similar, or you might even be able to get it from a JVM system property, but I don't know. If you want to stick with what you've got, you could rename the JRun server instance to be unique in the cluster (server1 runs default1, server2 runs default2, etc.).
cheers, barneyb On 1/24/06, Duncan <[EMAIL PROTECTED]> wrote: > Hi all, > > We run a load balanced env with 6.1 standalone edition, and I was just > setting up a cferror template and trying to identiy the server that > the template or error occurs on. > > I used this: > > <cfobject action="create" type="java" class="jrunx.kernel.JRun" name="jr"> > <cfset servername = jr.getServerName()> > > but it always returns 'default'. How can I change this? > > Thanks! > -- > Duncan I Loxton -- Barney Boisvert [EMAIL PROTECTED] 360.319.6145 http://www.barneyb.com/ Got Gmail? I have 100 invites. ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| Message: http://www.houseoffusion.com/lists.cfm/link=i:4:230388 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=89.70.4 Donations & Support: http://www.houseoffusion.com/tiny.cfm/54