Announcement Announcement Module
No announcement yet.
Reusing Existing Services : ItemProcessors Page Title Module
Move Remove Collapse
Conversation Detail Module
  • Filter
  • Time
  • Show
Clear All
new posts

  • Reusing Existing Services : ItemProcessors

    I have created an online application using Spring Integation.
    Using Spring Integration I have created various Service Activators.

    Now I want to use the same classes that were used in the Online application for a Batch application. For this I would like to use these Service Activators as ItemProcessors. However with the Service Activator (Integration) and the ItemReaderAdapter (Batch) you can specify the bean and the method to call. Is this also possible with a "ItemProcessorAdapter" or do you always have to implement the ItemReaderAdapter interface linking the code to Spring Batch which doesn't seem good practice.

  • #2
    ItemReaderAdapter is not an interface, so maybe that was a typo? As it happens there is no ItemProcessorAdapter in the framework right now, but there's no reason why we couldn't add one in 2.0.1 (please raise an issue in JIRA). You can easily write your own in the meantime, or use the MessagingGateway from Spring Integration.

    To provide the XML and annotation-based programming models you have in Spring Integration would be more of a 2.1.0 feature.