jackrabbit-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Stefan Guggisberg" <stefan.guggisb...@gmail.com>
Subject Re: Deployment model 3, accessing repository via RMI.
Date Thu, 24 Aug 2006 08:05:54 GMT
On 8/23/06, Maxim Suponya <maxim1977@gmail.com> wrote:
> Hello,
>
> This is probably a silly question but I just don't get it, why local and
> remote implementations can't share same interfaces? I was playing with local
> access to jackrabbit and had written, for example, printNode(Node n) method.
> Now I'm trying to deploy jackrabbit as a repository server that would be
> accessed via RMI and now i have to rewrite same logic with different
> interfaces: printNode(RemoteNode rn). How cool would it be if I could just
> cast RemoteSession to Session and forget about how exactly repository is
> being accessed?

jcr-rmi is a transparent RMI layer for the JCR api. your client code
uses just the plain JCR api.

see the examples page and scroll to the bottom, there's an example:
http://wiki.apache.org/jackrabbit/ExamplesPage

cheers
stefan

>
> Is there any guide or a mail-list thread about deploying jackrabbit as a
> server and accesing it from other JVMs?
>
> Thank you.
>
> Maxim.
>
> PS: JCR sounds like a realy great and promising tool, I'm very excited about
> it!
>
>

Mime
View raw message