You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@lenya.apache.org by Thorsten Scherler <th...@apache.org> on 2006/03/01 16:11:42 UTC
Dependencies magic in usecases
Hi all,
when working with a flat directory hierarchy the "lucene.index" usecase
does not work anymore. Well I thought that this should not matter for me
since ATM I do not need search.
...but I was dead wrong!
For example
src/webapp/lenya/config/cocoon-xconf/usecases/site/usecase-site-cut.xconf
is refering to the above mentioned usecase:
...
<exit usecase="lucene.index">
<parameter name="indexAction" value="delete"/>
<parameter name="indexArea" value="authoring"/>
<parameter name="lenya.exitUsecase" value="tab.overview"/>
</exit>
...
I can understand that triggering the indexing usecase when
moving/deleting/creating/... documents makes sense but I strongly
disagree to create such dependencies via exitUsecase in the usecase
config files.
We should remove all such declarations in our usecases and have a
central document listener that will handle all events around the
documents. This way we do not have to use this verbose "dependency
magic" which needs a high level of understanding usecases and is hidding
the "real" problem (in my case that actually lucene is failing).
wdyt?
salu2
--
thorsten
"Together we stand, divided we fall!"
Hey you (Pink Floyd)
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@lenya.apache.org
For additional commands, e-mail: dev-help@lenya.apache.org
Re: Dependencies magic in usecases
Posted by Andreas Hartmann <an...@apache.org>.
Thorsten Scherler wrote:
> El mié, 01-03-2006 a las 17:21 +0100, Andreas Hartmann escribió:
>> Andreas Hartmann wrote:
>>
>> [...]
>>
>>>> We should remove all such declarations in our usecases and have a
>>>> central document listener that will handle all events around the
>>>> documents.
>>> That's a very good idea. Maybe you'd like to make a more detailed
>>> proposal?
>> BTW, the JCR spec contains an observation concept.
>> Maybe you'd like to take a look at it?
>
> Ok, thanks for the tip. Do you have a link as well?
Javadocs:
http://www.day.com/maven/jsr170/javadocs/jcr-1.0/javax/jcr/observation/package-summary.html
Spec:
http://jcp.org/aboutJava/communityprocess/final/jsr170/index.html
-- Andreas
--
Andreas Hartmann
Wyona Inc. - Open Source Content Management - Apache Lenya
http://www.wyona.com http://lenya.apache.org
andreas.hartmann@wyona.com andreas@apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@lenya.apache.org
For additional commands, e-mail: dev-help@lenya.apache.org
Re: Dependencies magic in usecases
Posted by Thorsten Scherler <th...@wyona.com>.
El mié, 01-03-2006 a las 17:21 +0100, Andreas Hartmann escribió:
> Andreas Hartmann wrote:
>
> [...]
>
> >> We should remove all such declarations in our usecases and have a
> >> central document listener that will handle all events around the
> >> documents.
> >
> > That's a very good idea. Maybe you'd like to make a more detailed
> > proposal?
>
> BTW, the JCR spec contains an observation concept.
> Maybe you'd like to take a look at it?
Ok, thanks for the tip. Do you have a link as well?
I will write a proposal.
TIA
salu2
--
Thorsten Scherler
COO Spain
Wyona Inc. - Open Source Content Management - Apache Lenya
http://www.wyona.com http://lenya.apache.org
thorsten.scherler@wyona.com thorsten@apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@lenya.apache.org
For additional commands, e-mail: dev-help@lenya.apache.org
Re: Dependencies magic in usecases
Posted by Andreas Hartmann <an...@apache.org>.
Andreas Hartmann wrote:
[...]
>> We should remove all such declarations in our usecases and have a
>> central document listener that will handle all events around the
>> documents.
>
> That's a very good idea. Maybe you'd like to make a more detailed
> proposal?
BTW, the JCR spec contains an observation concept.
Maybe you'd like to take a look at it?
-- Andreas
--
Andreas Hartmann
Wyona Inc. - Open Source Content Management - Apache Lenya
http://www.wyona.com http://lenya.apache.org
andreas.hartmann@wyona.com andreas@apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@lenya.apache.org
For additional commands, e-mail: dev-help@lenya.apache.org
Re: Dependencies magic in usecases
Posted by Andreas Hartmann <an...@apache.org>.
Thorsten Scherler wrote:
> Hi all,
>
> when working with a flat directory hierarchy the "lucene.index" usecase
> does not work anymore. Well I thought that this should not matter for me
> since ATM I do not need search.
>
> ...but I was dead wrong!
>
> For example
> src/webapp/lenya/config/cocoon-xconf/usecases/site/usecase-site-cut.xconf
> is refering to the above mentioned usecase:
> ...
> <exit usecase="lucene.index">
> <parameter name="indexAction" value="delete"/>
> <parameter name="indexArea" value="authoring"/>
> <parameter name="lenya.exitUsecase" value="tab.overview"/>
> </exit>
> ...
>
> I can understand that triggering the indexing usecase when
> moving/deleting/creating/... documents makes sense but I strongly
> disagree to create such dependencies via exitUsecase in the usecase
> config files.
+1000
> We should remove all such declarations in our usecases and have a
> central document listener that will handle all events around the
> documents.
That's a very good idea. Maybe you'd like to make a more detailed
proposal?
> This way we do not have to use this verbose "dependency
> magic" which needs a high level of understanding usecases and is hidding
> the "real" problem (in my case that actually lucene is failing).
>
> wdyt?
In any case, these dependencies should be removed, and if this isn't
possible, they have to be declared and checked. The listener concept
seems to be a useful approach for decoupling indexing from specific
usecases.
-- Andreas
--
Andreas Hartmann
Wyona Inc. - Open Source Content Management - Apache Lenya
http://www.wyona.com http://lenya.apache.org
andreas.hartmann@wyona.com andreas@apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@lenya.apache.org
For additional commands, e-mail: dev-help@lenya.apache.org