Web apps considerations
If you are using Castle ActiveRecord in a web application, you must add the attribute isWeb="true". This forces ActiveRecord to use a different strategy to hold instances. This is necessary as different threads may serve the same request events in a web application.
More information on the attribute can be found at Xml Configuration Reference article.