Hi,
On 9/15/06, Mikolaj Rydzewski <[EMAIL PROTECTED]> 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/ - [EMAIL PROTECTED]
Software craftsmanship, JCR consulting, and Java development