Moving this code

            _container = new WindsorContainer(new XmlInterpreter());
            new
RhinoServiceBusConfiguration().UseCastleWindsor(_container).Configure();

to Application_Start fixed it.

Thank you all for your responses and help.



On Tue, Sep 27, 2011 at 4:40 PM, Jason Meckley <[email protected]> wrote:
> @jaun
> it looks like you are creating/configuring the container & service bus in
> the ctor, not Application_Start. move this code to application start prior
> to setting the controller factory.
>
> the global object is not a singleton. a new instance is created for each
> request. Application_Start (and Application_End) are unique methods, they
> are called exactly one time during the scope of the entire application.
> There are other unique methods Application_Error, Session_Start,
> Session_End, Application_BeginRequest, Application_EndRequest. they are
> automagically wired into the pipeline based on the naming conventions.
>
> --
> You received this message because you are subscribed to the Google Groups
> "Rhino Tools Dev" group.
> To view this discussion on the web visit
> https://groups.google.com/d/msg/rhino-tools-dev/-/GGUe-rd9l-sJ.
> 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.
>

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