Reputation: 11
This is my business case - I receive a JMS message that has a unique database ID based on which I need to retrieve details from DB. Here are 2 options I'm exploring
a) Write a POJO JMS receiver - Then start the batch job. Now the challenge i'm facing is how do I pass the JMS message to the ItemReader? JobExecutionContext - This is not thread safe
b) Write the JMS receiver a ItemReader - Is it possible?
Note: I don't plan to use Spring Integration.
Upvotes: 1
Views: 213
Reputation: 31590
JmsItemReader
for that.Hope this helps.
Upvotes: 1