简体   繁体   English

Web服务vs JMS接收

[英]Web Services vs JMS receive

I currently have a messaging application with several adapters/listeners. 我目前有一个带有多个适配器/侦听器的消息传递应用程序。 Each adapter has a receive method that receives a message, processes it and puts it in the next queue for the next adapter to pick it up for processing. 每个适配器都有一个接收方法,该方法接收消息,对其进行处理并将其放入下一个队列中,以便下一个适配器将其提取以进行处理。

I am trying to expose the functionality of the first adapter as a web service and wanted it to return some object type. 我试图将第一个适配器的功能作为Web服务公开,并希望它返回某些对象类型。 But since the adapter is a messaging adapter the return type is always void. 但是由于适配器是消息适配器,所以返回类型始终为空。

How can achieve this behavior. 如何才能实现这种行为。 Is using call back methods an option? 使用回叫方法是一种选择吗? Any suggestions? 有什么建议么?

为什么不为了使用对象适配器而覆盖使用消息传递适配器的整个方法?

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM