You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@camel.apache.org by rdifrango <ro...@gmail.com> on 2012/06/06 22:09:18 UTC

Java or Scala DSL in a Web App

I was looking at how to integrate Camel into a Web app and according to this:

http://camel.apache.org/tutorial-on-using-camel-in-a-web-application.html

It is only possible to do if you are using Spring and you are using the
Spring DSL.  Is there a way other than having to use Spring?

--
View this message in context: http://camel.465427.n5.nabble.com/Java-or-Scala-DSL-in-a-Web-App-tp5714089.html
Sent from the Camel - Users mailing list archive at Nabble.com.

Re: Java or Scala DSL in a Web App

Posted by rdifrango <ro...@gmail.com>.
That much I understand, I was just wondering if Camel provided an out of the
box solution for non-spring based applications.  Based upon your response,
I'm guessing the answer is no and that I'll have to roll my own.

--
View this message in context: http://camel.465427.n5.nabble.com/Java-or-Scala-DSL-in-a-Web-App-tp5714089p5714217.html
Sent from the Camel - Users mailing list archive at Nabble.com.

Re: Java or Scala DSL in a Web App

Posted by Claus Ibsen <cl...@gmail.com>.
On Wed, Jun 6, 2012 at 10:09 PM, rdifrango <ro...@gmail.com> wrote:
> I was looking at how to integrate Camel into a Web app and according to this:
>
> http://camel.apache.org/tutorial-on-using-camel-in-a-web-application.html
>
> It is only possible to do if you are using Spring and you are using the
> Spring DSL.  Is there a way other than having to use Spring?
>

Certainly there is many ways. Its all just Java code. So any way you
can do it, its possible.
A web app is typically a WAR file that has a web.xml to bootstrap. So
you can use any web framework, a servlet, or whatever
to bootstrap and start Camel.

And Camel allows you to use any DSL you like, so even if you use a
Spring XML file, the routes can be a in a Java DSL, Scala DSL etc.


> --
> View this message in context: http://camel.465427.n5.nabble.com/Java-or-Scala-DSL-in-a-Web-App-tp5714089.html
> Sent from the Camel - Users mailing list archive at Nabble.com.



-- 
Claus Ibsen
-----------------
FuseSource
Email: cibsen@fusesource.com
Web: http://fusesource.com
Twitter: davsclaus, fusenews
Blog: http://davsclaus.com
Author of Camel in Action: http://www.manning.com/ibsen