cancel
Showing results for 
Search instead for 
Did you mean: 

How to get SID (SAPSYSTEMNAME) property of j2ee engine

0 Kudos

Hello colleagues,

could anybody help us with the following point:

in our development we have to determine the SAP system ID (SID)of j2ee server instance.

As far as I remember in ABAP world there is a corresponding system variable.

Unfortunately I failed to find something like that for j2ee server (i have to note we are talking about 6.40)

Sorry if my question is a common place

Thank you in advance,

Regards,

Ilya Rudakov

Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member
0 Kudos

Hi,

check the profile files located in:

\usr\sap\<SID>\SYS\profile directory. The SAPSYSTEMNAME parameter appears in the DEFAULT.PFL or any of the instance profiles <SID>_<INSTANCENAME>_<host>

Regards,

Ivo

0 Kudos

Hi Ivo,

Thanks for your answer.

But I hope there is a certain way to get this property via a j2ee server API.

is it a vain hope?

Regards,

Ilya

Former Member
0 Kudos

Hi Ilya,

It seems that I didn't get your question right. Sorry about that.

I have no idea about what APIs to use to get the SAPSYSTEMNAME parameter. My <b>guess</b> is, however, that this API is part of the J2EE Engine core and therefore not available for external developments.

But... let's wait if somebody knows that for sure!

Regards,

Ivo

Former Member
0 Kudos

Ilya,

I do not know whether it is an "official" way, but the following work for us:


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

Regards,

VS