Skip to Content
0
Nov 13, 2012 at 02:15 PM

How to I find out where my code is running?

35 Views

We are using JPA. If we want to debug, we need to do this on the Local SAP NetWeaver Cloud server. When running on the local server, we currently comment out this line - which we need when running on SAP NetWeaver Cloud. One idea was to find out in our coding on which server we are running.

1. Is there a way to get this information?

2. Is there a better way to run the code on the local SAP NetWeaver Cloud without changing the coding?

Thanks Frank

entityManagerProperties.put(

"eclipselink.target-database", "com.sap.persistence.platform.database.HDBPlatform");