on 07-23-2008 11:36 PM
Hi All,
Do you have any idea how to get the system environment variables for application server programatically in java? I have got the sap web service to get that, but i do not want that as it needs authorization to fetch the info. I need something like
java properties.
Thanks in advance
Prem
Hi,
do you have a Servlet? Is it a workaround for you to define the parameters in your web.xml??
Something like:
<servlet>
<servlet-name>
my_servlet
</servlet-name>
<init-param>
<param-name>param_name</param-name>
<param-value>param_value</param-value>
</init-param>
</servlet>
See: http://www.esus.com/javaindex/j2ee/servlets/servletreadenv.html
or do you really need the Environment Variables of your OS?
I also found these entries that might help you:
Maybe it helps
http://www.rgagnon.com/javadetails/java-0150.html
http://www.rgagnon.com/javadetails/java-0466.html
http://java.sun.com/developer/JDCTechTips/2001/tt1204.html
Cheers
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
83 | |
10 | |
10 | |
9 | |
7 | |
6 | |
5 | |
5 | |
4 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.