Index: Rhino.ServiceBus/Hosting/DefaultHost.cs
===================================================================
--- Rhino.ServiceBus/Hosting/DefaultHost.cs	(revision 2071)
+++ Rhino.ServiceBus/Hosting/DefaultHost.cs	(working copy)
@@ -8,9 +8,6 @@
 using log4net.Config;
 using Rhino.ServiceBus.Actions;
 using Rhino.ServiceBus.Impl;
-using Rhino.ServiceBus.Internal;
-using Rhino.ServiceBus.MessageModules;
-using Rhino.ServiceBus.Msmq;
 
 namespace Rhino.ServiceBus.Hosting
 {
@@ -22,6 +19,7 @@
         private IWindsorContainer container;
         private IStartableServiceBus serviceBus;
         private string bootStrapperName;
+    	private string configurationFileName;
 
         public void SetBootStrapperTypeName(string typeName)
         {
@@ -74,8 +72,13 @@
 
         private void CreateContainer()
         {
-            container = new WindsorContainer(new XmlInterpreter());
-            var facility = new RhinoServiceBusFacility();
+			if (container == null)
+			{
+				container = string.IsNullOrEmpty(configurationFileName) 
+					? new WindsorContainer(new XmlInterpreter()) 
+					: new WindsorContainer(new XmlInterpreter(configurationFileName));
+			}
+        	var facility = new RhinoServiceBusFacility();
             bootStrapper.ConfigureBusFacility(facility);
             container.Kernel.AddFacility("rhino.esb", facility);
         }
@@ -158,5 +161,15 @@
                 action.Execute();
             }
         }
+
+		public void UseContainer(IWindsorContainer container)
+		{
+			this.container = container;
+		}
+
+		public void UseConfigurationFile(string configurationFileName)
+		{
+			this.configurationFileName = configurationFileName;
+		}
     }
 }
\ No newline at end of file
