cancel
Showing results for 
Search instead for 
Did you mean: 

Obtaining the SAP NetWeaver version programmatically

Former Member
0 Kudos

Hello,

Can anyone tell me if (and how) I can obtain the version of the SAP NetWeaver application server from a Java program?

I have an application running on several platforms, one of which is SAP NetWeaver. The application has a system information page in which we show system information like OS, RDBMS, etc. I would also like to add the name and version of the application server the application is running on.

Any help is greatly appreciated.

Thanks!

Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member
0 Kudos

Hi,

Did you try : http:<hostname>:<port>-> System Information-> All Components.

Or

You can access it directly by http://sknxdsap01as:8100/monitoring/SystemInfo , section Software Components

Rgds,

Soujanya

Former Member
0 Kudos

Thank you for your response, but that's not exactly what I'm after.

What I would like to know is how to obtain the version through a Java program.

On e.g. JBoss this is easily done by using an MBean, retrieving the version:

&nbsp;&nbsp; MBeanServerConnection server = (MBeanServerConnection)new InitialContext().lookup("jmx/rmi/RMIAdaptor");

&nbsp;&nbsp; ObjectName on = new ObjectName("jboss.system:type=Server");

&nbsp;&nbsp; Object version = server.getAttribute(on, "VersionNumber");

I would like to use something similar for running on the SAP NetWeaver server.

Edited by: lfeijtel on Feb 10, 2011 11:22 AM

Former Member
0 Kudos

I'll answer my own question.

There is a System property that contains the version number and patch level of the SAP NetWeaver server.

It can be obtained through this line of code:

String version = System.getProperty("SAP_J2EE_Engine_Version");