Re: The delay option seems not to be working in CAMEL Java DSL mode

2010-09-17 Thread Claus Ibsen
On Fri, Sep 17, 2010 at 10:56 AM, S. Ali Tokmen wrote: >  Hello Claus > > Your patch is working perfectly. > > Thank you for the fast and accurate response. > Thanks for testing and reporting back. Yeah it was harder to get to the bottom since the ref: component is more seldom used, and you didnt

Re: The delay option seems not to be working in CAMEL Java DSL mode

2010-09-17 Thread S. Ali Tokmen
Hello Claus Your patch is working perfectly. Thank you for the fast and accurate response. Have a nice week end S. Ali Tokmen savas-ali.tok...@bull.net Office: +33 4 76 29 76 19 GSM:+33 66 43 00 555 Bull, Architect of an Open World TM http://www.bull.com On 16/09/2010 18:33, Claus Ibs

Re: The delay option seems not to be working in CAMEL Java DSL mode

2010-09-16 Thread Claus Ibsen
Hi Thanks for digging into the code. I have created a ticket to track this https://issues.apache.org/activemq/browse/CAMEL-3130 And also reproduced it in camel-core so I will work on a fix. On Thu, Sep 16, 2010 at 5:57 PM, S. Ali Tokmen wrote: >  Hello > > I have found why, and now I'll try t

Re: The delay option seems not to be working in CAMEL Java DSL mode

2010-09-16 Thread S. Ali Tokmen
Hello I have found why, and now I'll try to explain: * We actually do not use the endpoint names in the routes but a registry, implemented by RefComponent * We therefore do from("registry:ftpTest") * In the registry, "ftpTest" actually redirects to ftp://... with the delay op

Re: The delay option seems not to be working in CAMEL Java DSL mode

2010-09-16 Thread S. Ali Tokmen
Hello OK, can you indicate me any source locations I should be looking at, that normally sets the delay option? My reference lookups on the setDelay method are hopeless. Thank you S. Ali Tokmen savas-ali.tok...@bull.net Office: +33 4 76 29 76 19 GSM:+33 66 43 00 555 Bull, Architect of

Re: The delay option seems not to be working in CAMEL Java DSL mode

2010-09-16 Thread Willem Jiang
Maybe you can write a simple test bundle to see if the camel converter works for you. Willem On 9/16/10 2:40 PM, Claus Ibsen wrote: Must be a problem in your end. I added unit test which works nicely http://svn.apache.org/viewvc?rev=997603&view=rev The delay option is set using a type convert

Re: The delay option seems not to be working in CAMEL Java DSL mode

2010-09-15 Thread Claus Ibsen
Must be a problem in your end. I added unit test which works nicely http://svn.apache.org/viewvc?rev=997603&view=rev The delay option is set using a type converter String -> long, so you have something f up in your system if the type converters can't kick in and convert. But this is OSGi so y

Re: The delay option seems not to be working in CAMEL Java DSL mode

2010-09-15 Thread S. Ali Tokmen
Hello The problems occurs with CAMEL 2.2.0, 2.3.0 and 2.4.0; in OSGi mode. I have not tried other modes. Apparently it has always been occuring, but it has started being "visible" as we added the "disconnect" option (which started displaying the logs). Cheers S. Ali Tokmen savas-ali.tok.

Re: The delay option seems not to be working in CAMEL Java DSL mode

2010-09-15 Thread Claus Ibsen
Hi Could you at least remember to state which version of Camel! And also did it work in a previous version? Have you tried with newer versions? And have you tried from an unit test outside any container (especially OSGi containers). On Wed, Sep 15, 2010 at 11:58 AM, S. Ali Tokmen wrote: >  Hel

The delay option seems not to be working in CAMEL Java DSL mode

2010-09-15 Thread S. Ali Tokmen
Hello The route I'm currently interested in uses CAMEL in Java DSL mode. It basically copies files from an FTP server, hence the from clause: ftp://ca...@production26:21/ftproot/camel?password=camel&delay=6&binary=true&disconnect=true As a result, the delay is supposed to be 60 secon