Re: SFTP readLock option

2012-10-22 Thread Claus Ibsen
On Mon, Oct 22, 2012 at 6:57 PM, swwyatt  wrote:
> We normally use readLock=rename for both file and sftp components. In a
> deployment, we forgot to add the readLock option to an sftp route in a
> cluster environment; both servers pulled the file. I was thinking that there
> was a default, but maybe that is just for the file component.
>
> So is readLock=changed the only valid option for sftp? Seems that
> readLock=rename works, but just not sure in a cluster.
>

Ah yeah both are valid. rename and changed. The rename is generic and
supported by any of the ftp/file components.
Where as some have to be specific such as changed etc.


>
>
> --
> View this message in context: 
> http://camel.465427.n5.nabble.com/SFTP-readLock-option-tp5721403p5721406.html
> Sent from the Camel - Users mailing list archive at Nabble.com.



-- 
Claus Ibsen
-
Red Hat, Inc.
FuseSource is now part of Red Hat
Email: cib...@redhat.com
Web: http://fusesource.com
Twitter: davsclaus
Blog: http://davsclaus.com
Author of Camel in Action: http://www.manning.com/ibsen


Re: SFTP readLock option

2012-10-22 Thread swwyatt
We normally use readLock=rename for both file and sftp components. In a
deployment, we forgot to add the readLock option to an sftp route in a
cluster environment; both servers pulled the file. I was thinking that there
was a default, but maybe that is just for the file component.

So is readLock=changed the only valid option for sftp? Seems that
readLock=rename works, but just not sure in a cluster.



--
View this message in context: 
http://camel.465427.n5.nabble.com/SFTP-readLock-option-tp5721403p5721406.html
Sent from the Camel - Users mailing list archive at Nabble.com.


Re: SFTP readLock option

2012-10-22 Thread Hadrian Zbarcea
Assuming I read your question correctly, the default file process 
strategy will be a GenericFileNoOpProcessStrategy which does 
not need a readLock (typically it won't be set). See [1].


Hadrian

[1] 
https://svn.apache.org/repos/asf/camel/tags/camel-2.8.1/components/camel-ftp/src/main/java/org/apache/camel/component/file/remote/strategy/SftpProcessStrategyFactory.java



On 10/22/2012 12:40 PM, swwyatt wrote:

What is the default readLock for SFTP consumer on 2.8.1?



--
View this message in context: 
http://camel.465427.n5.nabble.com/SFTP-readLock-option-tp5721403.html
Sent from the Camel - Users mailing list archive at Nabble.com.



Re: SFTP readLock option

2012-10-22 Thread Claus Ibsen
On Mon, Oct 22, 2012 at 6:40 PM, swwyatt  wrote:
> What is the default readLock for SFTP consumer on 2.8.1?
>

It has no default read lock.

You can use readLock=changed, which is the only read lock strategy
supported out of the box for the sftp in Camel 2.8.x
https://svn.apache.org/repos/asf/camel/branches/camel-2.8.x/components/camel-ftp/src/main/java/org/apache/camel/component/file/remote/strategy/SftpChangedExclusiveReadLockStrategy.java


>
>
> --
> View this message in context: 
> http://camel.465427.n5.nabble.com/SFTP-readLock-option-tp5721403.html
> Sent from the Camel - Users mailing list archive at Nabble.com.



-- 
Claus Ibsen
-
Red Hat, Inc.
FuseSource is now part of Red Hat
Email: cib...@redhat.com
Web: http://fusesource.com
Twitter: davsclaus
Blog: http://davsclaus.com
Author of Camel in Action: http://www.manning.com/ibsen


SFTP readLock option

2012-10-22 Thread swwyatt
What is the default readLock for SFTP consumer on 2.8.1?



--
View this message in context: 
http://camel.465427.n5.nabble.com/SFTP-readLock-option-tp5721403.html
Sent from the Camel - Users mailing list archive at Nabble.com.