cocoon-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Carsten Ziegeler" <cziege...@s-und-n.de>
Subject Confusion about Stores
Date Wed, 13 Feb 2002 10:54:23 GMT
Hi,

the whole store configuration is (at least for me) very confusing:

Quoting the cocoon.roles:
  <role name="org.apache.cocoon.components.store.Store"
        shorthand="cache-transient"
        default-class="org.apache.cocoon.components.store.MRUMemoryStore"/>

  <role name="org.apache.cocoon.components.store.Store/Filesystem"
        shorthand="repository"
        default-class="org.apache.cocoon.components.store.FilesystemStore"/>

  <role name="org.apache.cocoon.components.store.Store/PersistentCache"
       shorthand="cache-persistent"
       default-class="org.apache.cocoon.components.store.FilesystemStore"/>

And the cocoon.xconf:
  <repository class="org.apache.cocoon.components.store.FilesystemStore"
              logger="core.store.repository">
  </repository>

  <cache-persistent
class="org.apache.cocoon.components.store.FilesystemStore"
                    logger="core.store.persistent">
  </cache-persistent>

  <!-- Memory Storing: -->
  <cache-transient class="org.apache.cocoon.components.store.MRUMemoryStore"
         logger="core.store.transient">
  </cache-transient>

The used lookups in the sources:

lookup(Store.ROLE + "/PersistentCache")
lookup(Store.ROLE + "/PersistentCache")

Now some of the problems:
- I can configure a "repository" in the cocoon.xconf, but this is nowhere
looked up.
- I have to lookup (Store.ROLE+"/Filesystem") to lookup a "repository".
- If I lookup Store.ROLE, I get the cache-transient component, so my "store"
will
forget about the things I stored in. This is not the expected behaviour.
...

So, how are you dealing with this?

Carsten


---------------------------------------------------------------------
To unsubscribe, e-mail: cocoon-dev-unsubscribe@xml.apache.org
For additional commands, email: cocoon-dev-help@xml.apache.org


Mime
View raw message