Win a copy of Think Java: How to Think Like a Computer Scientist this week in the Java in General forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

WAS7 System Properties in RAD 7.5.1.

 
Jörgen Lundberg
Greenhorn
Posts: 10
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I haven't used WASD/RAD and the Websphere stuff in a while so you'll have to bear with me...

I have an old project in WSAD 5.1.2 with a server configuration that's in a .wsi-file. If I double click it I get the server configuration editor and on the environment tab there is a System Properties section with some name-value pairs.

Now I have opened the same project in RAD 7.5.1. Where can i input the same name-value pairs for a server in RAD 7.5.1? There's no "environment-tab" if I double-click the server.
 
Jeanne Boyarsky
author & internet detective
Marshal
Posts: 34396
346
Eclipse IDE Java VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Jörgen,
In RAD/RSA 6, IBM switched to using a real server rather than a test environment. This means in RAD 7.5 you need to start the server, right click it to launch the admin console and set the properties there. Pretty much the only thing you can do in the RSA editor is change the port to point to the right server.
 
Jörgen Lundberg
Greenhorn
Posts: 10
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks Jeanne,
The old app I'm porting needs some properties in the system properties of the JVM set so that they can be retrieved with System.getProperty(...) and I found a dirty way of making it work. So, until I find out how to do it the proper way, if there is a proper way, I came up with this hack:

After doing some "find" and "grep" in the profile directory of the appserver i found a file called:
runtimes\base_v7\profiles\<profilename>\config\cells\<cellname>\nodes\<nodename>\servers\<servername>\server.xml

In at the bottom of server.xml there is a <jvmEntries xmi:id="JavaVirtualMachine_.... tag.

Inside it you can add system properties tags on the format:
<systemProperties xmi:id="someId" name="name of your property" value="the value" required="false"/>

Anyone who knows how to to this the proper way and has read all the way down here must be crying by now...
But, it seams to work...
 
Jeanne Boyarsky
author & internet detective
Marshal
Posts: 34396
346
Eclipse IDE Java VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
The proper way is to use the admin console or a scripting language (jacl/jython) to do so.
 
Jörgen Lundberg
Greenhorn
Posts: 10
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I finally found it in the admin interface!
Application servers > myServer > Process definition > Java Virtual Machine > Custom properties
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic