hi torgeir,
there is a descriptor that provides you with this information:

RepositoryImpl
.
.
    // names of well-known repository properties
    public static final String STATS_NODE_COUNT_PROPERTY =
"jcr.repository.stats.nodes.count";
    public static final String STATS_PROP_COUNT_PROPERTY =
"jcr.repository.stats.properties.count";
.
.
so just call: repository.getDescriptor("jcr.repository.stats.nodes.count");


regards, toby

On 2/21/06, Torgeir Veimo <[EMAIL PROTECTED]> wrote:
> Has anyone implemented view counting for nodes in a jcr setup?
>
> I'd assume it would hurt performance to store view count as a node
> property.
>
> --
> Torgeir Veimo <[EMAIL PROTECTED]>
>
>


--
-----------------------------------------< [EMAIL PROTECTED] >---
Tobias Bocanegra, Day Management AG, Barfuesserplatz 6, CH - 4001 Basel
T +41 61 226 98 98, F +41 61 226 98 97
-----------------------------------------------< http://www.day.com >---

Reply via email to