title: Akka Camel and Spring
body: <p>I want to combine Akka, Apache Camel, Spring and do not know the way forward for leveraging the three things in the same project.</p>
  
  <p>I was successfully able to</p>
  
  <pre><code>1. write some working code with akka, akka-camel extension and camel routes(Java DSL)
  2. use camel and spring (use java DSL but spring for transactions and etc..)
  </code></pre>
  
  <p>Now I need to combine 1 and 2. Can anyone suggest me the simplest way to achieve this?</p>
  
  <p><strong>EDIT</strong>
  Some say AKKA no longer supports Spring due to conflict in object instantiation as per the link below
  <a href="https://stackoverflow.com/questions/16948292/why-spring-integration-doc-for-akka-exists-only-for-1-3-1-but-not-for-next-versi">Why spring integration doc for akka exists only for 1.3.1 but not for next versions</a></p>
  
  <p>Also a similar question is there without a proper solution being presented but the post is about 2 years old
  <a href="https://stackoverflow.com/questions/19306531/akka-camel-2-2-1-route-definition-using-spring-xml?rq=1">akka-camel 2.2.1 route definition using Spring XML</a></p>
  
  <p>In one blog post (which I can't get hold of the link right now) a method has been described which is in summary, the actors are defined and used Akka way and what ever the processing Akka actors does to be wired using Spring. But there wasn't any solid example.</p>