• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Adding entry to default system property.

 
Chitra Arjunan
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 11064
13
Android Eclipse IDE Google Web Toolkit Java Mac Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Welcome to the Ranch.
Have you tried System#setProperty(String key,String value)?
 
Chitra Arjunan
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 11064
13
Android Eclipse IDE Google Web Toolkit Java Mac Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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?
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic