You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@jackrabbit.apache.org by techie2k <de...@gmail.com> on 2017/01/24 06:58:35 UTC

Register cnd in Oak

Hi,

We are moving to Oak(with MongoDB) Structure from Jackrabbit.

Is there a way to register cnd file Using Oak?

With Jackrabbit we were using,

CndImporter.registerNodeTypes(new FileReader(cndPath), session);



--
View this message in context: http://jackrabbit.510166.n4.nabble.com/Register-cnd-in-Oak-tp4666243.html
Sent from the Jackrabbit - Users mailing list archive at Nabble.com.

Re: Register cnd in Oak

Posted by techie2k <de...@gmail.com>.
Thank You. It works.



--
View this message in context: http://jackrabbit.510166.n4.nabble.com/Register-cnd-in-Oak-tp4666243p4666251.html
Sent from the Jackrabbit - Users mailing list archive at Nabble.com.

Re: Register cnd in Oak

Posted by Michael Dürig <md...@apache.org>.

On 24.1.17 11:24 , Thomas Mueller wrote:
> Hi,
>
> I didn't test it, but the CndImporter is in jackrabbit-jcr-commons, which
> should work with Jackrabbit Oak as well.

Yes it does. See e.g. 
https://github.com/apache/jackrabbit-oak/blob/trunk/oak-jcr/src/test/java/org/apache/jackrabbit/oak/jcr/nodetype/NodeTypeTest.java#L257

Michael

>
> Regards,
> Thomas
>
>
>
> On 24/01/17 07:58, "techie2k" <de...@gmail.com> wrote:
>
>> Hi,
>>
>> We are moving to Oak(with MongoDB) Structure from Jackrabbit.
>>
>> Is there a way to register cnd file Using Oak?
>>
>> With Jackrabbit we were using,
>>
>> CndImporter.registerNodeTypes(new FileReader(cndPath), session);
>>
>>
>>
>> --
>> View this message in context:
>> http://jackrabbit.510166.n4.nabble.com/Register-cnd-in-Oak-tp4666243.html
>> Sent from the Jackrabbit - Users mailing list archive at Nabble.com.
>

Re: Register cnd in Oak

Posted by Thomas Mueller <mu...@adobe.com>.
Hi,

I didn't test it, but the CndImporter is in jackrabbit-jcr-commons, which
should work with Jackrabbit Oak as well.

Regards,
Thomas



On 24/01/17 07:58, "techie2k" <de...@gmail.com> wrote:

>Hi,
>
>We are moving to Oak(with MongoDB) Structure from Jackrabbit.
>
>Is there a way to register cnd file Using Oak?
>
>With Jackrabbit we were using,
>
>CndImporter.registerNodeTypes(new FileReader(cndPath), session);
>
>
>
>--
>View this message in context:
>http://jackrabbit.510166.n4.nabble.com/Register-cnd-in-Oak-tp4666243.html
>Sent from the Jackrabbit - Users mailing list archive at Nabble.com.