title: How To Autowire a String MVC Session Scoped Bean Into RestEasy Client Interceptor?
body: <p>I am consuming a rest api created using RestEasy in a Spring  MVC based front end.</p>
  
  <p>There are two WAR projects being developed. </p>
  
  <ol>
  <li>RestEasy + Spring IOC based REST API</li>
  <li>Spring MVC + Spring IOC + RestEasy Client Proxy based front end.</li>
  </ol>
  
  <p>I am using RestEasy Client Proxy for calling the rest services. The JAX-RS contract interfaces are shared on both side the RestEasy API side as well as in Spring MVC application.</p>
  
  <p>In a Spring MVC + Spring IOC + RestEasy Client Proxy based project,
  I am trying to autowire a session scoped bean into a RestEasy ClinetInterceptor which is define in a Spring MVC controller.</p>
  
  <p>I have used annotations. But still I get NPE on the Autowired Session Scoped bean inside ClientInterceptor..</p>
  
  <p>How to solve this problem ?</p>