Hi,
I sent this email a few days ago. Has anybody had a chance to review this? If you have
any questions or don't understand something in this mail please ask me and try to
explain the issue better.
Regards,
Unico Hommes
> -----Oorspronkelijk bericht-----
> Van: Unico Hommes
> Verzonden: woensdag 15 januari 2003 12:48
> Aan: Slide Developers Mailing List
> Onderwerp: Loading parameters in EmbeddedDomain
>
>
>
> Hi,
>
> I noticed that when Slide was running in integrated mode with
> Catalina, i.e. when Slide is started from within the catalina
> wrapper classes, no parameters from Domain.xml were being
> loaded and so no versioning was working in that scenario. I
> traced the reason for this to be the fact that
> wrappers.catalina.SlideServlerListener starts Slide using
> EmbeddedDomain which has no means of loading parameters into
> the Domain.
>
> I fixed the problem by adding the following package private
> method to Domain:
>
> static void setParameters( Hashtable parameters ) {
> Domain.parameters = parameters;
> }
>
> the following public method to EmbeddedDomain:
>
> public void setParameters( Hashtable parameters ) {
> Domain.setParameters( parameters );
> }
>
> and finally added the following code to
> SlideServerListener::initializeDomain:
>
> // Loading domain parameters
> Enumeration parametersEnum =
> slideConfiguration.getConfigurations("parameter");
> Hashtable parameters = new Hashtable();
> while( parametersEnum.hasMoreElements() ) {
> Configuration p =
> (Configuration)parametersEnum.nextElement();
> parameters.put( p.getAttribute("name"), p.getValue() );
> }
> domain.setParamters( parameters );
>
> As I am not aware of all the design issues involved perhaps
> someone could review these changes and comment on them. If
> there are no problems with this approach I could prepare a
> patch if you like.
>
> Regards,
>
> Unico Hommes
>
>
>
> --
> To unsubscribe, e-mail:
<mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>
--
To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>