Skip to main content

Access glassfish system properties from a jsp?

No replies
timman
Offline
Joined: 2009-01-14
Points: 0

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