You want to use One Way Bus. See the tests here: http://github.com/ayende/rhino-esb/blob/1683cc2ee6571f541e66eea1e6b5ff84c1450444/Rhino.ServiceBus.Tests/CanSendMsgsFromOneWayBus.cs
On Sat, May 29, 2010 at 12:37 AM, JakeS <[email protected]> wrote: > I'm working on setting up a system where I have one requester > application that will put requests in a queue, then multiple workers > that will handle items from that queue. I'm pretty new to ESB > concepts and am trying to work from the Starbucks sample (but > simpler). > > So far I've managed to make both apps work, but the "requester" > insists on trying to HANDLE its own messages too! I can't figure out > how to configure this app to only be able to send messages, not to > consume them too. Here's the program: > > PrepareQueues.Prepare("msmq://localhost/videotoencode", > QueueType.Standard); > var requestHost = new DefaultHost(); > requestHost.BusConfiguration(c => c.Bus("msmq://localhost/ > videotoencode") > .Receive("Messages.VideoToEncode", > "msmq://localhost/ > videotoencode")); > requestHost.Start<RequesterBootstrapper>(); > > var bus = requestHost.Container.Resolve<IServiceBus>(); > > var requester = new Requester(bus); > int x; > for(x = 0;x <51;x++) > { > requester.Request(GetRequest(x.ToString())); > } > Console.ReadLine(); > > I think it's the .Receive() line that's causing me trouble. If that's > in it then both my requester.exe AND my worker.exe run, but the > requester.exe starts up a worker class starts handling messages too > > But if I take that line out, the requester.exe simply will not run, > telling me that "Could not find no message owner for > Messages.VideoToEncode". > > I know I'm doing something very wrong. If someone could point me in > the right direction I'd really appreciate it. > > -- > You received this message because you are subscribed to the Google Groups > "Rhino Tools Dev" group. > To post to this group, send email to [email protected]. > To unsubscribe from this group, send email to > [email protected]<rhino-tools-dev%[email protected]> > . > For more options, visit this group at > http://groups.google.com/group/rhino-tools-dev?hl=en. > > -- You received this message because you are subscribed to the Google Groups "Rhino Tools Dev" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/rhino-tools-dev?hl=en.
