1 <?xml version=
"1.0" encoding=
"utf-8" ?>
5 <section name=
"monoRail"
6 type=
"Castle.MonoRail.Framework.Configuration.MonoRailSectionHandler,Castle.MonoRail.Framework" />
8 type=
"Castle.Windsor.Configuration.AppDomain.CastleSectionHandler, Castle.Windsor" />
9 <section name=
"log4net"
10 type=
"log4net.Config.Log4NetConfigurationSectionHandler, log4net" />
14 As you see we're using Windsor integration (which is optional!!),
15 so Inversion of control is enabled for controllers and filters.
17 On the other hand this forces us to register each controller
18 as components. See the include file 'controllers.config'
20 <monoRail useWindsorIntegration=
"true">
23 customEngine=
"Castle.MonoRail.Framework.Views.NVelocity.NVelocityViewEngine, Castle.MonoRail.Framework.Views.NVelocity" />
26 <!-- we're using includes just to keep things tidy -->
28 <include uri=
"file://properties.config" />
30 <include uri=
"file://common-facilities.config" />
32 <include uri=
"file://data-access-ar.config" />
34 <!-- <include uri="file://data-access-nh.config" /> -->
36 <!-- <include uri="file://data-access-standard.config" /> -->
38 <include uri=
"file://controllers.config" />
40 <include uri=
"file://common-services.config" />
43 <!-- used only as nhibernate requires it -->
45 <appender name=
"ConsoleAppender" type=
"log4net.Appender.ConsoleAppender">
46 <layout type=
"log4net.Layout.PatternLayout">
47 <param name=
"ConversionPattern" value=
"%d [%t] %-5p %c [%x] -%m%n" />
50 <level value=
"INFO" />
51 <appender-ref ref=
"ConsoleAppender" />
57 <!-- if you're using IIS, remember to map this extension to ASP.Net ISAPI -->
59 <add verb=
"*" path=
"*.rails"
60 type=
"Castle.MonoRail.Framework.MonoRailHttpHandlerFactory, Castle.MonoRail.Framework" />
63 <add name=
"monorail" type=
"Castle.MonoRail.Framework.EngineContextModule, Castle.MonoRail.Framework" />