title: How do I inject a Spring bean into Apache Wink?
body: <p>How do I inject Spring-managed beans into Apache Wink?</p>
  
  <p>I have a wink application started in <code>web.xml</code> that starts fine if I stub out a dummy data service <code>@Autowired</code> under an interface within it. I have implemented a JPA service to provide the data implementing the same interface, set up via Spring 2.5.6. This works fine in isolation too. </p>
  
  <p>I think I just need to inject my JPA service instead of my dummy service, but I can't figure out how to do that - tried <code>@Service</code> annotations and <code>&lt;context:annotation-driven&gt;</code>; tried manually injecting the JPA service. It's like Wink and Spring aren't aware of each other.</p>
  
  <p>The <a href="https://cwiki.apache.org/WINK/55-spring-integration.html" rel="nofollow">Wink docs do mention a Spring integration</a> , however this talks about an "Apache Wink core context file" which I can't find mention of elsewhere in the Wink docs.</p>
  
  <p>Anyone got any ideas?</p>