jackrabbit-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Frederic BOY" <frederic....@gmail.com>
Subject JCR RMI: how to connect to remote repository ?
Date Mon, 16 Jun 2008 10:03:01 GMT
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


Mime
View raw message