I am picking up a file from a folder specified using Camel File Component and mlcp automatically injects the filename to the default URI and i dont want the filename
When i put the file in D:/Camel
with file named test_1.xml
mlcp produces a URI
/D:/Camel/test_1.xml
. I want /D:/Camel/test_1.xml
to be replaced with '/Vikram' and i want to inject a header from camel to MLCP component too making the final URI be
/Vikram/1
where 1
will be the header value of myHeader
from("file://D:/Camel")
.routeId("File_Pickup_Route")
.setHeader("myHeader")
.to("mlcp:localhost:8000?username=admin&password=admin&output_collections=test
+ "&database=testdb"
+ "&output_uri_replace=/D:/Camel,"
+ "'/Vikram'");
I referred the link
Any way to achieve what i want ? Thanks in advance