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/configuration/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]

Reply via email to