Thanks for the help, Jukka.

Jukka Zitting wrote:
Hi,

On 8/28/06, Harry Moore <[EMAIL PROTECTED]> wrote:
Does that mean it is up to me to setup the RMI adapter on each vendors'
system or do vendors generally provide this?

I don't really know if or how other vendors are using JCR-RMI. If a
repository doesn't come with JCR-RMI support, it is still very easy to
make it remotely accessible. In essence you need the following piece
of code to make it happen:

   Repository repository = ...; // The local repository
   String name = ...; // The RMI URL for the repository

   RemoteAdapterFactory factory = new ServerAdapterFactory();
   RemoteRepository remote = factory.getRemoteRepository(repository);
Naming.bind(name, remote); // Make the RMI binding using java.rmi.Naming

BR,

Jukka Zitting


--
Harry Moore
Eye Street Software
Office: 301-813-3013
Fax: 301-813-3413

Reply via email to