Alex Mueller on Software and Technology 
Monday, February 05, 2007

I am back on my Monorail kick again, recently developing an application needed to demo our site to clients. Using the latest Monorail framework available from Castle Project, I decided to implement this project which adheres to the MVC pattern.

I started with giving myself one day to figure out if I could use Monorail (MR) easily enough to be productive. As it turns out, in that one day, I was able to create the framework for the site, which is an ASP.NET app, using C#, leveraging the NVelocity view engine and Castle's Windsor Container. The resulting code is so decoupled it is beautiful.

In addition to this single MR application, I am now going to integrate MR into our legacy ASP.NET web app as well. Without doing a rewrite of our current project, we can slowly use MR in situations where it makes better sense. Now I can take advantage of Windsor's dependency injection with ease.

I was able to create a simple ASP.NET application using web forms, modifying session, using forms authentication, and user identity - all that good stuff that ASP.NET provides. I then decided to integrate MR into this app, just to see if the two would play together. As it turns out, they play nicely together, and session remains accessible between the two.

The key to using the two together is to map the *.rails extension, or whatever extension you desire to MR, and *.aspx to web forms in the web.config. I then added Windsor Container and NVelocity, and everything is working. Totally cool!

If you are asking yourself, "great, why would you use MR?" then visit this site. Thanks to the Castle team for their contributions and forum support.

Monday, February 05, 2007 11:09:06 PM (Mountain Standard Time, UTC-07:00) | Comments [0] | Design | Frameworks/Patterns#
Comments are closed.
MuellerDesigns.net
Search
On This Page
PowerShell Documentation
Automate Daily Tasks with PowerShell
SketchPath XPath Editor
Software Testing - Revisited
Architecting Buildings and Software
NBCOlympics.com with Silverlight
Marker Interfaces and C# Attributes
The Phone Screen
Working with ASP.NET MVC and MvcContrib
Thanks to BDD
Twitter
The Opposite of a Singleton?
Removing Duplicate Code in Functions
Add Vista Themes to Longhorn
Changing File Ownership In Vista and Longhorn
Most Popular
JavaScript ReplaceAll Functionality
What is polymorphism?
What is composition?
Sorting with IComparable and IComparer
Applying the Observer Pattern in ASP.NET
MVP in ASP.NET
What is abstraction?
What is encapsulation?
What is a class?
What is inheritance?
Authentication in ASP.NET
Calendar Controls
XPathNavigator.CheckValidity new for 2.0
SQL Server 2005 Connection Issues
Auto-attach to process '[####] aspnet_wp.exe' on m...
What is an object?
FreeTextBox
VMWare and VPC
An Example of Reflection using C#
Caring for the Team
Archive
Links
Categories
My Local Blog Map
Blogroll
About
Powered by:

Disclaimer
The opinions expressed herein are my own personal opinions and do not represent my employer's view in any way.

© Copyright 2009
MuellerDesigns.net

Sign In

Help Those In Need
The Hunger Site
Ronald McDonald House Charities (RMHC) of Western Washington & Alaska