This content has been marked as final.
Show 3 replies
-
1. Re: How do I get my server name at run time????
jaikiran Mar 14, 2006 4:39 AM (in response to ayusman)InetAddress inetAddress = null; try { inetAddress = InetAddress.getLocalHost(); } catch (UnknownHostException une) { logger.error("Exception: " + une.getMessage()); throw new CRMRuntimeException(une); } String serverName = inetAddress.getHostName();
-
2. Re: How do I get my server name at run time????
jaikiran Mar 14, 2006 4:41 AM (in response to ayusman)InetAddress inetAddress = null; try { inetAddress = InetAddress.getLocalHost(); } catch (UnknownHostException une) { logger.error("Exception: " + une.getMessage()); throw new CRMRuntimeException(une); } String serverName = inetAddress.getHostName();
-
3. Re: How do I get my server name at run time????
ayusman Mar 14, 2006 7:10 AM (in response to ayusman)Thanks but can I also achieve this using, jmx-invoker-service also??
TIA
Ayusman