tomcat-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Kief Morris <k...@bitbull.com>
Subject Re: FileStore
Date Thu, 28 Dec 2000 16:44:06 GMT
Craig R. McClanahan typed the following on 09:35 AM 12/27/2000 -0800
>> >* Create another level of nesting inside <Manager> called <Store>.
 This is
>> >  probably better, because you can now configure the properties of the
>> >  Store implementation using <Store> attributes.

I haven't had much luck getting this working. I've got the following in my
server.xml:

<Context path="/examples" docBase="examples" debug="3"
              reloadable="true">
    <Manager className="org.apache.catalina.session.PersistentManager"
              debug="3">
        <Store className="org.apache.catalina.session.FileStore"/>
    </Manager>

Then I put some stuff into startup/Catalina.java, basically copying the
code for Manager (this is also in the attached patch for reference):

	mapper.addRule("Server/Service/Engine/Host/Manager/Store",
                       mapper.objectCreate
		       ("org.apache.catalina.session.FileStore",
			"className"));
	mapper.addRule("Server/Service/Engine/Host/Manager/Store",
                       mapper.setProperties());
	mapper.addRule("Server/Service/Engine/Host/Manager/Store", mapper.addChild
		       ("setStore", "org.apache.catalina.Store"));
[...]
	mapper.addRule("Server/Service/Engine/Manager/Store", mapper.objectCreate
		       ("org.apache.catalina.session.FileStore",
			"className"));
	mapper.addRule("Server/Service/Engine/Manager/Store",
                       mapper.setProperties());
	mapper.addRule("Server/Service/Engine/Manager/Store", mapper.addChild
		       ("setStore", "org.apache.catalina.Store"));
[...]
	mapper.addRule(prefix + "/Store",
		       mapper.objectCreate
		       ("org.apache.catalina.session.FileStore",
			"className"));
	mapper.addRule(prefix + "/Store",
		       mapper.setProperties());
	mapper.addRule(prefix + "/Store", mapper.addChild
		       ("setStore", "org.apache.catalina.Store"));

The problem is I don't understand enough about what's going on here to
debug it - the FileStore doesn't seem to be instantiated, and the PersistentManager's
setStore() definitely isn't being called. Is there any reference to how this all fits together?
XmlMapper.java is uncommented :-( Otherwise, what should I do to make this work?

Kief

Mime
View raw message