|
From: Lev, E. <EL...@ng...> - 2005-04-08 01:16:04
|
Hi, I'm using the simple wrapper way of doing things. One issue that I'm = hitting is that one of the parameters that I need to feed the java app = is the hostname of the machine where the app is running. So in the = original dos bat that would launche tha app it's: start java -Djava.rmi.server.hostname%COMPUTERNAME%... So %COMPUTERNAME% is a system wide environment variable for windows that = tells you the host that you're on (similar to unix's hostname command). In the wrapper.conf, I have the following: wrapper.java.additional.1=3D-Djava.rmi.server.hostname=3D??? For the ??? - I place the hostname of the machine that I'm on and the = service works fine. Can I put %COMPUTERNAME% for the wrapper.conf? In = other words: wrapper.java.additional.1=3D-Djava.rmi.server.hostname=3D%COMPUTERNAME%=20 Localhost is not an option in this case, and the problem is that this = program will be installed on many different machines, so I'm trying to = find a way of avoiding a dynamic creation of wrapper.conf during = install. I'd appreciate any advice/feedback. Eli |