On Fri, Nov 6, 2009 at 2:20 AM, mumbly <[email protected]> wrote:
>
> I did a search on the forum, but did not see anything addressing this issue
> (though it is a bit of an awkward search to make, so I may have missed
> something).
>
> I'm new to Camel (evaluating it, Spring Integration and Mule for a project)
> and have been spending a little time trying to get a few different scenarios
> working. My project doesn't currently use Spring and I'd prefer to avoid
> additional dependencies if they aren't necessary. That said, I feel like I'm
> walking upstream trying to use Camel without Spring. It seems like most of
> the examples use Spring, even those that do routing using the Java DSL. I
> found it rather ironic that one of the first Spring Integration examples I
> ran across did not use the Spring framework, yet all of the Camel examples
> (other than the simple getting started) do.
>

SI is build on top of Spring, kinda hard to not use Spring with SI. So
I wonder what kind of example that was.



There are plenty of examples of using Camel without Spring.

A lot of the wiki documentation have either a Java and/or a Spring DSL example.
However most of the time the Java DSL and Spring DSL maps 1:1.

Have you checked out the tutorials, for example this one does not use Spring
http://camel.apache.org/tutorial-example-reportincident.html

And this one
http://camel.apache.org/walk-through-an-example.html

And the loan broker example can run without spring as well AFAIR
http://camel.apache.org/loan-broker-example.html

And people have created blogs and articles using Camel which uses
and/or spring as well
http://camel.apache.org/articles.html

And my book will also have a lot of non spring + spring examples as well
Author of Camel in Action: http://www.manning.com/ibsen/


And the EIP reference card at DZone as well have a Java + a Spring DSL
example for about 10 commonly used EIP patterns
http://refcardz.dzone.com/refcardz/enterprise-integration


> I'm not anti-Spring (I was typing in the code from the Wrox book before
> there was a download for the Interface21 code) and I don't want to cut off
> my nose to spite my face. If Spring + Camel gives me the preferred method of
> using Camel and it is more functional to use the combination, I'm fine with
> that. Just want feedback from the users/developers on whether it is worth
> trying to keep Spring out.
>

The good think about Spring is that you can digest it in pieces at the
pace you like. So you dont have to use all its features and bells and
the DI using annotations and whatnot.



> Thanks.
>
> --Tim
> --
> View this message in context: 
> http://old.nabble.com/Camel-without-Spring-tp26225350p26225350.html
> Sent from the Camel - Users mailing list archive at Nabble.com.
>
>



-- 
Claus Ibsen
Apache Camel Committer

Author of Camel in Action: http://www.manning.com/ibsen/
Open Source Integration: http://fusesource.com
Blog: http://davsclaus.blogspot.com/
Twitter: http://twitter.com/davsclaus

Reply via email to