Return-Path: Delivered-To: apmail-jackrabbit-dev-archive@www.apache.org Received: (qmail 36429 invoked from network); 10 Jul 2006 15:22:41 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 10 Jul 2006 15:22:41 -0000 Received: (qmail 19881 invoked by uid 500); 10 Jul 2006 15:22:38 -0000 Delivered-To: apmail-jackrabbit-dev-archive@jackrabbit.apache.org Received: (qmail 19849 invoked by uid 500); 10 Jul 2006 15:22:38 -0000 Mailing-List: contact dev-help@jackrabbit.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@jackrabbit.apache.org Delivered-To: mailing list dev@jackrabbit.apache.org Received: (qmail 19794 invoked by uid 99); 10 Jul 2006 15:22:38 -0000 Received: from asf.osuosl.org (HELO asf.osuosl.org) (140.211.166.49) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 10 Jul 2006 08:22:38 -0700 X-ASF-Spam-Status: No, hits=0.5 required=10.0 tests=DNS_FROM_RFC_ABUSE,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (asf.osuosl.org: domain of stefan.guggisberg@gmail.com designates 64.233.162.207 as permitted sender) Received: from [64.233.162.207] (HELO nz-out-0102.google.com) (64.233.162.207) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 10 Jul 2006 08:22:28 -0700 Received: by nz-out-0102.google.com with SMTP id i1so214053nzh for ; Mon, 10 Jul 2006 08:22:01 -0700 (PDT) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:to:subject:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=aClzovl52IMkkz083AAxdiMmdq9uenPc9E1TBlcBjJSNbpPRHRIc2l82AUoayLcuDJZWJfKjieFXxv/3dtjuCjT4TmM+InSZqGuniiLDxqshx2zimMf0vjwPa+noo0o/XP3fTOJ3IB2DoeyvMD8EL2H3A0j7/AKf7+G91BvfkSA= Received: by 10.64.201.20 with SMTP id y20mr4694841qbf; Mon, 10 Jul 2006 08:22:01 -0700 (PDT) Received: by 10.64.47.10 with HTTP; Mon, 10 Jul 2006 08:22:00 -0700 (PDT) Message-ID: <90a8d1c00607100822j305e338ibebf59e662d48cfd@mail.gmail.com> Date: Mon, 10 Jul 2006 17:22:00 +0200 From: "Stefan Guggisberg" To: dev@jackrabbit.apache.org Subject: Re: Adding NodeType In-Reply-To: <44B26B5E.1060300@cognifide.com> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <22984921.1152542955454.JavaMail.www@wwinf4103> <44B26B5E.1060300@cognifide.com> X-Virus-Checked: Checked by ClamAV on apache.org X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N On 7/10/06, Tomek Dabrowski wrote: > > I'm a newbie, and i make a client, which must access to the jackrabbit repository server by rmi. I must add different NodeTypes (myapp:name for example) and i don't know how to. > > I tried to use the "NodeTypeManagerImpl" class, but it didn't function with RMI protocol. > > May be, can i add directly this NodeTypes in the Repository server, but where? > > > > Can anyone help me on this? > As far as I know there is no way to add new node type by calling some method. you're wrong, see e.g. http://thread.gmane.org/gmane.comp.apache.jackrabbit.devel/5929/focus=5978 http://wiki.apache.org/jackrabbit/ExamplesPage http://thread.gmane.org/gmane.comp.apache.jackrabbit.devel/2314/focus=2375 > You need to modifying corresponding files. You can find definition of node > types in file nodetypes/custom_nodetypes.xml. Please note, that you need to > register namespace too (myapp:). You can do this by modifying file > namespace/ns_reg.properties sure, you can do that but do it on your own risk. you can easily corrupt the entire repository by messing with custom_nodetypes.xml & ns_reg.properties. i'd certainly not recommend it unless you know *exactly* what you're doing; and don't count on help if you break things... cheers stefan > > Tomek > > -- > Tomasz Dabrowski > email: tomasz.dabrowski@cognifide.com > www: www.cognifide.com > > ______________________________________________________________________ > This email has been scanned by the MessageLabs Email Security System. > For more information please visit http://www.messagelabs.com/email > ______________________________________________________________________ >