Well heres the thing, we arent using clusters, we have 4 machines with
6.1 standalone on. They are 'load balanced' by a foundry server.

I suppose dI should mention that basically we are dealing with 4
individual servers not linked by JRun at all. They are basically 4
machines that are monitored by the Foundry and it directs traffic to
the least busy.

If I may rephrase, how do I get the windows server name on a 6.1
standard installation?

On 1/25/06, Barney Boisvert <[EMAIL PROTECTED]> wrote:
> 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:230389
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

Reply via email to