Hi

Are you using the same user name / password ? Wonder if the server
does not deal well with same user logged in 2 times and concurrently
upload?

If so maybe try to use an unique user.

As the concurrent work is done by java threading you cannot tell it to
complete one thread before another thread etc.

The only way is to not use concurrency, and upload the files in sequence.



On Wed, Dec 24, 2014 at 1:22 AM, eswar <easwaramoor...@gmail.com> wrote:
> Hi - I do not get this exception all the time. but happens occasionally.
>
> Two routes are using the same sftp endpoint to send files to same server.
>
> when both the routes are processing concurrently, the first route is
> connected and transmitting the file, this first thread is pushed out and the
> second route had started to transmit the files through the second route.
> First thread came back in to transmit the file, but i got the below DEBUG
> log that there is an exception. Though this is not logged as ERROR and this
> resulted in continuing the route rather than stopping at this point.
>
> DEBUG RemoteFileProducer: Exception occurred during stopping: Cannot change
> directory to: /
>
> is there any way in the camel route to explicitly mention to run the
> endpoint to its completion before it gets pushed back for other threads?
>
> any suggestions on this would be really helpful. thank you.
>
>
>
> --
> View this message in context: 
> http://camel.465427.n5.nabble.com/sftp-Exception-during-concurent-execution-of-sftp-endpoint-tp5761049.html
> Sent from the Camel - Users mailing list archive at Nabble.com.



-- 
Claus Ibsen
-----------------
Red Hat, Inc.
Email: cib...@redhat.com
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