cancel
Showing results for 
Search instead for 
Did you mean: 

setting java networking properties

Former Member
0 Kudos

Hello

using configtool.bat I changed the java properties of the server node adding the following variables

-Dhttp.proxyHost=myproxy

-Dhttp.proxyPort=12345

-DproxySet=true

and I restarted the NW-j2ee instances.

while debugging my WS-application the java method System.getProperty("http.proxyHost") (and of course getPropertiy(http.proxyPort) a.s.o.) returns null.

can anybody tell me why?

Accepted Solutions (0)

Answers (3)

Answers (3)

Former Member
0 Kudos

Hi, Fabio,

In case you do not see the new configured properties in instance.properties file, it seems that the changed properties are not written in the data base. You have to restart the whole cluster, otherwise the change is not consistent and the properties wont be put into the DB.

Best regards,

Galya

Georgi_Mihaylov
Explorer
0 Kudos

Hi Fabio,

Maybe the properties are not set?

There is a small monitoring application under alias /sap/monitoring/SystemInfo withch displays information about the J2EE engine and there you can also check with what properties the dispatcher and server nodes were started.

greetings Georgi

Former Member
0 Kudos

Hi Georgi

thank you for the hint. I did what you suggested and in fact I don't find the new variables. This is exactly what I was expecting. But I still don't have a clue! Again what I did:

1. defined variables (-Dvaliable1=value1 uso.) using configtool.bat in clusted-data/instance_ID.../Servers General

2. restart

3. check in sap/monitoring/SystemInfo -> NOK

4. in my application System.getProperty(valiable1) -> NOK

further Infos:

1. NW 7.0 SP 10

2. java1.4.2_16

3. in confitool.bat are the variables always there.

thank you again

Georgi_Mihaylov
Explorer
0 Kudos

Hi Fabio,

this is the correct sequence - add the variable , save in config tool and restart or the engine.

During the start saved data is taken from DB and it can be seen file

\usr\sap\J2E\JC01\j2ee\cluster\instance.properties. There is a raw in it ID16574850.JavaParameters with the java parameters.

Can you check if your variable is there to see if the problem comes in getting data from DB or after the start of the server node.

I will also ask a collegue from SAP they can help.

greetings Georgi

Former Member
0 Kudos

Hi

Is there anybody, who can suggest me a solution or an hint?