users@glassfish.java.net

(no subject)

From: Roel_D <openindiana_at_out-side.nl>
Date: Sat, 29 Sep 2012 09:29:22 +0200

You can set a unique servername within server.xml. This name is then reported in the server header.

But that will not help you as you can not use this name in requests.

The question is strange, the way you have written it a simple call to 'localhost' would suffice?

Kind regards,

The out-side

Op 29 sep. 2012 om 01:52 heeft forums_at_java.net het volgende geschreven:

> Howdy, I have a fairly simple test web app that is just a jsp that makes
> several calls to a web service. The web service and the test app both live on
> several servers. The problem is that the calls need to be made from the test
> app to the web service on the same server. I am currently handling this by
> putting a set of radio buttons that list all of the known servers and then
> each call will pick up the correct server from that. This is clumsy and does
> not scale. I was hoping I could just put a system property in glassfish whose
> value would give me the proper server name. Then each of my calls could get
> the proper server name without extra interaction from the user to set the
> correct server. So my question is: is there a way to get a glassfish system
> property with a simple call from a jsp? Regards, Tim
>
> --
>
> [Message sent by forum member 'timman']
>
> View Post: http://forums.java.net/node/890822
>
>