cancel
Showing results for 
Search instead for 
Did you mean: 

Java web as system information

premb
Product and Topic Expert
Product and Topic Expert
0 Kudos

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

Accepted Solutions (0)

Answers (1)

Answers (1)

former_member698570
Active Participant
0 Kudos

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

premb
Product and Topic Expert
Product and Topic Expert
0 Kudos

Thanks for your reply. Actually I am looking for soemthing like System.getProperty(). I need to get the

netweaver details like version etc from simple JSP. I have already have the JDK, user information etc.

Thanks a lot

Prem