I reverted to more of a step by step approach, instead of trying to
put it in place in my "big" code base immediately and I blogged about
it here:
http://blog.irm.se/blogs/eric/archive/2011/06/18/Getting-Started-with-Pub_2F00_Sub-using-Rhino-Service-Bus.aspx
http://blog.irm.se/blogs/eric/archive/2011/06/19/Consuming-Events-in-the-Same-Process-as-the-Publisher-with-Rhino-Service-Bus.aspx
http://blog.irm.se/blogs/eric/archive/2011/06/19/Hosting-Rhino-Service-Bus-in-IIS.aspx

In short I get it working with DefaultHost, but I think it could be
interesting to get it working with RemoteAppDomainHost too.
I tried your suggestion and it stops complaining about assmebly load
exception, but instead I get a ArgumentException complaining that the
string can't be empty. I then tried to send the path to the assembly
(and not just the folder) but that gives me a
ConfigurationErrorsException saying "could not find facility
configuration section with the same name of the facility". I'm to new
to RSB and Castle to have any real clue. When searching the exception
I found a tip too check the casing of the facility id, but that is
correct in my config-files.

Any suggestions on how to get the code running with
RemoteAppDomainHost instead of DefaultHost is apprecieated.

Thanks, Eric

On 18 Juni, 20:38, René M. A <[email protected]> wrote:
> Well your second approach with the RemoteAppDomainHost should be the way to
> go. You need to have a host for both the publisher of the events and the
> consumers of the events. And if you want them in the same process I guess
> the only way is to have the service bus for the event consumers hosted in a
> remote appdomain.
>
> I have never tried to to use the RemoteAppDomainHost in a web application,
> maybe the appdomain created doesn't get the applicationbase path set
> correctly? Try using the constructor where you can specify the bin path of
> your web application along with the bootstrapper type:
>
> public RemoteAppDomainHost(string assemblyPath, Type boosterType)
>
> You then need to specify your configuration file using the following method
> on the RemoteAppDomainHost:
>
> public RemoteAppDomainHost Configuration(string configFile)
>
> It would then look something like this in your code:
> var consumerHost = new RemoteAppDomainHost("path to web app assemblies",
>  typeof(ConsumerBootStrapper))
>                 .Configuration("Consumers.config");
> consumerHost .Start();
>
> Don't know if it will solve your problem, but its worth a shot...

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