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

Reply via email to