Hi,

I am reading a file line by line...this program will check for filenames
which have .lis extension....I am retrieving the filenames...after getting
the filenames I have to setHeader with comma separeted values of all the
filenames.... How to do it?

while((strLine=br.readLine())!=null)
{
         if(strLine.contains(".lis"))
         {
                                         
                 fileName[i]=strLine.substring(strLine.lastIndexOf('/')+1);
                                        
                 
exchange.getIn().setHeader("FileNamesWithoutExtension",fileName[i]);

                i++;
         }
                                 
 }

Thanks



--
View this message in context: 
http://camel.465427.n5.nabble.com/SetHeader-with-same-header-name-having-multiple-values-tp5745993.html
Sent from the Camel - Users mailing list archive at Nabble.com.

Reply via email to