[rabbitmq-discuss] how to make Wcf bind to rabbitmq exchange and queue?
Patrick Kenney
pekenney at gmail.com
Wed Jul 15 16:55:36 BST 2009
MSMQ was a point of reference...
RabbitMQ .NET client library API guide has a few snippets... no fully
functional ready to run examples...
RabbitMQ .NET Client Library User Guide... ditto, although it does reference
examples in section 6, building the samples is problematic, using visual
studio as documented and the related samples are not part of a ready to run
solution, that you can walk through in debug mode in visual studio,
AddClient, AddServer, DeclareQueue etc... and they are individual console,
widgets...
so in my view if there was some single C# solution, (winform) that one could
just open and run with a test consumer/subscriber/publisher/create queue
etc., that if one set some break points in, they could in a single solution
(one-stop-shopping) go through all the common tasks in debug mode in visual
studio...
create a queue, dispatcher, publish to that queue, subscribe to that queue,
add address, binding, contract, context, protocol programmaticly, view
message, etc...
thanks in advance.
re:
On Wed, Jul 15, 2009 at 7:47 AM, Alexis Richardson <
alexis.richardson at gmail.com> wrote:
> Patrick
>
> RabbitMQ does not connect to MSMQ directly, although you could wire an
> integration between RabbitMQ and MSMQ through WCF. For the latter, use
> standard MS docs and for the former please can you check out the
> documents on www.rabbitmq.com/dotnet.html and tell us in what way they
> can be improved. The PDFs do contain examples of the type you
> request, or at least, they are supposed to do so ;-)
>
> alexis
>
>
> On Wed, Jul 15, 2009 at 3:43 PM, Patrick Kenney<pekenney at gmail.com> wrote:
> > I have...
> >
> > And as a new user myself, I would like to suggest some very basic "how do
> I"
> > fully functional, one stop shopping samples, for common tasks, and
> similar
> > tasks, such as this is how create, connect, publish, subscribe to a MSMQ
> > queue, via WCF and this is how you do it with RabbitMQ C#, WCF, etc.,
> along
> > the lines that Microsoft does it especially when there are several pdfs
> to
> > go through, and api's to absorb like AMQP...
> > In my view this will facilitate a faster learning and or adoption period
> for
> > RabbitMQ and give it a larger following...
> >
> > thanks in advance.
> >
> > On Wed, Jul 15, 2009 at 3:47 AM, Alexis Richardson
> > <alexis.richardson at gmail.com> wrote:
> >>
> >> Wilson
> >>
> >> Have you read the documentation -- eg. the PDFs -- on this page?
> >>
> >> http://www.rabbitmq.com/dotnet.html
> >>
> >> alexis
> >>
> >>
> >> On Wed, Jul 15, 2009 at 11:43 AM, Wilson Ke<wilson.ke at wealthcraft.com>
> >> wrote:
> >> > Hi all,
> >> >
> >> > I am use Wcf and RabbitMQ to make project. I can use Wcf bind
> >> > RabbitMQ
> >> > to work normal as below ,but I don’t know how to make Wcf bind to
> >> > rabbitmq
> >> > exchange and queue, could you help me? Many thanks!
> >> >
> >> >
> >> >
> >> > C# code:
> >> >
> >> > namespace Server
> >> >
> >> > {
> >> >
> >> > using System;
> >> >
> >> > using System.ServiceModel;
> >> >
> >> > using WcfServiceLibrary1;
> >> >
> >> > using RabbitMQ.ServiceModel;
> >> >
> >> >
> >> >
> >> > class Server
> >> >
> >> > {
> >> >
> >> > public void Run()
> >> >
> >> > {
> >> >
> >> >
> >> >
> >> >
> >> >
> >> >
> >> >
> >> > ServiceHost host = new ServiceHost(typeof(HelloService));
> >> >
> >> > host.Open();
> >> >
> >> >
> >> >
> >> > Console.WriteLine("Service Ready");
> >> >
> >> > Console.ReadLine();
> >> >
> >> >
> >> >
> >> > host.Close();
> >> >
> >> > }
> >> >
> >> > }
> >> >
> >> > }
> >> >
> >> >
> >> >
> >> > Config file:
> >> >
> >> > <?xml version="1.0" encoding="utf-8" ?>
> >> >
> >> > <configuration>
> >> >
> >> > <system.serviceModel>
> >> >
> >> >
> >> >
> >> > <services>
> >> >
> >> > <service name="WcfServiceLibrary1.HelloService">
> >> >
> >> > <host>
> >> >
> >> > <baseAddresses>
> >> >
> >> > <add baseAddress="soap.amqp:///" />
> >> >
> >> > </baseAddresses>
> >> >
> >> > </host>
> >> >
> >> > <endpoint
> >> >
> >> > address="Hello"
> >> >
> >> > binding="rabbitMQBinding"
> >> >
> >> > bindingConfiguration="rabbitMQConfig"
> >> >
> >> > contract="WcfServiceLibrary1.IHelloContract"/>
> >> >
> >> > </service>
> >> >
> >> > </services>
> >> >
> >> > <bindings>
> >> >
> >> > <rabbitMQBinding>
> >> >
> >> > <binding name="rabbitMQConfig"
> >> >
> >> > broker="amqp://192.168.1.87:5672/"
> >> >
> >> > protocolversion="AMQP_0_8"
> >> >
> >> > oneWay="false"
> >> >
> >> > />
> >> >
> >> > </rabbitMQBinding>
> >> >
> >> > </bindings>
> >> >
> >> >
> >> >
> >> > <extensions>
> >> >
> >> > <bindingExtensions>
> >> >
> >> > <add
> >> >
> >> > name="rabbitMQBinding"
> >> >
> >> > type="RabbitMQ.ServiceModel.RabbitMQBindingSection,
> >> > RabbitMQ.ServiceModel, Version=1.0.110.0, Culture=neutral,
> >> > PublicKeyToken=null"/>
> >> >
> >> > </bindingExtensions>
> >> >
> >> > </extensions>
> >> >
> >> >
> >> >
> >> > </system.serviceModel>
> >> >
> >> > </configuration>
> >> >
> >> > _______________________________________________
> >> > rabbitmq-discuss mailing list
> >> > rabbitmq-discuss at lists.rabbitmq.com
> >> > http://lists.rabbitmq.com/cgi-bin/mailman/listinfo/rabbitmq-discuss
> >> >
> >> >
> >>
> >> _______________________________________________
> >> rabbitmq-discuss mailing list
> >> rabbitmq-discuss at lists.rabbitmq.com
> >> http://lists.rabbitmq.com/cgi-bin/mailman/listinfo/rabbitmq-discuss
> >
> >
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.rabbitmq.com/pipermail/rabbitmq-discuss/attachments/20090715/227e8068/attachment.htm
More information about the rabbitmq-discuss
mailing list