Relaxed the need for Types that represent database boundaries to extend from ActiveRe...
[castle.git] / Samples / Castle / PetStore.Web / Web.config
blob821027fa885e032c14badceb97a4da35f41e1807
1 <?xml version="1.0" encoding="utf-8" ?>
2 <configuration>
4 <configSections>
5 <section name="monoRail"
6 type="Castle.MonoRail.Framework.Configuration.MonoRailSectionHandler,Castle.MonoRail.Framework" />
7 <section name="castle"
8 type="Castle.Windsor.Configuration.AppDomain.CastleSectionHandler, Castle.Windsor" />
9 <section name="log4net"
10 type="log4net.Config.Log4NetConfigurationSectionHandler, log4net" />
11 </configSections>
13 <!--
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'
19 -->
20 <monoRail useWindsorIntegration="true">
21 <viewEngine
22 viewPathRoot="views"
23 customEngine="Castle.MonoRail.Framework.Views.NVelocity.NVelocityViewEngine, Castle.MonoRail.Framework.Views.NVelocity" />
24 </monoRail>
26 <!-- we're using includes just to keep things tidy -->
27 <castle>
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" />
41 </castle>
43 <!-- used only as nhibernate requires it -->
44 <log4net>
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" />
48 </layout>
49 <root>
50 <level value="INFO" />
51 <appender-ref ref="ConsoleAppender" />
52 </root>
53 </appender>
54 </log4net>
56 <system.web>
57 <!-- if you're using IIS, remember to map this extension to ASP.Net ISAPI -->
58 <httpHandlers>
59 <add verb="*" path="*.rails"
60 type="Castle.MonoRail.Framework.MonoRailHttpHandlerFactory, Castle.MonoRail.Framework" />
61 </httpHandlers>
62 <httpModules>
63 <add name="monorail" type="Castle.MonoRail.Framework.EngineContextModule, Castle.MonoRail.Framework" />
64 </httpModules>
65 </system.web>
67 </configuration>