Skip to Content
author's profile photo Former Member
Former Member

How to get WAS Installation Number and System Id?

Anyone knows how to get Netweaver WAS Installation number and system id using java? I need these numbers to generate a unique key.

Any help would be much appreciated. Thanks.

Add a comment
10|10000 characters needed characters exceeded

Related questions

2 Answers

  • Best Answer
    Posted on May 23, 2006 at 11:33 AM

    Hi Julius,

    There's the most trivial and easiest way to obtain the SID:

    String systemID = System.getProperty("SAPSYSTEMNAME"); 

    Best regards, Maksim Rashchynski.

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Jun 06, 2006 at 07:37 PM

    Hi Maksim,

    I'm trying to do the same thing in webdynpro, but every time I get the 'ClassCastException'.

    InitialContext initialCtx = new InitialContext();

    MBeanServer mbs = (MBeanServer)initialCtx.lookup("jmx");

    sap.com/jmx"/>

    sap.com/tc~jmx"/>

    the JNDI look up has this entry -

    + jmx

    + [Class Name] : com.sap.pj.jmx.server.interceptor.MBeanServerInterceptorChain

    + [Object Value] : NON Serializable Object

    J2EE Engine is 6.40.

    could you please tell me what I'm missing.

    Thanks in advance,

    Rajiv.

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.