• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Setting System Properies in WAS 5.0

 
Ranch Hand
Posts: 39
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Does anyone know how to set a system property (-D options) in the WAS 5.0
server?

I have it set in my test server on WSAD under the environment tab under
system properties.

When I move to my real server, WAS, I am not sure where to set it.


Thanks,
Terrence
 
Ranch Hand
Posts: 4982
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Why dont you setup your server via the Web interface provided by WAS, instead of using the command?

Nick
 
Ranch Hand
Posts: 41
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Once you are in the admin console, choose the server you want to set up the custom property on. From there, check the "Custom Properties" hyperlink.

This will bring you to a screen where you can enter in custom properties for the entire server.

For example, I have a system property call "ENVIRONMENT" that I set to "dev" under WSAD and "prod" on WAS. In my properties files, I will have two endings for the same property that is called based on the value of "ENVIRONMENT". For example,
database.url.dev=jdbc:oracle:thin:@dev_oracle:1521:dev

and

database.url.prod=jdbc:oracle:thin:@prod_oracle:1521:prod


Hope this helps.
[ August 18, 2004: Message edited by: Ron Perich ]
 
Terrence White
Ranch Hand
Posts: 39
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I got it to work by placing the property under this location:

Application Servers > server1 > Process Definition > Java Virtual Machine > Custom Properties

I am now able to access my property like this in my code:




If I place it in this location:

Application Servers > server1 > Custom Properties

I cannot access the property using System.getProperty()

How do you access yours?
 
What a stench! Central nervous system shutting down. Save yourself tiny ad!
a bit of art, as a gift, that will fit in a stocking
https://gardener-gift.com
reply
    Bookmark Topic Watch Topic
  • New Topic