Return-Path: X-Original-To: apmail-jackrabbit-users-archive@minotaur.apache.org Delivered-To: apmail-jackrabbit-users-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 61DAAE4AE for ; Sat, 29 Dec 2012 13:31:46 +0000 (UTC) Received: (qmail 15649 invoked by uid 500); 29 Dec 2012 13:31:45 -0000 Delivered-To: apmail-jackrabbit-users-archive@jackrabbit.apache.org Received: (qmail 15246 invoked by uid 500); 29 Dec 2012 13:31:40 -0000 Mailing-List: contact users-help@jackrabbit.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: users@jackrabbit.apache.org Delivered-To: mailing list users@jackrabbit.apache.org Received: (qmail 15216 invoked by uid 99); 29 Dec 2012 13:31:39 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 29 Dec 2012 13:31:39 +0000 X-ASF-Spam-Status: No, hits=1.5 required=5.0 tests=HTML_MESSAGE,RCVD_IN_DNSWL_LOW,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of lukaszkaleta@gmail.com designates 209.85.215.46 as permitted sender) Received: from [209.85.215.46] (HELO mail-la0-f46.google.com) (209.85.215.46) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 29 Dec 2012 13:31:31 +0000 Received: by mail-la0-f46.google.com with SMTP id fq13so2099561lab.19 for ; Sat, 29 Dec 2012 05:31:10 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:date:message-id:subject:from:to:content-type; bh=ysS/uDQsPFV58ACfBxj04bNOVm1bJN965K17k42rL5o=; b=Ze36/P8qylXaCooFgKMqyee8vPNSUxnDgcqWq2OWOJBLG1mlFd0mlYxZyKMop2bSh7 CKT+wNxQbs6tP0pa/APMn8LPWQOKimENGjqUYbZXRW0AyG331QFOlgdoSrGGNqWjkEOY psNW/Ga5WndrMNtO3V4Sw+wVNNWhb/DEV2h3HVSPcB0yIg85TvnXCfbjyNBax9DbRytN nozvj8Ai1IPn95OIjnPmEzqVSJkuktvBlvBTTlT3F9x594+L5bD+bpwnzGLco1F0LH8T lHYKf1UimLa6CGT33STKqGC72QHruFwhyAMu0a+Gicxr0bWSXApFM3XwaHQyjzX3KMDr RxRw== MIME-Version: 1.0 Received: by 10.112.25.106 with SMTP id b10mr14129560lbg.68.1356787870810; Sat, 29 Dec 2012 05:31:10 -0800 (PST) Received: by 10.112.37.200 with HTTP; Sat, 29 Dec 2012 05:31:10 -0800 (PST) Date: Sat, 29 Dec 2012 14:31:10 +0100 Message-ID: Subject: Register custom node types globally From: =?ISO-8859-2?Q?=A3ukasz_Kaleta?= To: users@jackrabbit.apache.org Content-Type: multipart/alternative; boundary=f46d0401240b1342c704d1fdcbb9 X-Virus-Checked: Checked by ClamAV on apache.org --f46d0401240b1342c704d1fdcbb9 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Hi, I would like to register mine custom node types globally: I am doing following: repository =3D new TransientRepository(config, home); Session session =3D repository.login((new SimpleCredentials("username", "password".toCharArray()))) .... JackrabbitNodeTypeManager manager =3D (JackrabbitNodeTypeManage= r) session.getWorkspace().getNodeTypeManager(); nodeTypes =3D manager.registerNodeTypes(cndInputStream, JackrabbitNodeTypeManager.TEXT_X_JCR_CND); .... session.logout() If next I login again mine custom node types are gone. Is there a way for doing it globally ? --=20 // =C5=81ukasz Kaleta --f46d0401240b1342c704d1fdcbb9--