title: How to keep properties values in session scope?
body: <p>I am using spring. i have an externalized properties file. i am loading it as below.</p>
  
  <pre><code> &lt;context:property-placeholder location="file:///C:/some.properties"/&gt;
  </code></pre>
  
  <p>Now how can i keep properties in session as key-value pair ?</p>
  
  <p>i tried writing a listener which extends ServletContextListener.</p>
  
  <pre><code>public class Sample implements ServletContextListener {
  @Override
      public void contextInitialized(ServletContextEvent event) {
  //here i tried to get the values of properties file as below.
  InputStream stream = event.getServletContext().getResourceAsStream("C:\\some.properties");
  //But here stream is coming as null
  
  
  }
  
  }
  </code></pre>
  
  <p>Am i missing anything here?</p>
  
  <p>Thanks!</p>