Tuesday, May 29, 2012

Akka and Camel

I'm still trying to get my head around this library, but here's how I've pulled in Camel.
First a warning: Akka is currently at release 2.0.1 which does not provide Camel integration out of the box. Version 2.1 is scheduled to use Camel as its integration layer but this hasn't been released - so we're toying around with nightly builds.
First let's pull in the Akka goodness. Add the following lines to your build.sbt:
resolvers += "Typesafe Snapshots" at "http://repo.typesafe.com/typesafe/snapshots/"

libraryDependencies += "com.typesafe.akka" % "akka-camel" % "2.1-20120529-002605"

If you're already running the sbt console window for this project then run the commands 'reload' then 'update'. Otherwise just start sbt (which reloads build.sbt at start) and type 'update' to refresh your local Ivy repository. The number at the end is the development build which is updated every night.

If you'd like the feeling of a little more stability then try the snapshot issued on 22 Mar 2012 by changing the last string to "2.1-SNAPSHOT".

The above dependency also pulls in the Akka Core with the same build. So that's all you need to get started.

No comments: