jackrabbit-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Betty Chang" <bch...@edgenuity.com>
Subject Re: what does NodeTypeRegistry.reregisterNodeType() do?
Date Thu, 31 Jul 2008 21:12:45 GMT
Hi -- I've attached a couple of pieces of code.  The servlet is the code 
that registers or re-registers the node types.  I run it
in the same webapp as jackrabbit, and have it load on startup after 
everything else.
The dumpsnippet.java is from a test program that just dumps the nodes.   I 
call it at the "/jcr.system/jcr.nodeTypes" level
  to see all the node types and their properties.   This is run via the spi 
webdav interface.

I can add node types to the CND file and restart tomcat and all is well, but 
adding non-mandatory properties to an
exisiting node type does not seem to do anything.



----- Original Message ----- 
From: "Betty Chang" <bchang@edgenuity.com>
To: <users@jackrabbit.apache.org>
Sent: Wednesday, July 30, 2008 12:13 PM
Subject: Re: what does NodeTypeRegistry.reregisterNodeType() do?

> Hi -- I'm doing the nodetype registration on the server side as a servlet. 
> Originally,
> I did it in a separate webapp in the same tomcat server
> as the jackrabbit server, then I changed it to a servlet within the 
> jackrabbit webapp.
> I configured the servlet to load on startup after all other startup 
> servlets.  It reads in the .CND file, checks if a nodetype
> already exists, and if so, it re-registers it.  If not, it just registers 
> it.
> My client programs are able to add to the repository using these custom 
> node types and they show up under
> jcr:system/jcr:nodeTypes in the tree.
> I can add a new node type to the CND file, restart the tomcat, and the new 
> node type shows up in the dump on
> the client side.
> However, if I add a new property to an existing node type, the new 
> property does not show up.
> I'm not sure why it would be a caching issue, because my client program is 
> just a little test program that can dump out all
> the nodes and I run it fresh everytime.
> Betty
> ----- Original Message ----- 
> From: "Angela Schreiber" <anchela@day.com>
> To: <users@jackrabbit.apache.org>
> Sent: Wednesday, July 30, 2008 2:10 AM
> Subject: Re: what does NodeTypeRegistry.reregisterNodeType() do?
>>>> In answer to the protocol question,  the remote client uses the spi 
>>>> webdav
>>>> interface
>>> ah, i see. that explains it. this is probably a caching issue of the spi 
>>> layer.
>> the SPI layer does not support nodetype registration
>> anyway, since this a jackrabbit specific extension
>> and not part of the JCR API.
>> how did you register the nodetype?
>>> please feel free to create a jira issue.
>> before you create an issue, i'd like to understand
>> how you registered the nodetype.
>> angela

  • Unnamed multipart/mixed (inline, None, 0 bytes)
View raw message