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