Hi

See
http://camel.apache.org/running-camel-standalone-and-have-it-keep-running.html

And then put your spring xml in the .jar and set the main class in the
manifest, so java -jar know what the main class is.

On Thu, Jul 17, 2014 at 1:31 PM, sergarci <[email protected]> wrote:
> Hi everyone
>
> I'm here with a new question about packaging Apache Camel application.
>
> I'm triying to package my application into a jar file. I don't have a custom
> main class, I just run camel from spring camel context and it starts all the
> routes like this.
>
> /<camelContext xmlns="http://camel.apache.org/schema/spring";
> id="camelContext">
>                 <routeContextRef ref="routeOne"/>
> </camelContext>/
>
> I'm trying to do just mvn package wich generates one .jar file but when
> running with java -jar myApp.jar it cames with "/Failed to load Main-Class
> manifest attribute from/".
>
> How can I configure my jar to take my camel spring context as main?
>
> Thanks you all
>
>
>
> --
> View this message in context: 
> http://camel.465427.n5.nabble.com/Package-camel-spring-into-jar-file-tp5753964.html
> Sent from the Camel - Users mailing list archive at Nabble.com.



-- 
Claus Ibsen
-----------------
Red Hat, Inc.
Email: [email protected]
Twitter: davsclaus
Blog: http://davsclaus.com
Author of Camel in Action: http://www.manning.com/ibsen
hawtio: http://hawt.io/
fabric8: http://fabric8.io/

Reply via email to