Layered Architecture. Installing multiple instances of the business and data layers.
Posted on 2005-04-28
I've inherited a web application that uses a layered architecture. The idea behind the system appears to be sound with the business logic being separated from the website processing using COM components registered on the web server etc.
The application has a website which uses a number of methods exposed in a business logic layer. The business logic layer then passes requests to the Data Access Layer which contacts the database and returns results accordingly.
All this works fine!
The problem is when I want to run two of these systems on the same box. The COM components are installed on a per web server basis and are registered in the GAC. The components store the relevant connection to the database. I am therefore stuck with only having one of these web applications per web server.
What I want to be able to do is install several copies of this application, using different web sites on the same server going to different databases. With the current design, this isn't possible.
How should I go about achieving this?