on 08-19-2004 10:43 AM
Hi.
I want to set a system property, in order to get it with "System.getProperty(string)" inside my J2EE Web Application.
Where can I set it?
How exactly should I get it?
I'm using release 04 of NetWeaver (WAS ver 6.30), and programming java using the SAP NW Dev Studio 2.0.7
Thanks,
Nir Arazi
You might be able to set this property in the config tool of the J2EE server, in the same place as the JVM settings for -Xmx. The you can get the using the System.getProperty("<my param>");
I hope this helps
Darrell
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Darrell,
thanks for the quick response.
Can you please specify the exact place I should put my variable in?
I'm new at these configurations (new to SAP NW WAS), and I'm drowning in all of the options in the config tool.
I looked for the place you've given me (JVM settings), but could not identify it for sure.
Thanks.
Hi Nir,
if you start the config tool, you see some nodes on the root level. There are two nodes named dispatcher_xxxx and server_xxxx where xxxx is a number. Interesting for you is the server_xxxx node. Clicking on it once, there's a property page on the right side, where the JVM properties mentioned before are listed. If you add a new property here (there's a button at the bottom), it should be accessible by System.getProperty().
But beware, if you are running multiple server nodes in a cluster, i'm not sure, if the property will be available for all server nodes or just for the one you changed it.
Hope that helps.
Regards
Stefan
HI
Just to add the last post, if you have multiple servers then you will need to set this parameter in all server nodes in exactly the same method.
I also think that if you don't have the server set as an NT service (You can't get access to the parameters as they are greyed out), then you should change the cmdline.properties file
Just make sure that the parameter you are settings is not specific to any application you are writing (iView, webservice, etc) but specific to the JVM. If it is required for an application then perhaps this is not the best place to put the parameter.
Just something to keep in mind
D
User | Count |
---|---|
93 | |
10 | |
10 | |
9 | |
9 | |
7 | |
6 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.