aspose file tools*
The moose likes Websphere and the fly likes WAS7 System Properties in RAD 7.5.1. Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Products » Websphere
Bookmark "WAS7 System Properties in RAD 7.5.1." Watch "WAS7 System Properties in RAD 7.5.1." New topic
Author

WAS7 System Properties in RAD 7.5.1.

Jörgen Lundberg
Greenhorn

Joined: Dec 08, 2005
Posts: 10
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
internet detective
Marshal

Joined: May 26, 2003
Posts: 30537
    
150

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.


[Blog] [JavaRanch FAQ] [How To Ask Questions The Smart Way] [Book Promos]
Blogging on Certs: SCEA Part 1, Part 2 & 3, Core Spring 3, OCAJP, OCPJP beta, TOGAF part 1 and part 2
Jörgen Lundberg
Greenhorn

Joined: Dec 08, 2005
Posts: 10
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
internet detective
Marshal

Joined: May 26, 2003
Posts: 30537
    
150

The proper way is to use the admin console or a scripting language (jacl/jython) to do so.
Jörgen Lundberg
Greenhorn

Joined: Dec 08, 2005
Posts: 10
I finally found it in the admin interface!
Application servers > myServer > Process definition > Java Virtual Machine > Custom properties
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: WAS7 System Properties in RAD 7.5.1.