I have a requirement. We have a CSV file which contains multiple rows.Each Row represents drug information. When i upload the file, i need to take each row and then call a RestFul Service call. currently i am refactoring a for loop using a java.util.concurrent.Executor Service, so that i can make calls parallely. I am thinking of camel.
can someone throw some light on how to use camel in such scenarios.
Current Loop
for(Drug cdrug:drugGroup.getDrugs())
{
for(Drug d:drugs)
{
if(cdrug.getDrugId().equals(d.getDrugId()))
{
httpClient.callRestFulService(d);
}
}
}
Regards Ram
Ralf gives you the right headwords.
The Question about processing large csv files will give you an example, with the reading and processing part of your problem.
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.