jackrabbit-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Boni Gopalan \(BioImagene\)" <Bon...@bioimagene.com>
Subject RE: Node Type Management Utility for JCR
Date Fri, 08 Aug 2008 10:50:09 GMT
Hi Sébastien : thank you for the quick but detailed pointer.  Is there an XSD for this XML
document? Or an example?

-----Original Message-----
From: Sébastien Launay [mailto:sebastien.launay@anyware-tech.com] 
Sent: 08 August 2008 14:59
To: users@jackrabbit.apache.org
Subject: Re: Node Type Management Utility for JCR

Hi Boni,

Jackrabbit offers two ways to register node type definitions XML and CND.

A snippet for registered a custom node types definitions file:
NodeTypeManagerImpl ntManager = (NodeTypeManagerImpl)
NodeTypeRegistry registry = ntManager.getNodeTypeRegistry();

NodeTypeDefStore store = new NodeTypeDefStore();
InputStream is =
try {
} finally {

You can check the namespace existence associated with the node types
to register the definition once.

Once node types are registered, only trivial changes can be reregisterd
otherwise an exception is thrown.

For more information on how to migrate node types see:

Sébastien Launay

Boni Gopalan (BioImagene) a écrit :
> Hi,
> My organization has decided to use jackrabbit as the replacement of our
> current persistent store mechanism for the forthcoming releases of our
> products and I am architecting this solution.  I want to know whether
> there is any work already done on having a schema management utility for
> JCR.  I am looking for an utility that would initially take in a xml
> file as an input and register the NodeTypes appropriately.  From then on
> this utility would let these node definitions be managed.
> I have seen that CND is chosen as the standard.  Is there an XML
> equivalent of CND?
> thanks
> Boni Gopalan

View raw message