File and FTP Components
Hi, I am using the FTP component with all the options such as preMove, frequency, regular expression include for polling directories. However, my requirement is not to actually read the file into memory or copy it to another location, but just to generate an event and send a JMS. I believe there is an option download=false which would solve this problem, however it is part of 2.11 version which is not release yet. Is there any work around for this ? I have tried using filters, but that doesn't fulfil the requirement, as the options like done, preMove dont work if the filter returns false. I am currently using version 2.10.2. Any advice would be much appreciated. Thanks Abhishek -- View this message in context: http://camel.465427.n5.nabble.com/File-and-FTP-Components-tp5730723.html Sent from the Camel - Users mailing list archive at Nabble.com.
JMS Component - Customized messageConverter
Hi, I am trying to send a customized JMS MapMessage. I am using custom MessageConverter to solve this purpose. However, i wish to send information that is not specific to a route. Am using the syntax below from("file://inbox/order").to("jms:queue:order?messageConverter=#myMessageConverter"); where myMessageConverter has been initialized in spring. While constructing the route i wish to pass an object to its constructor, so that the information can be used to send out the JMS. Could you please advise on how to go about this ? Thanks Abhishek Samuel -- View this message in context: http://camel.465427.n5.nabble.com/JMS-Component-Customized-messageConverter-tp5730725.html Sent from the Camel - Users mailing list archive at Nabble.com.
Re: JMS Component - Customized messageConverter
Hey, I understand spring supports it out of the box, but the object information is not available at spring initialization time. I have the object information at run time and if i cant use the constructor method, at least if there is a way of accessing the setter method of myMessageConverter, that would help. Thanks Abhishek -- View this message in context: http://camel.465427.n5.nabble.com/JMS-Component-Customized-messageConverter-tp5730725p5730746.html Sent from the Camel - Users mailing list archive at Nabble.com.
Re: JMS Component - Customized messageConverter
Hey Claus, Thanks for the reply. Am new to this configuration with spring. How do i go about calling the setter method for the myMessageConverter object given the syntax am using below ? from("file://inbox/order").to("jms:queue:order?messageConverter=#myMessageConverter"); Thanks Abhishek Samuel -- View this message in context: http://camel.465427.n5.nabble.com/JMS-Component-Customized-messageConverter-tp5730725p5730839.html Sent from the Camel - Users mailing list archive at Nabble.com.
Re: File and FTP Components
Hey, Any update on version 2.11 ? Has it been officially released yet ? Thanks Abhishek Samuel -- View this message in context: http://camel.465427.n5.nabble.com/File-and-FTP-Components-tp5730723p5731083.html Sent from the Camel - Users mailing list archive at Nabble.com.
FTP Concurrency - Single threaded or not
Hi, Am aware that the ftp component does not support concurrency, that is multiple files cannot be downloaded at the same time, as it is single threaded. So does adding the threads method after the ftp comonent have no effect ? For example while configuring a route like below from(ftp Source).routeId("name").threads(3).to(destination).bean().end() if i have 10 files at the ftp location, i understand each one will be picked one at a time, but is it going to remain a single thread right up to the end for each file picked up ? I put thread sleep function in the bean method for the first file picked up.. but the next file is not being picked up until the first file is completely processed. So when we say it is single threaded, does it mean from start to finish of the route ? If not, could you please help me understand where i am making the mistake ? Thanks Abhishek Samuel Could you please help me to understand whats going on in the background ? and if there is anyways o -- View this message in context: http://camel.465427.n5.nabble.com/FTP-Concurrency-Single-threaded-or-not-tp5731087.html Sent from the Camel - Users mailing list archive at Nabble.com.