开发者

Spring batch JMS writer/reader example

Anybody know of a good resource for a detailed (more so than the Spring Batch docs) look at the uses of JMS Item Writer/Reader in Spring Batch?

Specifically, and because I'm being tasked with trying to reuse an existing system whose only interface is asynchronous over a queue, I'm wondering if the following is possible:

Step 1: read some data and build a message.

Step 2: Dr开发者_如何学Cop message on queue using JMSItemWriter.

Step 3: Wait for message to come back using JMSItemReader on the response queue.

Step 4: Do some other stuff

... Rinse and repeat, a few thousand times a day.

Or in other words, essentially using Spring Batch to force synchronous interaction with an asynchronous resource. I'd like to make sure before I get further in research, that this is A) possible, and B) not shameless abuse of the framework that will cause major headaches down the road.

Thanks in advance for any info.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜