Hi,
I have two files to convert from csv file to xml file and I also have
another file (properties or excel file) to lookup. So I would like to read
value from that excel file and convert my csv to xml file based on those
values. I did one java to read those value from that lookup table file but I
can't specify the file path location in my bean. Following is the way I
injected java in my bean.
*
<bean id="filePath" class="com.beans.readFile">
<property name="location">
<value>"D://workspace//data//sample_cfg.cfg"</value>
</property>
</bean> *
Following is my java to return filePath.
*public String readFile(String fPath){
return fPath;
}*
but I got error for calling like that. How can I achieve this approach?
--
View this message in context:
http://camel.465427.n5.nabble.com/Reading-file-using-camel-tp5744653.html
Sent from the Camel - Users mailing list archive at Nabble.com.