Re: Using Apache Camel as replacement for cron-driven shell scripts

2011-04-08 Thread Claus Straube
On 08.04.2011 10:14, Arkadi Shishlov wrote: On Fri, 08 Apr 2011 10:58:27 +0300, Claus Straube wrote: An empty multicast is no error. ArrayList l = new ArrayList(); from("direct:a").multicast().to(l); java.lang.IllegalArgumentException: Definition has no children on Multicast[[]] at org.a

Re: Using Apache Camel as replacement for cron-driven shell scripts

2011-04-08 Thread Arkadi Shishlov
On Fri, 08 Apr 2011 10:58:27 +0300, Claus Straube wrote: An empty multicast is no error. ArrayList l = new ArrayList(); from("direct:a").multicast().to(l); java.lang.IllegalArgumentException: Definition has no children on Multicast[[]] at org.apache.camel.model.ProcessorDefinition.crea

Re: Using Apache Camel as replacement for cron-driven shell scripts

2011-04-08 Thread Claus Straube
On 07.04.2011 22:29, Arkadi Shishlov wrote: On Thu, 07 Apr 2011 16:50:52 +0300, Claus Straube wrote: On 07.04.2011 15:33, Arkadi Shishlov wrote: On Thu, 07 Apr 2011 13:24:02 +0300, Andrey Popp <8may...@gmail.com> wrote: * Apache Camel should try to compile routes and in the case of success --

Re: Using Apache Camel as replacement for cron-driven shell scripts

2011-04-07 Thread Arkadi Shishlov
On Thu, 07 Apr 2011 16:50:52 +0300, Claus Straube wrote: On 07.04.2011 15:33, Arkadi Shishlov wrote: On Thu, 07 Apr 2011 13:24:02 +0300, Andrey Popp <8may...@gmail.com> wrote: * Apache Camel should try to compile routes and in the case of success -- replace current routes with the new on

Re: Using Apache Camel as replacement for cron-driven shell scripts

2011-04-07 Thread Arkadi Shishlov
On Thu, 07 Apr 2011 17:06:58 +0300, Andrey Popp <8may...@gmail.com> wrote: In our project we pack Camel with maven-shade-plugin into uber-jar and launch it under nohup java -jar. I do not have an access to wiki, but I can send you pom.xml and custom Main.java, or publish it here for reference.

Re: Using Apache Camel as replacement for cron-driven shell scripts

2011-04-07 Thread Andrey Popp
> In our project we pack Camel with maven-shade-plugin into uber-jar and launch > it under nohup java -jar. > I do not have an access to wiki, but I can send you pom.xml and custom > Main.java, or publish it here for reference. It would be great, thanks. > The replace part could be tricky depen

Re: Using Apache Camel as replacement for cron-driven shell scripts

2011-04-07 Thread Claus Straube
On 07.04.2011 15:33, Arkadi Shishlov wrote: It is perfectly reasonable and doable, please see comments inline. On Thu, 07 Apr 2011 13:24:02 +0300, Andrey Popp <8may...@gmail.com> wrote: I'm wondering of the following setup: * Apache Camel running as daemon. In our project we pack Camel wi

Re: Using Apache Camel as replacement for cron-driven shell scripts

2011-04-07 Thread Arkadi Shishlov
It is perfectly reasonable and doable, please see comments inline. On Thu, 07 Apr 2011 13:24:02 +0300, Andrey Popp <8may...@gmail.com> wrote: I'm wondering of the following setup: * Apache Camel running as daemon. In our project we pack Camel with maven-shade-plugin into uber-jar and laun

Using Apache Camel as replacement for cron-driven shell scripts

2011-04-07 Thread Andrey Popp
Hello, I'm investigating usage of Apache Camel for "lightweight" integration tasks. By "lightweight" I mean that I want to replace some shell scripts and Makefile targets which are running as cron jobs for now. The reasons to do this are to provide better error handling and reporting mechanisms fo