I don't want to create another FTP endpoint to poll the reply files because
in splitter I am splitting a big request file into small requests and
uploading the request files on FTP in parallel threads[till this point my
code is working] and want to aggregate the reply file by the same thread who
has uploaded the request file to FTP[At least I want response from FTP to
the same thread, that's the InOut EIP talks about] So as you suggested when
I will use a dedicated FTP component to poll the reply files, FTP thread
will work sequentially to poll all the reply files.Means if there are 50
reply files then it will take a lot of time to finish the polling, which
will be a bottleneck for us.Also I will have to take care of many things
like aggregation,thread sync,notification etc.That's why I don't think this
will be a better approach to go ahead instead of looking into the cause why
InOut is not working for FTP.
My expectation from FTP Component:-
 If I am using InOut EIP for the endpoint say "ftp:xyz" then it should must
return me response object and this object must have the file which is passed
to include property.Every thread must be able to work individually for the
same.
P.S-
 I want to translate our code into Camel otherwise I have the Java code for
the same. But I want to do it in pure  Camel way to support my POC[Proof of
Concept] as well.So that I can propose to translate the complete project
into camel.Till now single thread execution of File and FTP component is the
main bottleneck for me to go ahead.Also,if we will find the way to implement
the above scenario then  it will act as a  workaround to poll multiple files
in multithreaded environment and we will find  its implementation in Camel
Way Only.Thanks a lot Claus.Happy weekends :) 



--
View this message in context: 
http://camel.465427.n5.nabble.com/InOut-pattern-issue-with-FTP-tp5725273p5725438.html
Sent from the Camel - Users mailing list archive at Nabble.com.

Reply via email to