简体   繁体   中英

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. 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?

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

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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