well, so I tried that: the web site is configured like that:
<facility id="rhino.esb" > <bus threadCount="1" numberOfRetries="5" endpoint="msmq://localhost/limpens.inventory" /> <messages> <add name="Limpens.Messages.SalesOrders" endpoint="msmq://localhost/limpens.salesorders"/> <add name="Limpens.Messages.Inventory" endpoint="msmq://localhost/limpens.inventory"/> </messages> </facility> and the salesorder consumers service like that: <facility id="rhino.esb" > <bus threadCount="1" numberOfRetries="5" endpoint="msmq://localhost/limpens.salesorders" /> <messages> <add name="Limpens.Messages.SalesOrders" endpoint="msmq://localhost/limpens.inventory"/> </messages> </facility> and start it so: .\Rhino.ServiceBus.Host.exe /Action:Debug /Name:InvBus /Assembly:Limpens.SalesOrders.Services.dll /BootStrapper:SalesOrdersBootStrapper I have the same thing also for the InventoryBootStrapper with an inverted config. So I run both - this takes a few seconds and appears to be a running process, waiting for "Press any key to continue...", but it is running, not exiting. I have to explicitly ctrl+c it to end. but I get a "Cannot send a message before transport is started" [InvalidOperationException: Cannot send a message before transport is started] Rhino.ServiceBus.Msmq.MsmqTransport.Send(Endpoint destination, Object[] msgs) +119 Rhino.ServiceBus.Impl.DefaultServiceBus.Send(Endpoint endpoint, Object[] messages) +191 Rhino.ServiceBus.Impl.DefaultServiceBus.Send(Object[] messages) +67 whenever I try to send something to the bus. Is there anything obvious I am doing wrong? Thanks! Jan On Mon, Mar 15, 2010 at 5:17 PM, Jan Limpens <jan.limp...@gmail.com> wrote: > > It is really not all that clear as I would want it to be (for me), I am > afraid. :P > The sample does not seem to use the host at all and I am uncertain, what the > host actually does and what the running application is supposed to provide. > I am in doubt, if there should be only one instance of the service per > computer or one per bootstapper. The presence of the /Bootstrapper param > leads me to believe the latter is true. > > so > container.Register(Component. > For<IMessageModule>().ImplementedBy<UnitOfWorkMessageModule>()); > var host = new DefaultHost(); > host.UseContainer(container); > > // this is what the service provides me with, right? > > host.BusConfiguration(c => c.Bus(url) > .Receive(name, url) > .Threads(2)); > host.Start<InventoryBootStrapper>(); > > // end > DomainEvents.EventContainer = new > ServiceBusEventResolver(container.Kernel); > > this means, I would have to register my IMessageModules in the bootstrapper, > right? Of course this would require me to also deploy everything my > UnitOfWorkMessageModule (rhino.commons, nhibernate) depend on, too. For these > to be able to do something, probably my entities and their mappings, too. > > --> Am I on the right track? > > If I am, what is a good way to deploy this? Every time I update other parts > of the app that use the bus, I suppose the bus must be updated as well. > Probably I will need to stop the bus services, uninstall them, reinstall the > new ones, etc... > What is a good way to do this? > > Thanks!!! > Jan > > On Fri, Mar 12, 2010 at 3:44 PM, Ayende Rahien <aye...@ayende.com> wrote: >> >> Look at the Rhino.ServiceBus.Host and IBootStrapper >> The Starbucks example shows how this can be done. >> >> On Fri, Mar 12, 2010 at 5:43 PM, Jan Limpens <jan.limp...@gmail.com> wrote: >>> >>> hi, >>> >>> currently I run my esb directly from my web app. >>> >>> public class BusSetup : IWindsorInstaller >>> { >>> public void Install(IWindsorContainer container, >>> IConfigurationStore store) >>> { >>> >>> container.Register(Component.For<IMessageModule>().ImplementedBy<UnitOfWorkMessageModule>()); >>> var host = new DefaultHost(); >>> host.UseContainer(container); >>> host.BusConfiguration(c => c.Bus(url) >>> .Receive(name, url) >>> .Threads(2)); >>> host.Start<InventoryBootStrapper>(); >>> DomainEvents.EventContainer = new >>> ServiceBusEventResolver(container.Kernel); >>> } >>> } >>> >>> which is nice, because i can easily share my container with the bus. How >>> would this look like if I made the suggested windows service from this? >>> >>> -- >>> Jan >>> >>> -- >>> You received this message because you are subscribed to the Google Groups >>> "Rhino Tools Dev" group. >>> To post to this group, send email to rhino-tools-...@googlegroups.com. >>> To unsubscribe from this group, send email to >>> rhino-tools-dev+unsubscr...@googlegroups.com. >>> 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 rhino-tools-...@googlegroups.com. >> To unsubscribe from this group, send email to >> rhino-tools-dev+unsubscr...@googlegroups.com. >> For more options, visit this group at >> http://groups.google.com/group/rhino-tools-dev?hl=en. > > > > -- > Jan -- Jan -- You received this message because you are subscribed to the Google Groups "Rhino Tools Dev" group. To post to this group, send email to rhino-tools-...@googlegroups.com. To unsubscribe from this group, send email to rhino-tools-dev+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/rhino-tools-dev?hl=en.