在客户端使用Microsoft消息队列在线等待服务器 [英] using microsoft message queue in client side waiting the server online

查看:90
本文介绍了在客户端使用Microsoft消息队列在线等待服务器的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个具有服务器端和客户端的应用程序,我希望所有客户端将其消息发送到他们的队列,并等待服务器联机,服务器将从它们的队列中获取客户端消息.谁能对此有个想法并给我样本?
millayee

i have an application which have a server side and client side i want all the clients to send their messages to their queue and waiting to the server to be online and the server will fetch the clients message from their queue. can anyone have an idea on this and give me sample?
millayee

推荐答案

对于客户端,我肯定会使用WCF:

http://blogs.msdn.com/b/motleyqueue/archive/2009/05/31/msmq-and-wcf-getting-started.aspx [ http://msdn.microsoft.com/en-us/library/ms978430.aspx [ ^ ]

至于示例,您已经通过找到codeproject完成了最困难的部分.最简单的方法是在此处搜索文章,因为有很多可以帮助您的事情:

http://www.codeproject.com/search.aspx? q = msmq& x = 0& y = 0& sbo = kw [
For the client I''d definitely look at using WCF:

http://blogs.msdn.com/b/motleyqueue/archive/2009/05/31/msmq-and-wcf-getting-started.aspx[^]

There is a dedicated binding for MSMQ and it''s pretty easy to implement.

For the server side you could use WCF again, or there''s an API:

http://msdn.microsoft.com/en-us/library/ms978430.aspx[^]

As for samples, you''ve done the hard part by finding codeproject. The easy bit would be to search the articles on here, because there are a great deal that can help you:

http://www.codeproject.com/search.aspx?q=msmq&x=0&y=0&sbo=kw[^]


这篇关于在客户端使用Microsoft消息队列在线等待服务器的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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