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 using 
System.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


View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3922988#3922988

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3922988


-------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems?  Stop!  Download the new AJAX search engine that makes
searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=103432&bid=230486&dat=121642
_______________________________________________
JBoss-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/jboss-user

Reply via email to