jackrabbit-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Harry Moore <harry.mo...@eyestreet.com>
Subject Re: Standard remote access
Date Mon, 28 Aug 2006 01:23:27 GMT
Thanks for the help, Jukka.

Jukka Zitting wrote:
> Hi,
>
> On 8/28/06, Harry Moore <harry.moore@eyestreet.com> 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


Mime
  • Unnamed multipart/mixed (inline, None, 0 bytes)
View raw message