java - Camel not recognizing ?lock=false as valid -


i've got camel route reading file , it's not deleting .camellock file after route finishes wanted turn lock off. documentation camel-file says attribute "lock" yet when <from uri="file:///data/in/?lock=false" /> get:

caused by: org.apache.camel.resolveendpointfailedexception: failed resolve endpoint: file:///data/in/?lock=false due to: failed resolve endpoint: file:///data/in/?lock=false due to: there 1 parameters couldn't set on endpoint. check uri if parameters spelt correctly , properties of endpoint. unknown parameters=[{lock=false}]

camel 2.11.0

the file component documentation camel 2.x here: http://camel.apache.org/file2 read old camel 1.x documentation at: http://camel.apache.org/file notice on top of page, says camel 1.x!

there readlock option default uses markerfile (and hence why see .camellock files). can turn off setting readlock option none, eg

readlock=none 

Comments

Popular posts from this blog

ios - UICollectionView Self Sizing Cells with Auto Layout -

node.js - ldapjs - write after end error -

DOM Manipulation in Wordpress (and elsewhere) using php -