SFTP file retrieval does not seem to work but no exception

2010-11-25 Thread manoj.sahu
Hi - I am trying to get a file from a remote sftp server. It does not give me any exception but does not work either. Here is my route : from("sftp://dws...@10.0.0.149://sftp/?initialDelay=8000&move=.done&password=";) .to("log:input") .u

Re: Plugging in an ExecutorServiceStartegy

2010-11-25 Thread Claus Ibsen
Hi See here https://cwiki.apache.org/confluence/display/CAMEL/Advanced+configuration+of+CamelContext+using+Spring Camel in Action book chapter 10 also covers this. All you have to do is just declare a spring with it and Camel will automatic pick it up. On Thu, Nov 25, 2010 at 11:39 PM, Mark B

Some questions of camel's jta transaction support

2010-11-25 Thread ext2
1: Could the from-endpoint decide how to do the post-action according to following route's transaction result(rollback/commit)? Fo example : from().transacted().multicast().db1().db2(); from() will receive a external message. Db1, db2 will insert the message to different databa

Re: camel-ftp and crontab

2010-11-25 Thread Ashwin Karpe
Hi, If you are looking to start a route at a given time, perform some activity and then stop the route, you can do this by applying a scheduled route policy. This capability is available in the camel-quartz component. Please check out http://camel.apache.org/scheduledroutepolicy.html http://came

Plugging in an ExecutorServiceStartegy

2010-11-25 Thread Mark Borner
Is there a way to specify a custom ExecutorServiceStartegy on a Camel Context using Spring XML? For example: http://camel.apache.org/schema/spring";> au.com.zurich.phoenix.i90.routes xxx The only way I can find to set a custom strategy is in Java DSL:

test

2010-11-25 Thread jmh
-- View this message in context: http://camel.465427.n5.nabble.com/test-tp3280678p3280678.html Sent from the Camel - Users mailing list archive at Nabble.com.

Re: Multicast() Behaviour with Exceptions

2010-11-25 Thread Mark Borner
Thanks Claus! Mark Mark Borner Java Developer - ZStream Xpress From: Claus Ibsen To: users@camel.apache.org Date: 23/11/2010 01:00 AM Subject: Re: Multicast() Behaviour with Exceptions Hi Thanks for raising this issue. It looks like a bug in the multicast logic when having exceptions hand

camel-ftp and crontab

2010-11-25 Thread jmh
Hello, I need to start a camel-ftp component periodicaly with a cron expression (every friday at 10pm) The problem is that camel-ftp does not have this option out-of-the-box (only a delay) So I have imagined this solution that seems to work fine ! What do camel-gurus think about ?

camel-ftp and crontab

2010-11-25 Thread jmh
Hello, I need to start a camel-ftp component periodicaly with a cron expression (every friday at 10pm) The problem is that camel-ftp does not have this option out-of-the-box (only a delay) So I have imagined this solution that seems to work fine ! What do camel-gurus think about ?

Re: Loop in a CAMEL route

2010-11-25 Thread S. Ali Tokmen
Hello Claus I had thought about the dynamic router EIP; but still check since I thought there was an Expression or something like that in a loop (like "should I still go ahead?"). Thank you S. Ali Tokmen savas-ali.tok...@bull.net Office: +33 4 76 29 76 19 GSM:+33 66 43 00 555 Bull, Arc

Re: Loop in a CAMEL route

2010-11-25 Thread Claus Ibsen
The Loop DSL uses a predicate so you can compute this. You can also use the dynamic router EIP and just circle back to the web service until you are done. Or from a POJO where you can do the loop logic in Java code. On Thu, Nov 25, 2010 at 6:57 PM, S. Ali Tokmen wrote: > Hello > > I am curren

Loop in a CAMEL route

2010-11-25 Thread S. Ali Tokmen
Hello I am currently interacting with a webservice from which I request lists of documents. The issue is that the web service can only return documents 100 by 100; therefore I need to loop and I do not know how much documents I have total. Basically, it looks like: var List allDocuments

Re: JAXB causing Unit Test Failure without any actual marshalling active

2010-11-25 Thread Claus Ibsen
Hi Can you create a small project and/or unit test and attach the file to a JIRA ticket? Then we can take a look at it. I assume you have tried using the latest release, which is Camel 2.5? On Thu, Nov 25, 2010 at 3:22 PM, enalposi wrote: > > @Willem > > The payload is a simple JAXB annotated

Re: JAXB causing Unit Test Failure without any actual marshalling active

2010-11-25 Thread enalposi
@Willem The payload is a simple JAXB annotated Pojo (In this case a Status message, containing some strings and maps). To recap: 1. Unit tests (and actual operation) run fine without maven dependency of camel-jaxb. 2. Jaxb itself runs fine on the classes. Schema is generated and unit tests pass

Re: Is it possible to cluster camel endpoint?

2010-11-25 Thread Sergey_Zhemzhitsky
Yeah, I have understood it. It's a pitty that camel's nmr can't behave as jbi nmr. I far as I understand, it's impossible to use jbi functionality of servicemix in camel too, at least until it won't be deployed as jbi service unit. Best Regards, Sergey Zhemzhitsky Information Technology Divis

Re: Is it possible to cluster camel endpoint?

2010-11-25 Thread Sergey_Zhemzhitsky
Hi Jeremie You're right. I have looked through org.apache.servicemix.jbi.cluster.engine.ClusterEngine and it seems that it is not possible to share camel endpoints by mens of it. Jérémie 25.11.2010 13:17 Please respond to users@camel.apache.org To users@camel.apache.org cc Subject Re:

Re: Is it possible to cluster camel endpoint?

2010-11-25 Thread Guillaume Nodet
Note that the cluster engine is a 'jbi' cluster engine and currently only works with JBI endpoints. It's possible to use those with NMR endpoints, but you'd have to use the JBI targetting system in order to make that possible. On Thu, Nov 25, 2010 at 11:16, Jérémie wrote: > Hi, > > I have the sa

Re: Is it possible to cluster camel endpoint?

2010-11-25 Thread Sergey_Zhemzhitsky
Claus, thanks for response. I've seen theese examples and I have a working example with camel nmr endpoints. The problem is that examples work only on single instance of servicemix but I would like to have a clustered camel endpoints. Claus Ibsen 25.11.2010 13:19 Please respond to users@

Re: Is it possible to cluster camel endpoint?

2010-11-25 Thread Claus Ibsen
Have you seen the examples/camel-nmr in the FUSE ESB distribution? On Thu, Nov 25, 2010 at 9:58 AM, wrote: > I've removed the nmr. Exception > "org.apache.servicemix.nmr.api.ServiceMixException: Could not dispatch > exchange. No matching endpoints." still happens. > > Is NMR camel endpoint shar

Re: Is it possible to cluster camel endpoint?

2010-11-25 Thread Jérémie
Hi, I have the same requirement : Using shared NMR endpoints with camel. After reading the source of the NMR implementation of smx : - NMR Endpoint are not automatically shared. You have to declare them using a ClusterRegistration and configure the "JBI Cluster Engine" (smx come with a spring xml

Re: Is it possible to cluster camel endpoint?

2010-11-25 Thread Sergey_Zhemzhitsky
I've removed the nmr. Exception "org.apache.servicemix.nmr.api.ServiceMixException: Could not dispatch exchange. No matching endpoints." still happens. Is NMR camel endpoint shared accross multiple nodes of a cluster? And is declaration of "org.apache.servicemix.common.osgi.EndpointExporter" r

Re: Is it possible to cluster camel endpoint?

2010-11-25 Thread Claus Ibsen
Hi Try removing the nmr bean, as it should work out of the box, without the need to specify such a bean. This should be removed: On Thu, Nov 25, 2010 at 7:12 AM, wrote: > Hi there > > I'm not using JBI. Each route is deployed as OSGi bundle. > > > > > > Claus