且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

一旦我在WCF服务中处理了一条消息,而我的客户端不再存在,那么我该如何在另一个队列中创建一条新消息?

更新时间:2023-11-25 13:32:52

如果您使用的是激活服务,那么您的服务会自动获取在受监视队列中收到消息时激活。现在,当您的客户端向服务发送消息并且服务已完成该消息时,它通常可以将消息
发送到正在监视的另一个队列。一旦消息到达,您的第二个服务将被激活。



谢谢


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