Mock or simulate Message Queue (JMS)

前端 未结 4 1600
失恋的感觉
失恋的感觉 2021-02-04 00:11

There is a message(text), which format and content i definitely know.
For now,class in Java,that parses and reads this message from file,is implemented.

In real wor

4条回答
  •  一个人的身影
    2021-02-04 00:52

    Generally I agree with Eugene Kuleshov. But if you still need such mocking I'd suggest you to use BlckingQueue from java.util.concurent package. I think it is not a big problem to wrap it with javax.jms.Queue interface. BTW it is a good idea for some kind of open-source project.

提交回复
热议问题