This content has been marked as final.
Show 2 replies
-
1. Re: Java Web Start
hejl Feb 10, 2006 2:19 PM (in response to moritz.schmidt)Hi Moritz,
I don't know of a way to find out which Server the app was loaded from, if one is using JWS. But since you need more info anyway (like, the port number) why not specify the info needed in the jnlp file?
For example<property name="jboss.server" value="serverNameOrIP"/> <property name="jboss.port" value="portNum"/>
That way, you can access the info usingSystem.getProperty("jboss.server") and System.getProperty("jboss.port")
to retrieve the values.
This also has the added benefit that you can still start your app without JWS, simply by adding-Djboss.server=serverName -Djboss.port=portnum
to the command line (nice for debugging the client).
Not exactly what you're asking for, but maybe that helps.
Martin -
2. Re: Java Web Start
moritz.schmidt Feb 12, 2006 9:49 AM (in response to moritz.schmidt)Hi Martin,
this is maybe a solution. I think this will help.
Thanks.
Moritz