You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@lenya.apache.org by Rakesh Midha <mi...@gmail.com> on 2006/09/01 09:49:40 UTC
Re: JCR Integration
Hello Andreas
thanks for the help.
I don't think we can exclude the sourcerepository module, because
repository module depends on sourcerepository, doesn't sound right but it is
true. Look at module.xml in repository
<id>org.apache.lenya.modules.repository</id>
<depends module="org.apache.lenya.modules.sourcerepository"/>
Anyways even if this dependency is there, i think import usecase will
require repository to exist.
Is there any other way for redirection from sourcerepository to
jcrrepository.?
Yes, I liked your idea of "we should rather use a list of single modules for
declaration", i think we should do this....currently only directory level
exclude is allowed indirectly using modules.root.dirs.
thanks
Rakesh
On 8/31/06, Andreas Hartmann <an...@apache.org> wrote:
>
> Rakesh Midha wrote:
> > Hello
> >
> > I followed the steps given by Andreas in his mail.
> >
> > Even now my lenya is pointing to content directory of my publication in
> > pubs folder. I thought after doing all this it should point to
> > jcr-repository. (means if i create new html page it should go in
> > jcr-repository)
> >
> > As I understand the problem is in step 3 which says
> > 3) Set the JCRNodeFactory as default node factory in
> > java/org/apache/lenya/lenya.roles
> > <role name="org.apache.lenya.cms.repository.NodeFactory"
> > shorthand="node-factory"
> > default-class="org.apache.lenya.cms.jcr.JCRNodeFactory"/>
> >
> > NodeFactory role is removed from Lenya.roles by Andreas in revision
> > 416134 with comment Removed NodeFactory role from lenya.roles (now
> > provided by sourcerepository module in cocoon.xconf)
> >
> > Can someone please tell me what changes are required to make my lenya
> > point to JCR rather that pub directory in filesystem.
>
> Basically you have to exclude the sourcerepository module and include
> the modules-optional/jcrsource module. That's not easy with the
> current module declaration syntax (maybe we should rather use a list
> of single modules for declaration). You could disable the patch in
> the sourcerepository module (e.g. use a different extension).
>
> -- Andreas
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: dev-unsubscribe@lenya.apache.org
> For additional commands, e-mail: dev-help@lenya.apache.org
>
>
Re: JCR Integration
Posted by Rakesh Midha <mi...@gmail.com>.
Sorry I meant sourceRepository when i said "i think import usecase will
require repository to exist.".....
do you think import usecase will not require sourcerepository, my
understanding is the import usecase uses sourcerepository to getdata and put
it into jcrrepository
Am I wrong somewhere?
On 9/1/06, Andreas Hartmann <an...@apache.org> wrote:
>
> Rakesh Midha wrote:
> > Hello Andreas
> >
> > thanks for the help.
> >
> > I don't think we can exclude the sourcerepository module, because
> > repository module depends on sourcerepository, doesn't sound right but
> > it is true. Look at module.xml in repository
> > <id>org.apache.lenya.modules.repository</id>
> > <depends module="org.apache.lenya.modules.sourcerepository"/>
> >
> > Anyways even if this dependency is there, i think import usecase will
> > require repository to exist.
>
> I don't think so, the repository module isn't used anywhere.
>
> -- Andreas
>
> >
> > Is there any other way for redirection from sourcerepository to
> > jcrrepository.?
> >
> > Yes, I liked your idea of "we should rather use a list of single modules
> > for declaration", i think we should do this....currently only directory
> > level exclude is allowed indirectly using modules.root.dirs.
> >
> >
> > thanks
> > Rakesh
> >
> >
> >
> > On 8/31/06, *Andreas Hartmann* <andreas@apache.org
> > <ma...@apache.org>> wrote:
> >
> > Rakesh Midha wrote:
> > > Hello
> > >
> > > I followed the steps given by Andreas in his mail.
> > >
> > > Even now my lenya is pointing to content directory of my
> > publication in
> > > pubs folder. I thought after doing all this it should point to
> > > jcr-repository. (means if i create new html page it should go in
> > > jcr-repository)
> > >
> > > As I understand the problem is in step 3 which says
> > > 3) Set the JCRNodeFactory as default node factory in
> > > java/org/apache/lenya/lenya.roles
> > > <role name=" org.apache.lenya.cms.repository.NodeFactory"
> > > shorthand="node-factory"
> > > default-class="org.apache.lenya.cms.jcr.JCRNodeFactory"/>
> > >
> > > NodeFactory role is removed from Lenya.roles by Andreas in
> revision
> > > 416134 with comment Removed NodeFactory role from lenya.roles(now
> > > provided by sourcerepository module in cocoon.xconf)
> > >
> > > Can someone please tell me what changes are required to make my
> > lenya
> > > point to JCR rather that pub directory in filesystem.
> >
> > Basically you have to exclude the sourcerepository module and
> include
> > the modules-optional/jcrsource module. That's not easy with the
> > current module declaration syntax (maybe we should rather use a list
> > of single modules for declaration). You could disable the patch in
> > the sourcerepository module (e.g. use a different extension).
> >
> > -- Andreas
> >
> >
> >
> ---------------------------------------------------------------------
> > To unsubscribe, e-mail: dev-unsubscribe@lenya.apache.org
> > <ma...@lenya.apache.org>
> > For additional commands, e-mail: dev-help@lenya.apache.org
> > <ma...@lenya.apache.org>
> >
> >
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: dev-unsubscribe@lenya.apache.org
> For additional commands, e-mail: dev-help@lenya.apache.org
>
>
Re: JCR Integration
Posted by Andreas Hartmann <an...@apache.org>.
Rakesh Midha wrote:
> Hello Andreas
>
> thanks for the help.
>
> I don't think we can exclude the sourcerepository module, because
> repository module depends on sourcerepository, doesn't sound right but
> it is true. Look at module.xml in repository
> <id>org.apache.lenya.modules.repository</id>
> <depends module="org.apache.lenya.modules.sourcerepository"/>
>
> Anyways even if this dependency is there, i think import usecase will
> require repository to exist.
I don't think so, the repository module isn't used anywhere.
-- Andreas
>
> Is there any other way for redirection from sourcerepository to
> jcrrepository.?
>
> Yes, I liked your idea of "we should rather use a list of single modules
> for declaration", i think we should do this....currently only directory
> level exclude is allowed indirectly using modules.root.dirs.
>
>
> thanks
> Rakesh
>
>
>
> On 8/31/06, *Andreas Hartmann* <andreas@apache.org
> <ma...@apache.org>> wrote:
>
> Rakesh Midha wrote:
> > Hello
> >
> > I followed the steps given by Andreas in his mail.
> >
> > Even now my lenya is pointing to content directory of my
> publication in
> > pubs folder. I thought after doing all this it should point to
> > jcr-repository. (means if i create new html page it should go in
> > jcr-repository)
> >
> > As I understand the problem is in step 3 which says
> > 3) Set the JCRNodeFactory as default node factory in
> > java/org/apache/lenya/lenya.roles
> > <role name=" org.apache.lenya.cms.repository.NodeFactory"
> > shorthand="node-factory"
> > default-class="org.apache.lenya.cms.jcr.JCRNodeFactory"/>
> >
> > NodeFactory role is removed from Lenya.roles by Andreas in revision
> > 416134 with comment Removed NodeFactory role from lenya.roles (now
> > provided by sourcerepository module in cocoon.xconf)
> >
> > Can someone please tell me what changes are required to make my
> lenya
> > point to JCR rather that pub directory in filesystem.
>
> Basically you have to exclude the sourcerepository module and include
> the modules-optional/jcrsource module. That's not easy with the
> current module declaration syntax (maybe we should rather use a list
> of single modules for declaration). You could disable the patch in
> the sourcerepository module (e.g. use a different extension).
>
> -- Andreas
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: dev-unsubscribe@lenya.apache.org
> <ma...@lenya.apache.org>
> For additional commands, e-mail: dev-help@lenya.apache.org
> <ma...@lenya.apache.org>
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@lenya.apache.org
For additional commands, e-mail: dev-help@lenya.apache.org