Return-Path: Delivered-To: apmail-jackrabbit-users-archive@locus.apache.org Received: (qmail 58859 invoked from network); 16 Jun 2008 10:03:52 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 16 Jun 2008 10:03:52 -0000 Received: (qmail 89804 invoked by uid 500); 16 Jun 2008 10:03:45 -0000 Delivered-To: apmail-jackrabbit-users-archive@jackrabbit.apache.org Received: (qmail 89793 invoked by uid 500); 16 Jun 2008 10:03:44 -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 89511 invoked by uid 99); 16 Jun 2008 10:03:43 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 16 Jun 2008 03:03:43 -0700 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of frederic.v4x@gmail.com designates 72.14.220.152 as permitted sender) Received: from [72.14.220.152] (HELO fg-out-1718.google.com) (72.14.220.152) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 16 Jun 2008 10:02:53 +0000 Received: by fg-out-1718.google.com with SMTP id l27so5359749fgb.43 for ; Mon, 16 Jun 2008 03:03:10 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:from:to:references:subject :date:message-id:mime-version:content-type:content-transfer-encoding :x-mailer:in-reply-to:thread-index:x-mimeole; bh=N4YhhTG2blsFz45KX7RTCszHwTgVNp5Lgx4VBmyc9no=; b=HSolT9axvSusxQNkpS8qEpvgie2QLYK4qhCIlYvQlT2maCZz68f1a5cHo+HFltZN9Q 9her+5i6Ah8SgRIR/YherBfn7NRs9i1DfcKPEeJocd0UxtedIDwZkkGLvYGmwUkTI0g6 wzlJ+I+Gn1Bcx3B1v25SFvcvlaalSmhLQBSyY= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=from:to:references:subject:date:message-id:mime-version :content-type:content-transfer-encoding:x-mailer:in-reply-to :thread-index:x-mimeole; b=ne+CWWNkLxmwiFsSHfY8F2OCXlFgYr+Efxu6yXcIh+H0epNiekZma8PY/E63w9Aps5 8c1HLYriQG95GjPyMchuFfCpQzLhQMRA261wepxvaCXFpWGFCYo/JGLuQG1iG2ftZErU lRByFunGLlCKM9eCFIbNeHGEFZazc3JoaJBNo= Received: by 10.86.94.11 with SMTP id r11mr7746946fgb.0.1213610590625; Mon, 16 Jun 2008 03:03:10 -0700 (PDT) Received: from earth ( [193.251.49.199]) by mx.google.com with ESMTPS id l12sm10286849fgb.6.2008.06.16.03.03.08 (version=TLSv1/SSLv3 cipher=RC4-MD5); Mon, 16 Jun 2008 03:03:09 -0700 (PDT) From: "Frederic BOY" To: References: Subject: JCR RMI: how to connect to remote repository ? Date: Mon, 16 Jun 2008 12:03:01 +0200 Message-ID: <001501c8cf98$2b0c1590$4801a8c0@pessac.v4x.com> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Mailer: Microsoft Office Outlook 11 In-Reply-To: Thread-Index: AcjPkEdjXXYJ8KIRRDCf01nl0KscywAAonQg X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.3198 X-Virus-Checked: Checked by ClamAV on apache.org Hi, I have successfully managed to deploy my JCR repository RMI on jnp://localhost:1099/jcrServer (thanks to jackrabbit JCR RMI). Now how can I access it remotely ? I mean I used to call: repository = (Repository) ctx.lookup("java:jcr/local"); for standard local jndi lookup. When I try to replace it with: repository = (Repository) ctx.lookup("jnp://{remote_ip_address}:1099/jcrServer"); I get a java.lang.ClassCastException: org.apache.jackrabbit.rmi.server.ServerRepository_Stub I guess I'm missing a point. What's the right method ? Thanks guys in advance, Frederic Boy