title: How to store a value globally and retrieve in other classes in Java
body: <p>I need to store a value which is passed from another web application in a variable and need to retrieve the same in other classes. I tried by storing in session and retrieving the same, but it is impacting a lot of files in the application which I don't want.</p>
  
  <p>Also tried by storing it in a static variable by using getter and setter methods. Even this doesn't work as the value which is passed from other application will be changing/dynamic.</p>
  
  <p>Can anyone suggest how to achieve this in Java/Using Spring framework.</p>
  
  <p>I am new bie in Java. Any help would be appreciated.</p>