You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@cocoon.apache.org by Carsten Ziegeler <cz...@s-und-n.de> on 2002/02/13 11:54:23 UTC
Confusion about Stores
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
Cocoon portal - first look
Posted by Matthew Langham <ml...@s-und-n.de>.
As you know, we plan on donating the portal and authentication components
next week. I have just posted a short article with a couple of screenshots
here:
http://www.need-a-cake.com/stories/2002/02/14/cocoonPortalFirstLook.html
Matthew
--
Open Source Group sunShine - Lighting up e:Business
=================================================================
Matthew Langham, S&N AG, Klingenderstrasse 5, D-33100 Paderborn
Tel:+49-5251-1581-30 mlangham@s-und-n.de - http://www.s-und-n.de
Weblogging at: http://www.need-a-cake.com
=================================================================
---------------------------------------------------------------------
To unsubscribe, e-mail: cocoon-dev-unsubscribe@xml.apache.org
For additional commands, email: cocoon-dev-help@xml.apache.org
RE: Confusion about Stores
Posted by Carsten Ziegeler <cz...@s-und-n.de>.
Thanks Vadim!
Carsten
> -----Original Message-----
> From: Vadim Gritsenko [mailto:vadim.gritsenko@verizon.net]
> Sent: Friday, February 15, 2002 3:14 AM
> To: cocoon-dev@xml.apache.org
> Subject: RE: Confusion about Stores
>
>
> > From: Carsten Ziegeler [mailto:cziegeler@s-und-n.de]
> > Sent: Thursday, February 14, 2002 2:51 AM
> > To: cocoon-dev@xml.apache.org
> > Subject: RE: Confusion about Stores
> >
> > Hi Vadim,
> >
> > great to hear that you will change the store configuration! Thanks!
>
> Done.
>
>
> > But - perhaps being a little bit too picky - we should also change
> > the names either in the xconf or the role names, because there is
> > now "PersistentCache" and "TransientCache" and cache-persistent
> > and cache-transient. I think we should change the latter into
> > persistent-cache and transient-cache.
>
> I will leave it up to you - It seems that I'm satisfied with current
> naming ;)
>
> Vadim
>
> >
> > Carsten
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: cocoon-dev-unsubscribe@xml.apache.org
> For additional commands, email: cocoon-dev-help@xml.apache.org
>
---------------------------------------------------------------------
To unsubscribe, e-mail: cocoon-dev-unsubscribe@xml.apache.org
For additional commands, email: cocoon-dev-help@xml.apache.org
RE: Confusion about Stores
Posted by Vadim Gritsenko <va...@verizon.net>.
> From: Carsten Ziegeler [mailto:cziegeler@s-und-n.de]
> Sent: Thursday, February 14, 2002 2:51 AM
> To: cocoon-dev@xml.apache.org
> Subject: RE: Confusion about Stores
>
> Hi Vadim,
>
> great to hear that you will change the store configuration! Thanks!
Done.
> But - perhaps being a little bit too picky - we should also change
> the names either in the xconf or the role names, because there is
> now "PersistentCache" and "TransientCache" and cache-persistent
> and cache-transient. I think we should change the latter into
> persistent-cache and transient-cache.
I will leave it up to you - It seems that I'm satisfied with current
naming ;)
Vadim
>
> Carsten
---------------------------------------------------------------------
To unsubscribe, e-mail: cocoon-dev-unsubscribe@xml.apache.org
For additional commands, email: cocoon-dev-help@xml.apache.org
RE: Confusion about Stores
Posted by Carsten Ziegeler <cz...@s-und-n.de>.
Hi Vadim,
great to hear that you will change the store configuration! Thanks!
But - perhaps being a little bit too picky - we should also change
the names either in the xconf or the role names, because there is
now "PersistentCache" and "TransientCache" and cache-persistent
and cache-transient. I think we should change the latter into
persistent-cache and transient-cache.
Carsten
> Vadim Gritsenko wrote:
> -----Original Message-----
> From: Vadim Gritsenko [mailto:vadim.gritsenko@verizon.net]
> Sent: Wednesday, February 13, 2002 3:26 PM
> To: cocoon-dev@xml.apache.org
> Subject: RE: Confusion about Stores
>
>
> > From: Carsten Ziegeler [mailto:cziegeler@s-und-n.de]
> >
> > Hi,
> >
> > the whole store configuration is (at least for me) very confusing:
>
> This is the result of evolutionary approach taken by me. Watch out for
> changes (commits):
>
>
> > Quoting the cocoon.roles:
> > <role name="org.apache.cocoon.components.store.Store"
> > shorthand="cache-transient"
> >
> default-class="org.apache.cocoon.components.store.MRUMemoryStore"/>
>
> Add /TransientCache to role name;
>
>
> > <role name="org.apache.cocoon.components.store.Store/Filesystem"
> > shorthand="repository"
> >
> default-class="org.apache.cocoon.components.store.FilesystemStore"/>
>
> Replace /Filesystem with /Repository. Remove default class. (or remove
> whole entry?)
>
>
> > <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>
>
> Remove this entry;
>
>
> > <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.
>
> It used to be used, not anymore.
>
>
> > - I have to lookup (Store.ROLE+"/Filesystem") to lookup a
> "repository".
>
> Will be /Repository which is more meaningful.
>
>
> > - 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.
>
> Will be renamed to /TransientCache
>
>
> > So, how are you dealing with this?
>
> That's the plan. Expect commit today-tomorrow.
>
> Vadim
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: cocoon-dev-unsubscribe@xml.apache.org
> For additional commands, email: cocoon-dev-help@xml.apache.org
>
---------------------------------------------------------------------
To unsubscribe, e-mail: cocoon-dev-unsubscribe@xml.apache.org
For additional commands, email: cocoon-dev-help@xml.apache.org
RE: Confusion about Stores
Posted by Vadim Gritsenko <va...@verizon.net>.
> From: Carsten Ziegeler [mailto:cziegeler@s-und-n.de]
>
> Hi,
>
> the whole store configuration is (at least for me) very confusing:
This is the result of evolutionary approach taken by me. Watch out for
changes (commits):
> Quoting the cocoon.roles:
> <role name="org.apache.cocoon.components.store.Store"
> shorthand="cache-transient"
>
default-class="org.apache.cocoon.components.store.MRUMemoryStore"/>
Add /TransientCache to role name;
> <role name="org.apache.cocoon.components.store.Store/Filesystem"
> shorthand="repository"
>
default-class="org.apache.cocoon.components.store.FilesystemStore"/>
Replace /Filesystem with /Repository. Remove default class. (or remove
whole entry?)
> <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>
Remove this entry;
> <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.
It used to be used, not anymore.
> - I have to lookup (Store.ROLE+"/Filesystem") to lookup a
"repository".
Will be /Repository which is more meaningful.
> - 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.
Will be renamed to /TransientCache
> So, how are you dealing with this?
That's the plan. Expect commit today-tomorrow.
Vadim
---------------------------------------------------------------------
To unsubscribe, e-mail: cocoon-dev-unsubscribe@xml.apache.org
For additional commands, email: cocoon-dev-help@xml.apache.org