Hi Leo, may be I am getting something wrong here. FortressConfig is not a Configuration at all, but mainly a wrapper for a Context object. For my components I am currently not certain which informartion from the ServletConfig will be used when. It is very likely I have to use Servlet parameters during the service call of a container component. Therefore I would like to put the ServletConfig into the context of my root container ... which seems not to be possible :(
Regards, J�rg > -----Original Message----- > From: Leo Simons [mailto:[EMAIL PROTECTED]] > Sent: Friday, February 21, 2003 8:14 AM > To: [EMAIL PROTECTED] > Subject: Re: [Newbie] Fortress custom config > > > sounds like you want to merge a configuration custom-built from the > servlet info and merge that with a configuration loaded from > a file. You > can use > > http://cvs.apache.org/viewcvs.cgi/avalon-excalibur/configurati on/src/java/org/apache/excalibur/configuration/merged/ConfigurationMerger.java for that. cheers, - Leo Schaible, J�rg wrote: > Hi Fortressers, > > after playing with some sample components I want now to switch over > to my real work. Unfortunately I stumbled immediately about the next > problem. I have currently a webapp similar to the servlet example of > Fortress. Some of my components need information from the servlet > configuration. This information is provided in the intialization call > of the servlet itself where I create my Fortress container. But how > can I add the servlet configuration to the FortressConfig ? > > Adding a new key to the config does not work, since accessing the > config will finalize it. Overloading the class does not work, the > m_context is private and I cannot call the put method. Initializing > the FortressConfig.setContainerConfiguration with an own > Configuration does not work, since I want to load the rest of the > config from the resources. Loading them manually and add a new key > does not work, because to load them I need a SourceResolver which is > not available yet ... hints? > > Regards, J�rg --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
