| Author |
Adding entry to default system property.
|
Chitra Arjunan
Greenhorn
Joined: Mar 03, 2011
Posts: 2
|
|
Hi All,
I need to include the system property (as a part of default system property. not in a new property file) that can be accessed across application?
Is it possible?
- Chitra
|
 |
Maneesh Godbole
Saloon Keeper
Joined: Jul 26, 2007
Posts: 8441
|
|
Welcome to the Ranch.
Have you tried System#setProperty(String key,String value)?
|
[Donate a pint, save a life!] [How to ask questions] [Onff-turn it on!]
|
 |
Chitra Arjunan
Greenhorn
Joined: Mar 03, 2011
Posts: 2
|
|
|
Thank.. .yeah i tried that, but the property cannot be shared by other applications, until the other application knows the name of the property file
|
 |
Maneesh Godbole
Saloon Keeper
Joined: Jul 26, 2007
Posts: 8441
|
|
A system property is a global variable. You do not need the properties file. All your application needs is the name of the property.
PS. Do your applications share the same JVM?
|
 |
 |
|
|
subject: Adding entry to default system property.
|
|
|