You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@avalon.apache.org by Rajendra Ghorpade <rg...@voiceobjects.com> on 2003/04/23 10:59:10 UTC
Changing from ECM to Fortress(Embedded containers)
Hi All,
I want to change my current application from the ECM to Fortress.This is running in a servlet environment.As there was no container concept in the excalibur I had my own container.I found Fortress appealing and wanted to change to Fortress.:-)
What I need here is to embed different containers.Reason to do so is we have system components which are used to start/stop the embedded container.
I have a main container which hosts two containers.One contains the system components and the other normal components. System components are generally used to monitor and govern the behaviour of the components in the normal container.
Scenario is as below :
Main Container
|
----------------------------------------
| |
System components Normal Container
Container
The embedded containers would be the Fortress containers. Normal container is extension of the Fortress container as I have to do some application specific things. The System components container is a DefaultContainer from Fortress. And the main container is a custom container. Normal container is used to get some metadata in the cache on which my application works.This is done during initalization of some fo the components.If the metadata is changed I need to restart the container.
If I start and stop the complete system i need to start/stop the main container.If I had to change the metadata I need to just start/stop the normal container.The system components are not changed throughout the life of the main container.Those are static services to the normal container.
The communication between some of the system components and the normal components is through a datastructure passed to the normal container context.
Is this a better design? or I can do something more simple.
Or should I make the two container as components in the main container?
Thanx in advace
Raj
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@avalon.apache.org
For additional commands, e-mail: dev-help@avalon.apache.org