Re: Excelfile import in java and transfer in a Database

2014-03-27 Thread skumar
Hey Richard, Can we use camel file component to write to an Excel file or we will have to use some stream writer for this purpose. Regards, Sanjeev -- View this message in context:

How to print blank for decimals and long datatype with null value

2013-11-26 Thread skumar
Hi everyone, I have a decimal data type billingFxRate defined in a pojo class and mapped to a BeanIo file like When the value of this field is null it prints it as 0.000 in the outbound file.I want when it is blank it should print a space or nothing.I tried to use

using field as key+value on the BeanIo

2013-09-26 Thread skumar
Hi All, I am using BeanIO for defining the file format while marshal/writing my output stream.Here each field of a particular record is some sort of a key/Value and separated by a delimiter. Here key is the Tag code(e.g. AC) and value is tag description either blank or represent a database

Consuming Excel File with consumer template

2013-08-15 Thread skumar
Hi All, Can some one help me in using excel file with consumer template. I am trying it with a simple route for testing: route id=Generic-Supply-test from uri=timer://foo?fixedRate=trueamp;period=3000 / setHeader

Re: Consuming Excel File with consumer template

2013-08-15 Thread skumar
For those who have the same issue I like to share the information that : I get rid of this bug by using this line InputStream body =consumer.receiveBody(endPointUri,2000,InputStream.class); and changing correspondingly on the ExcelParser class. thanks, -- View this message in context:

Re: Unable to use move,movefailed and donefilename with consumer template endpoint Uri

2013-08-13 Thread skumar
Thanks,Claus.I was able to get rid of this bug by placing the endpoint Uri on the camel context inside simple tags and then get this from the camel header on the java class. Eg. setHeader headerName=comsumerUrlsimplefile:${in.header.clientFileDir}?include=.*_BNYM_.*txt

Unable to use move,movefailed and donefilename with consumer template endpoint Uri

2013-08-07 Thread skumar
Hi, I have gone through lots of regarding the issue and came to know if I use consumer.receiveBody() I can move the file but when I am using it I am getting error like: Exception while consuming the locates file:null :Failed to resolve endpoint: file:///home/... Failed to resolve endpoint:

Re: Unable to use move,movefailed and donefilename with consumer template endpoint Uri

2013-08-07 Thread skumar
Claus, I have gone through the section Timer based polling consumer at http://camel.apache.org/polling-consumer.html as I am using a timer in my route defnition. I try to follow it but still getting the same error.It seems some thing is wrong with the endpoint itself String

Re: combining the existing content with a file having dynamic uri then moving the file

2013-08-05 Thread skumar
Hi Claus, I am using consumer template to for the same work in the thread as I want a pattern based reading of file and then move the file after renaming it with current date some thing like :

combining the existing content with a file having dynamic uri then moving the file

2013-07-28 Thread skumar
Hi All, I am a camel newbie and searching for more than 3 days but couldn't get an appropiate answer. Actually I have to process lot of files one by one using the same route based on some criteria.I get the criteria value and the uri of the file from the database,spitted it using a splitter

Re: combining the existing content with a file having dynamic uri then moving the file

2013-07-28 Thread skumar
Thanks,Claus.It is working fine.But I have still one question.Can I use it for reading the pattern based file and moving the file to a archive directory.Something like this: from uri=quot;file:{{inbound_home}}/pgsl?lt;binclude=.*.*xls*amp;