jackrabbit-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Stefan Guggisberg" <stefan.guggisb...@day.com>
Subject Re: Register custom nodes using jcr2spi (spi2dav)
Date Fri, 09 May 2008 12:56:18 GMT
On Thu, May 8, 2008 at 8:45 PM, Julio Castillo <jcastillo@edgenuity.com> wrote:
> Angela,
> I guess I can submit a feature request on JIRA to have SPI support nodetype
> registration?
> In any case, I took a quick a look at references to the custom_nodetypes.xml
> and I found that the class
> org.apache.jackrabbit.core.nodetype.NodeTypeRegistry will load a file
> custom_nodetypes.xml I suppose if it finds in its path?
> This of course all done on the server side. I don't need to anything on the
> client side?

a word of caution:

custom_nodetypes.xml is *not* meant to be user-manipulated. it contains
jackrabbit's internal persistent representation of the registered custom
node type definitions. by manually editing this file you *do* risk
data loss/corruption.

BTW, i seem to be repeating myself ;), see e.g.

i'd chosen the xml format when jackrabbit (i.e. its former
incarnation) was still
in its infancy. now i think it was a mistake. i should have chosen a non-human
readable format instead in order to not raise any false expectations ;).


> Thanks
> ** julio
> -----Original Message-----
> From: Angela Schreiber [mailto:anchela@day.com]
> Sent: Thursday, May 08, 2008 12:00 AM
> To: users@jackrabbit.apache.org
> Subject: Re: Register custom nodes using jcr2spi (spi2dav)
> hi julio
> Julio Castillo wrote:
>> I did see excerpts of code in the various threads, but they are all
>> accomplished programmatically. I don't have code in the server side as
>> my emphasis is to use the remote client using the spi webdav interface
>> and using the default Webdav servlets.
>> Is there a way to have the jackrabbit war file load the custom nodes
>> from a config file?
> basically custom nodetypes are read from the custom_nodetypes.xml which part
> of structure you can find with your JR installation.
> but you could only modify that manually which is not recommended i guess...
> a part from that, there is up to now no other configuration mechanism.
> outlook:
> JSR 283 defines nodetype registration... so sooner or later this will
> probably be part of the SPI as well.
> angela

View raw message