Apache CXF 3 JMS对多个并发使用者的支持 [英] Apache CXF 3 JMS support for multiple concurrent consumers

查看:279
本文介绍了Apache CXF 3 JMS对多个并发使用者的支持的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

CXF 3.0删除了对并发使用者配置的支持.我是CXF的JMS支持的新手,但是在CXF 3.0中,基于JMS的SOAP服务是单线程的:当我将两个SOAP消息添加到队列中时,第二条消息直到第一条消息完成后才开始处理.我是在做错什么,还是在CXF的JMS实现中有限制?

CXF 3.0 removed support for configuration of concurrent consumers. I'm new to CXF's JMS support, but in CXF 3.0, JMS-based SOAP services are being single threaded: when I add two SOAP messages to a queue, the second message does not begin processing until the first message is completed. Am I doing something wrong, or is this a limitation in CXF's JMS implementation?

推荐答案

是的,您正确并正确地进行了操作,CXF 3.0不支持并发使用者.最近在邮件列表中交换了一些与此有关的电子邮件.您可以看到它这里.但是,似乎CXF 3.0.3已修复.在JIRA中查看问题.

Yes, you are right and doing it correctly, CXF 3.0 does not support concurrent consumers. A few e-mails were exchanged recently in the mailing list about this. You can see it here. However it seems that CXF 3.0.3 was fixed. Check out the issue in JIRA.

您可以通过显式实现方法的异步版本,然后使用@UseAsyncMethod注释同步方法,尝试在服务器端实现纯异步行为.

You can try to implement pure asynchronous behaviour on the server side by explicitly implementing the async versions of the methods and then annotate the sync methods with @UseAsyncMethod.

这篇关于Apache CXF 3 JMS对多个并发使用者的支持的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆