title: Migrating from Spring-DM & Spring 3 to Blueprint & Spring 4 on Karaf
body: <p>I have legacy app written in Java 7 using Spring 3.2.18 that runs on Karaf 2.4.4 together with Spring-DM. I plan to move to newer versions of Spring, Java and Karaf.</p>
  
  <p>I know that spring-dm is unsupported and I should move to Blueprint, but I'm not sure if I could then load OSGI beans in Spring context like spring-dm does. Does Karaf 2.4.4 supports it?</p>
  
  <p>I would like not to change source code too much and still use <code>@Autowired</code> as I use right now.</p>
  
  <p>As first step I plan to replace spring-dm with blueprint, next step would be to upgrade Spring 3 to Spring 4. Is it valid approach?</p>