This week's book giveaway is in the Kotlin forum.
We're giving away four copies of Kotlin in Action and have Dmitry Jemerov & Svetlana Isakova on-line!
See this thread for details.
Win a copy of Kotlin in Action this week in the Kotlin forum!
  • 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: 66188
151
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.
 
Consider Paul's rocket mass heater.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!