Quantcast

Help with RUNNING simple camel example with spring dsl without using maven

classic Classic list List threaded Threaded
5 messages Options
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate
star

Help with RUNNING simple camel example with spring dsl without using maven

dmhatre
Hi Folks,
   Can someone help me with the architecture of simple camel with spring dsl example.And how to run it.
Just an overview will be great help. I already have running examples with java dsl. But want to do it in spring.

Thanks In Advance,
Darpan Mhatre.
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate
star

Re: Help with RUNNING simple camel example with spring dsl without using maven

Jon Anstey
You can generate your own Spring-based project with the
camel-archetype-spring archetype:

mvn archetype:generate -DarchetypeGroupId=orache.camel.archetypes
-DarchetypeArtifactId=camel-archetype-spring -DarchetypeVersion=2.9.2
-DgroupId=myGroupId -DartifactId=myArtifactId

You can run that with "mvn camel:run"

A listing of all the Spring support in Camel is here:
http://camel.apache.org/spring.html

Also, chapter 2 of Camel in Action has an intro to configuring routes in
Spring XML.

Cheers,
Jon

On Fri, May 4, 2012 at 8:18 PM, dmhatre <[hidden email]> wrote:

> Hi Folks,
>   Can someone help me with the architecture of simple camel with spring dsl
> example.And how to run it.
> Just an overview will be great help. I already have running examples with
> java dsl. But want to do it in spring.
>
> Thanks In Advance,
> Darpan Mhatre.
>
> --
> View this message in context:
> http://camel.465427.n5.nabble.com/Help-with-RUNNING-simple-camel-example-with-spring-dsl-without-using-maven-tp5687107.html
> Sent from the Camel - Users mailing list archive at Nabble.com.
>



--
Cheers,
Jon
---------------
FuseSource
Email: [hidden email]
Web: fusesource.com
Twitter: jon_anstey
Blog: http://janstey.blogspot.com
Author of Camel in Action: http://manning.com/ibsen
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate
star

Re: Help with RUNNING simple camel example with spring dsl without using maven

Claus Ibsen-2
Hi

There is plenty of Camel and Spring examples, such as
http://camel.apache.org/spring-example.html

To run the application without Maven, well thats a generic issue that
is not really Camel specific.
If you want to use Spring, then just run Spring without Maven as you
normally would.

Just make sure you got all the JARs on the classpath, which is what
Maven otherwise is really good at.




On Sat, May 5, 2012 at 1:43 AM, Jon Anstey <[hidden email]> wrote:

> You can generate your own Spring-based project with the
> camel-archetype-spring archetype:
>
> mvn archetype:generate -DarchetypeGroupId=orache.camel.archetypes
> -DarchetypeArtifactId=camel-archetype-spring -DarchetypeVersion=2.9.2
> -DgroupId=myGroupId -DartifactId=myArtifactId
>
> You can run that with "mvn camel:run"
>
> A listing of all the Spring support in Camel is here:
> http://camel.apache.org/spring.html
>
> Also, chapter 2 of Camel in Action has an intro to configuring routes in
> Spring XML.
>
> Cheers,
> Jon
>
> On Fri, May 4, 2012 at 8:18 PM, dmhatre <[hidden email]> wrote:
>
>> Hi Folks,
>>   Can someone help me with the architecture of simple camel with spring dsl
>> example.And how to run it.
>> Just an overview will be great help. I already have running examples with
>> java dsl. But want to do it in spring.
>>
>> Thanks In Advance,
>> Darpan Mhatre.
>>
>> --
>> View this message in context:
>> http://camel.465427.n5.nabble.com/Help-with-RUNNING-simple-camel-example-with-spring-dsl-without-using-maven-tp5687107.html
>> Sent from the Camel - Users mailing list archive at Nabble.com.
>>
>
>
>
> --
> Cheers,
> Jon
> ---------------
> FuseSource
> Email: [hidden email]
> Web: fusesource.com
> Twitter: jon_anstey
> Blog: http://janstey.blogspot.com
> Author of Camel in Action: http://manning.com/ibsen



--
Claus Ibsen
-----------------
CamelOne 2012 Conference, May 15-16, 2012: http://camelone.com
FuseSource
Email: [hidden email]
Web: http://fusesource.com
Twitter: davsclaus, fusenews
Blog: http://davsclaus.blogspot.com/
Author of Camel in Action: http://www.manning.com/ibsen/
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate
star

Re: Help with RUNNING simple camel example with spring dsl without using maven

Rocco Gallo Citera
Darpan,
As for project structure, you need to have a xml config file for
spring, a place for dependencies jar in the classpath and any java
files you need as beans. The rest, as Claus said, is not a Camel issue
but more a how to run Spring issue.
Hope that helped.

On Sat, May 5, 2012 at 4:59 AM, Claus Ibsen <[hidden email]> wrote:

> Hi
>
> There is plenty of Camel and Spring examples, such as
> http://camel.apache.org/spring-example.html
>
> To run the application without Maven, well thats a generic issue that
> is not really Camel specific.
> If you want to use Spring, then just run Spring without Maven as you
> normally would.
>
> Just make sure you got all the JARs on the classpath, which is what
> Maven otherwise is really good at.
>
>
>
>
> On Sat, May 5, 2012 at 1:43 AM, Jon Anstey <[hidden email]> wrote:
>> You can generate your own Spring-based project with the
>> camel-archetype-spring archetype:
>>
>> mvn archetype:generate -DarchetypeGroupId=orache.camel.archetypes
>> -DarchetypeArtifactId=camel-archetype-spring -DarchetypeVersion=2.9.2
>> -DgroupId=myGroupId -DartifactId=myArtifactId
>>
>> You can run that with "mvn camel:run"
>>
>> A listing of all the Spring support in Camel is here:
>> http://camel.apache.org/spring.html
>>
>> Also, chapter 2 of Camel in Action has an intro to configuring routes in
>> Spring XML.
>>
>> Cheers,
>> Jon
>>
>> On Fri, May 4, 2012 at 8:18 PM, dmhatre <[hidden email]> wrote:
>>
>>> Hi Folks,
>>>   Can someone help me with the architecture of simple camel with spring dsl
>>> example.And how to run it.
>>> Just an overview will be great help. I already have running examples with
>>> java dsl. But want to do it in spring.
>>>
>>> Thanks In Advance,
>>> Darpan Mhatre.
>>>
>>> --
>>> View this message in context:
>>> http://camel.465427.n5.nabble.com/Help-with-RUNNING-simple-camel-example-with-spring-dsl-without-using-maven-tp5687107.html
>>> Sent from the Camel - Users mailing list archive at Nabble.com.
>>>
>>
>>
>>
>> --
>> Cheers,
>> Jon
>> ---------------
>> FuseSource
>> Email: [hidden email]
>> Web: fusesource.com
>> Twitter: jon_anstey
>> Blog: http://janstey.blogspot.com
>> Author of Camel in Action: http://manning.com/ibsen
>
>
>
> --
> Claus Ibsen
> -----------------
> CamelOne 2012 Conference, May 15-16, 2012: http://camelone.com
> FuseSource
> Email: [hidden email]
> Web: http://fusesource.com
> Twitter: davsclaus, fusenews
> Blog: http://davsclaus.blogspot.com/
> Author of Camel in Action: http://www.manning.com/ibsen/
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate
star

Re: Help with RUNNING simple camel example with spring dsl without using maven

dmhatre
Thank you everyone for helping. But I already got these working.
I just did what Mr.Rocco suggested.
Thank you very much!
Loading...