Results 1 to 2 of 2

Thread: Reusing Existing Services : ItemProcessors

  1. #1

    Default 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. #2
    Join Date
    Jun 2005
    Posts
    4,230

    Default

    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.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •