一旦我在WCF服务中处理了一条消息,而我的客户端不再存在,那么我该如何在另一个队列中创建一条新消息? [英] Once I've processed a message in my WCF Service and my client no longer exists how do I then create a new message in another queue?
问题描述
我的客户端创建一条消息并将其发送给服务。然后服务处理该消息,如果成功,则需要将消息放入另一个队列。 最好的方法是什么 - 我应该在服务中创建一个客户端,然后发送到另一个
服务?
谢谢
Pete
如果您使用的是激活服务,那么您的服务会自动获取在受监视队列中收到消息时激活。现在,当您的客户端向服务发送消息并且服务已完成该消息时,它通常可以将消息
发送到正在监视的另一个队列。一旦消息到达,您的第二个服务将被激活。
谢谢
Sudhir
My client creates a message and sends it to the service.The service then processes that and if successful needs to drop a message in another queue. What is the best way to do this - should I create a client in the service that can then send to another service?
Thanks
Pete
If you are using activation service, then your service gets automatically activated when a message is received in the monitored queue. now when your client sends a message to a service and service is done processiong the message, it can normally send a message to the other queue which is being monitored. As soon as message arrives there, your second service will get activated.
Thanks
Sudhir
这篇关于一旦我在WCF服务中处理了一条消息,而我的客户端不再存在,那么我该如何在另一个队列中创建一条新消息?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!