jackrabbit-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Jukka Zitting" <jukka.zitt...@gmail.com>
Subject Re: Exporting repositories with RMI
Date Fri, 15 Sep 2006 10:47:05 GMT
Hi,

On 9/15/06, Mikolaj Rydzewski <miki@ceti.pl> wrote:
> I want to export a Repository with RMI. So I gathered bot
> jackrabbit-core and jackrabbit-jcr-rmi stuff and (of course) have some
> problems. Could you please point me to the right direction?
> [...]
>         RemoteRepository stub =
> (RemoteRepository)UnicastRemoteObject.exportObject(remoteRepository, 0);
>         Registry registry = LocateRegistry.getRegistry();
>         registry.bind("rmi_repo", stub);

The RemoteRepository class already inherits UnicastRemoteObject, so
there's no need to export it. You should be able to directly use
registry.bind("rmi_repo", remoteRepository).

BR,

Jukka Zitting

-- 
Yukatan - http://yukatan.fi/ - info@yukatan.fi
Software craftsmanship, JCR consulting, and Java development

Mime
View raw message