Andreas Hartmann wrote:
Michael Wechner wrote:
Hi
It seems to me that the current implementation/configuration is mixing
the "pure" JCR usage and the Lenya JCR usage, e.g. within cocoon.xconf
<component class="org.apache.lenya.cms.jcr.LenyaRepository"
logger="jcr" role="javax.jcr.Repository">
....
This is no "mixture". The LenyaRepository is a specialization of the
JackrabbitRepository of the JCR block. It attaches the JCR session to the
Cocoon session (this will be necessary to use JCR transactions)
why not implement this into the Cocoon block directly?
and
registers Lenya namespaces and node types.
are these for the meta-data?
That's just how OOSD works :)
ok. But wouldn't it make sense to differentiate the logger, e.g. jcr.lenya
instead just jcr, in case people use both, I mean the Cocoon JCR repo
and the Lenya JCR repo?
<component-instance
class="org.apache.lenya.cms.jcr.LenyaJCRSourceFactory" name="jcr">
...
The LenyaJCRSourceFactory adds the Lenya mixin nodetype to new
repository nodes.
what's the reason for that?
won't there be problems if people for instance want to reuse existing
pipelines
which were making use of the Cocoon JCR Factory?
I think the one of the Cocoon block should be able to coexist beside the
Lenya one and not be replaced the Lenya one.
That would be possible for instance by using a selector for different
repositories.
can you give an example
Multiple source factories can be registered anyway
(using different protocols).
I think it makes sense to register teh Lenya Source Factory with another
protocol, e.g. jcr-lenya or whatever.
To be honest I am still very confused. Where are these classes actually,
because
I cannot find them within src/java and what file does patch the
cocoon.xconf file.
I thought this is being done by src/webapp/WEB-INF/cocoon-xconf.xsl, but
it doesn't
really contain anything with re to that.
Maybe I am confused because of this bad flu I have, but any pointers are
appreciated.
Michi
Also I am not sure why this is actually necessary and this needs to
me mixed at all.
See above.
-- Andreas
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
--
Michael Wechner
Wyona - Open Source Content Management - Apache Lenya
http://www.wyona.com http://lenya.apache.org
[EMAIL PROTECTED] [EMAIL PROTECTED]
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]