Announcement Announcement Module
No announcement yet.
Posting on multiple queues using single job/ JMSwriter Page Title Module
Move Remove Collapse
Conversation Detail Module
  • Filter
  • Time
  • Show
Clear All
new posts

  • Posting on multiple queues using single job/ JMSwriter

    Hi All,

    I am a newbie at Spring Batch and have recently started using it.

    I have a requirement where I need to post/write the messages read from each DB record on different queues using single Job. As I have to use reader to read the messages from DB and use processor to decide on which queue I have to post it.

    So my question is Can I use single JMSwriter to post the messages on different queues as I have to use single Job and DB Reader.

    Thanks in Advance

  • #2
    I'd recommend using the ClassifierCompositeItemWriter. This ItemWriter allows you to develop a Classifier implementation that would be used to determine which queue to write it to. You can read more about this ItemWriter here: