Re: How to change directory while using sftp component

2010-09-29 Thread Claus Ibsen
Hi You have not used the latest source code. The stacktrace points to empty lines etc. Make sure you build camel-core and camel-ftp using latest source code. Revision: 1002946 Node Kind: directory Schedule: normal Last Changed Author: davsclaus Last Changed Rev: 1002821 Last Changed Date: 2010-09

Re: Loosing headers by using errorHandler and useOriginalMessage() in camel.jms

2010-09-29 Thread Claus Ibsen
This will be fixed in Camel 3.0 when we work on some internals in Camel. On Wed, Sep 29, 2010 at 11:00 PM, Christian Mueller wrote: > > Hello list, > > we are using camel-jms in conjunction with custom headers and the > useOriginalMessage() definition in our error handler for our exception > han

Re: How to change directory while using sftp component

2010-09-29 Thread Lorrin Nelson
I'm pretty sure I was already at revision 1002541 before. Now I definitely am. Same Exception. I think the problem is the lack of leading /. SftpOperations.retrieveFileToStreamInBody computes path as "tmp/mult", calls changeCurrentDirectory(path), which in turn calls channel.cd(path), which (now

Loosing headers by using errorHandler and useOriginalMessage() in camel.jms

2010-09-29 Thread Christian Mueller
Hello list, we are using camel-jms in conjunction with custom headers and the useOriginalMessage() definition in our error handler for our exception handling. We realized, that we loose all our headers in our dead letter channel (using Camel 2.2.0.fuse-02-00). Our configuration looks like this on

Re: InOnly exchangePattern

2010-09-29 Thread watcher
I'm no expert but I think it would block. The InOnly tells the activeMq queue that it does not require a reply (response). Can you post your testMethod() -- View this message in context: http://camel.465427.n5.nabble.com/InOnly-exchangePattern-tp3028284p3046230.html Sent from the Camel - Users

Re: statisticsBrokerPlugin with camel error

2010-09-29 Thread watcher
I solved one of the issues but one exception remains. http://activemq.2283324.n4.nabble.com/statisticsBrokerPlugin-error-td2716123.html#a2719707 http://activemq.2283324.n4.nabble.com/statisticsBrokerPlugin-error-td2716123.html#a2719707 -- View this message in context: http://camel.465427.n

Re: How to change directory while using sftp component

2010-09-29 Thread Claus Ibsen
Hi Can you try again with latest source code from trunk. I have changed the logic to change dir one folder at a time. On Wed, Sep 29, 2010 at 7:47 PM, Lorrin Nelson wrote: > Thanks for the quick response. I'm seeing a different failure now ("Cannot > change current directory to: tmp/mult" rath

RE: netty questions

2010-09-29 Thread Sadanand Kusma
Thank you for asking question. You may want to post the question to the forum to get a better response and discussion will be useful to others if anyone runs into the same issue. 1. I am not sure if netty has any builtin timeout option anymore. Mina does have a timeout option. if you are using

Re: How to change directory while using sftp component

2010-09-29 Thread Lorrin Nelson
Thanks for the quick response. I'm seeing a different failure now ("Cannot change current directory to: tmp/mult" rather than "Cannot retrieve file: tmp/mult/dummy-5.log"). Is it suspicious that in either case there is no leading /? I tried uris sftp://t...@host//tmp/mult?include=.*\.log and sf

Re: FTP creating connections for every file name in the uri

2010-09-29 Thread Claus Ibsen
On Wed, Sep 29, 2010 at 1:40 PM, Marco Crivellaro wrote: > > Thanks I'll try in that way! > > can you link me to the ticket you created about the fix at FTP component > level? > just want to keep an eye on it looking forward for the enhancement to come https://issues.apache.org/activemq/browse/CA

Re: FTP creating connections for every file name in the uri

2010-09-29 Thread Marco Crivellaro
Thanks I'll try in that way! can you link me to the ticket you created about the fix at FTP component level? just want to keep an eye on it looking forward for the enhancement to come -- View this message in context: http://camel.465427.n5.nabble.com/FTP-creating-connections-for-every-file-name

Re: Streaming splitter with custom split method

2010-09-29 Thread Claus Ibsen
On Wed, Sep 29, 2010 at 12:44 PM, Tarjei Huse wrote: >  Hi, I got a huge file I want to split into smaller chunks and send each > chunk as a new message using the splitter. The file contains Protobuf > objects so I cannot use any of the normal splitting methods, but I want > to use the streaming()

Re: FTP creating connections for every file name in the uri

2010-09-29 Thread Claus Ibsen
Hi Just skip sending to the original endpoint and use a producer template to send to the uri you create yourself. Just remove the filename parameter. You can use reg exp or String concat stuff for that. Or Camel has some API for URI in the util package. That makes it easier to construct the uri w

Re: FTP creating connections for every file name in the uri

2010-09-29 Thread Marco Crivellaro
Using interceptSendToEndpoint I've tried setting the header Exchange.INTERCEPTED_ENDPOINT to the new endpoint URI (without the fileName) and setting the filename as Exchange.FILE_NAME. However the enpoint parameters being used remain the original one. this is the my interceptSendToEndpoint: i

Streaming splitter with custom split method

2010-09-29 Thread Tarjei Huse
Hi, I got a huge file I want to split into smaller chunks and send each chunk as a new message using the splitter. The file contains Protobuf objects so I cannot use any of the normal splitting methods, but I want to use the streaming() method on the route. How do I create a splitter that supports

Re: FTP creating connections for every file name in the uri

2010-09-29 Thread Claus Ibsen
On Wed, Sep 29, 2010 at 11:44 AM, Marco Crivellaro wrote: > > As I am using a recipientList and it might happen not all the endpoints will > receive the content with the same filename do you think I can use an > interceptor interceptSendToEndpoint and remove the filename option from URI > setting

Re: How to change directory while using sftp component

2010-09-29 Thread Claus Ibsen
Hi I have committed a fix to the SFTP component. Can you try with latest source code from trunk? On Tue, Sep 28, 2010 at 7:36 PM, Lorrin wrote: > > I just bumped into the same problem. I'm running 2.5-SNAPSHOT. > > SftpConsumer 2010-09-28 10:31:28,094 -- ERROR -- Caused by: > [org.apache.camel.

Re: FTP creating connections for every file name in the uri

2010-09-29 Thread Marco Crivellaro
As I am using a recipientList and it might happen not all the endpoints will receive the content with the same filename do you think I can use an interceptor interceptSendToEndpoint and remove the filename option from URI setting the filename in the header? Or is at this time the endpoint already

RE: Exception details

2010-09-29 Thread Steve.Hedges
You're right - it should be: And not Many thanks again Steven Hedges IT - Credit Booking Derivs -Original Message- From: Claus Ibsen [mailto:claus.ib...@gmail.com] Sent: 29 September 2010 10:18 To: users@camel.apache.org Subject: Re: Exception details Just use "d

Re: Exception details

2010-09-29 Thread Claus Ibsen
And when using Spring you need to ensure the namespace is on all the tags outside camelContext. The one below dont have namespace, which it need to have >>        >                deadLetterUri="direct:errorHandlerRoute" /> On Wed, Sep 29, 2010 at 11:17 AM, Claus Ibsen wrote: > Just use "direct

Re: Exception details

2010-09-29 Thread Claus Ibsen
Just use "direct:errorHandlerRoute" instead of ref:direct:errorHandlerRoute On Wed, Sep 29, 2010 at 10:49 AM, wrote: > Claus > > This is the relevant (more complete) extract of the spring config: > > >                        level="INFO" xmlns="http://camel.apache.org/schema/spring"; /> > >    

RE: Exception details

2010-09-29 Thread Steve.Hedges
Claus This is the relevant (more complete) extract of the spring config: http://camel.apache.org/schema/spring"; /> http://www.barcap.com/gcd/stpengine/1-0";>