You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@sling.apache.org by Bill Gloff <bg...@citytechinc.com> on 2008/09/18 04:48:06 UTC

No RMI server for external Jackrabbit?

I have Sling configured to use an external Jackrabbit (Model 2) using a
jcr-ds.xml (using Jboss 4.2.2) but I want Sling to also register the RMI
server like it does when it uses the embedded jackrabbit.

When jackrabbit is embedded the log statements look like this:

17.09.2008 17:27:39.901 *INFO* [SCR Component Actor]
org.apache.sling.jcr.jackrabbit.server Using private RMI Registry at 1099
17.09.2008 17:27:40.078 *INFO* [SCR Component Actor]
org.apache.sling.jcr.jackrabbit.server Repository bound to
//192.168.1.109:1099/jackrabbit
17.09.2008 17:27:40.079 *INFO* [SCR Component Actor]
org.apache.sling.jcr.jackrabbit.server Repository bound to JNDI as
jackrabbit

But when an external JR is configured instead the log statements change to

java.naming.factory.initial=org.apache.jackrabbit.core.jndi.provider.DummyIn
itialContextFactory,
java.naming.factory.url.pkgs=org.jboss.naming:org.jnp.interfaces} to
register repositories
17.09.2008 17:49:56.515 *INFO* [SCR Component Actor]
org.apache.sling.jcr.jackrabbit.server Using RMI Registry port 1099
17.09.2008 17:49:56.517 *INFO* [SCR Component Actor]
org.apache.sling.jcr.jackrabbit.server Service
[org.apache.sling.jcr.jackrabbit.server.SlingServerRepository,78]
ServiceEvent REGISTERED

And no RMI server gets started.

Is it possible to get Sling to register it? My main motivation for this is
to get the eclipse plugin to connect (using //:1099/jackrabbit) when its
configured for a non-embeddded jackrabbit. Currently it only works when JR
is embedded.

Any help on this would be appreciated.

Thanks,
Bill


---
No virus found in this outgoing message.  
Checked by GFI MailSecurity @ 17/9/2008
---


Re: No RMI server for external Jackrabbit?

Posted by Bertrand Delacretaz <bd...@apache.org>.
Hi,

On Thu, Sep 18, 2008 at 4:48 AM, Bill Gloff <bg...@citytechinc.com> wrote:
> I have Sling configured to use an external Jackrabbit (Model 2) using a
> jcr-ds.xml (using Jboss 4.2.2) but I want Sling to also register the RMI
> server like it does when it uses the embedded jackrabbit...

Isn't more logical to enable RMI access on your external Jackrabbit repository?

The org.apache.sling.jcr.jackrabbit.client bundle does not currently
register its Repository as an RMI server object, and I don't think it
needs to, as the original Repository can do that.

-Bertrand