cancel
Showing results for 
Search instead for 
Did you mean: 

How to find out if J2EE Engine is PROD or TEST or DEV System

sven_rickelt
Explorer
0 Kudos

Hi,

I want to get the system state / system type (even if si PROD or TEST or DEVELOP system) of the J2EE-Engine at runtime, because to use different properties.

How can I find this information and how can I get this info in Java?

Thanks for help.

Sven Rickelt

we use: SAP Web AS 6.40 SP 13 (Netweaver 2004)

Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member
0 Kudos

Hi Sven,

you can find info on your system on:

<a href="http://<server>:<port>/sap/monitoring/SystemInfo">http://abc-rhcl01.abacosoft.it:50000/sap/monitoring/SystemInfo</a>

Regards,

Gianluca Barile

sven_rickelt
Explorer
0 Kudos

Hi Gianluca,

thanks, but I want to know <b>in my application at runtime</b> on wihch server (for example PROD or TEST or DEVELOP) it runs, because I would use different properties for PROD, TEST and DEVELOP System.

When I use NWDI, I must store all properties (Test and Prod a.s.o) in my WAR/EAR and then transport it from Develop to Consolidation to Test and then to Prod.

My application must know, which properties right to use.

Best regards,

Sven Rickelt

Former Member
0 Kudos

I think this is not possible, but if you found a method I would know it.

Regards

Gianluca Barile

sven_rickelt
Explorer
0 Kudos

Hi Gianluca,

one method I found is "to ask" System.getProperty("j2ee.dbhost") or System.getProperty("SAPSYSTEMNAME"), but I don't know if it is the right way.

So I must store the servernames in my properties (f.e.

dev=mypcname
test=testservername

a.s.o.)

but I think there must be a method to configure the server, that I can ask it and the answer is "PROD" or "TEST" and I not must know the servernames...

Best Regards

Sven Rickelt

sven_rickelt
Explorer
0 Kudos

Hi all,

for answer see:

Regards

Sven