Return-Path: Delivered-To: apmail-jackrabbit-users-archive@minotaur.apache.org Received: (qmail 71671 invoked from network); 6 Apr 2011 22:24:39 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 6 Apr 2011 22:24:39 -0000 Received: (qmail 62246 invoked by uid 500); 6 Apr 2011 22:24:39 -0000 Delivered-To: apmail-jackrabbit-users-archive@jackrabbit.apache.org Received: (qmail 62211 invoked by uid 500); 6 Apr 2011 22:24:39 -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 62203 invoked by uid 99); 6 Apr 2011 22:24:39 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 06 Apr 2011 22:24:39 +0000 X-ASF-Spam-Status: No, hits=1.5 required=5.0 tests=FREEMAIL_FROM,HTML_MESSAGE,RCVD_IN_DNSWL_LOW,SPF_PASS,T_TO_NO_BRKTS_FREEMAIL X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of alfatek@gmail.com designates 74.125.82.50 as permitted sender) Received: from [74.125.82.50] (HELO mail-ww0-f50.google.com) (74.125.82.50) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 06 Apr 2011 22:24:32 +0000 Received: by wwc33 with SMTP id 33so2199985wwc.19 for ; Wed, 06 Apr 2011 15:24:11 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:date:message-id:subject:from:to :content-type; bh=ZkBsUbSo9mIFiXUVEwpVXhACyU/hzYMspE2leY+kqpU=; b=DcQNfQAf3p/q74sLg/W5SSXTLBHJ8NK9oYbgpCbns4mwn2Af2Es2Qdrwd3WzL0BbyK M0VjP5InD2bGEwNnOJzbj0cDTuNBHnFIruUX5hX/BUCqBf70kgnfi5P6PXtGA0rgY9qv kpVf4uB8lINQTZxEh2pGBRBH6Yt/wNiiDE23k= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:date:message-id:subject:from:to:content-type; b=gFL4Gbp5PWcy1b0T03YsUnThfZYfsPef91dRHKbiUL1Ivr3xC++H8fm9XWZjmaUTLN 9kIvl2IIYCH+hhsDfxuwSl0hmnOtiSwP0bML0FkWAMfeTK2x4oDMvjAd5C+B2mw9dL4M sl0+T6L+wtsia8ds+lQ00+G3SOMLGGoF9caLI= MIME-Version: 1.0 Received: by 10.216.140.219 with SMTP id e69mr157836wej.45.1302128651245; Wed, 06 Apr 2011 15:24:11 -0700 (PDT) Received: by 10.216.183.66 with HTTP; Wed, 6 Apr 2011 15:24:11 -0700 (PDT) Date: Wed, 6 Apr 2011 23:24:11 +0100 Message-ID: Subject: Code example to connect to repository via RMI? From: Paulo Silva To: users@jackrabbit.apache.org Content-Type: multipart/alternative; boundary=001636e1ebc7b598a804a0477376 --001636e1ebc7b598a804a0477376 Content-Type: text/plain; charset=ISO-8859-1 Hi, I have jackrabbit-jca-1.5.5.rar deployed in jboss 4.2.3GA and now I'm trying to expose via RMI to connect to it via the GUI tool JCR-Controller v0.72. I followed the instructions to expose RMI here: http://wiki.apache.org/jackrabbit/JackrabbitOnJBoss I checked the jmx-console and it seems that the RMI is exposed correctly. But now I have a problem: how can I connect to that repository via RMI? Does someone have a code example / tutorial I can follow? I tried many things with no luck, for example, if I try to put the url "jnp://localhost:1099/jcrServer" in the JCR-Controller app, I get this exception: org.apache.jackrabbit.rmi.client.RemoteRepositoryException: Malformed URL: jnp:/ /localhost:1099/jcrServer; nested exception is: java.net.MalformedURLException: invalid URL scheme: jnp://localhost:1099 /jcrServer: Malformed URL: jnp://localhost:1099/jcrServer; nested exception is: So, anyone can show me how to connect to that server? --001636e1ebc7b598a804a0477376--