Camel-Split List <MyObj> и обрабатывает каждый объект Java - XML Config
Я не могу разделить объекты Java, которые находятся в списке. Как я могу токенизировать / конвертировать Body в отдельные объекты Java?
<route id="cleanupMigratedFiles" autoStartup="true">
<from uri="timer://kickoff?period=5s" />
<bean ref="migrationProcessor" method="getCacheDeleteObjects" /> <!-- this gives me a List-of-CacheMigr -->
<log message="\n\t########\n\tCleanupMigrated file: ${body}" />
<pipeline>
<split>
<tokenize /> <!-- How to tokenize a List-of-CacheMigr -->
<convertBodyTo type="era.oddw.entity.CacheMigr" /> <!-- Do I need this? -->
<log message="\n\t########\n\tCleanupMigrated file: ${body}" />
</split>
</pipeline>
</route>