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 <[email protected]> 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 <[email protected]>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 [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]<rhino-tools-dev%[email protected]>
> .
> For more options, visit this group at
> http://groups.google.com/group/rhino-tools-dev?hl=en.
>



-- 
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 [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.

Reply via email to