• Post Reply Bookmark Topic Watch Topic
  • New Topic

System.getProperty() in webapp  RSS feed

 
J Rosetto
Greenhorn
Posts: 21
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

Is there a way of using System.getProperty() or System.setProperty() in a webapp in an encapsulated way (i.e. so that the global properties of one webapp don't interfere with those in another?).

Alternatively is there something within the J2EE architecture which would provide me with this functionality?
 
Bear Bibeault
Author and ninkuma
Marshal
Posts: 65833
134
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I guess we need more details regarding the source of the data you are trying to interact with.

Generally I'd say that the type of thing you are looking for are application-scoped variables set into application scope at startup time, most probably by a context listener.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!