As I know JMSwriter
not supports it (it writes to default destination of jmsTemplate
).
But you may just implement your own ItemWriter
, inject all jmsTemplates
in it and write custom decistion logic to select appropriate destionation and write to it.
Another way - use ClassifierCompositeItemWriter , put a set of JmsWriters
to it and select one by your classifier