[Neo] read-only access

Jan Berkel jan.berkel at gmail.com
Mon Apr 6 15:44:59 CEST 2009


thanks for your replies. saw andreas' rest api, looks promising. however
some operations (like graph traversal) will be tricky/very expensive to do
with a rest api. will a have a look at RemoteNeo and see if i can get it to
work with jruby.

On Mon, Apr 6, 2009 at 2:17 PM, Peter Neubauer <neubauer.peter at gmail.com>wrote:

> Hi there,
> another possiblity would be to use the new REST API spike that Andreas
> Ronge has over at
>
> http://github.com/andreasronge/neo4j/tree/c463ba95315116a3ec7092ea0dfe3368c3e07439/test/rest
>
> /peter
>
> GTalk:      neubauer.peter
> Skype       peter.neubauer
> Phone       +46 704 106975
> LinkedIn   http://www.linkedin.com/in/neubauer
> Twitter      http://twitter.com/peterneubauer
>
> http://www.neo4j.org     - New Energy for Data - The Graph Database.
> http://www.ops4j.org     - New Energy for OSS Communities - Open
> Participation Software.
> http://www.qi4j.org        - New Energy for Java - Domain Driven
> Development.
>
>
>
> On Mon, Apr 6, 2009 at 3:12 PM, Tobias Ivarsson
> <tobias.ivarsson at neotechnology.com> wrote:
> > Hi,
> >
> > Welcome to the mailing list!
> >
> > It is not possible to instantiate a second EmbeddedNeo pointing to the
> same
> > data store directory. This because of file integrity reasons (and
> guaranteed
> > through file locking).
> >
> > The use case you are describing is exactly why we created RemoteNeo. To
> use
> > RemoteNeo you need to start up a RemoteNeo server on the main background
> > process that owns the actual Neo4j instance. Then connect to it by
> creating
> > a new RemoteNeo instance. This solution has two drawbacks: 1. I don't
> think
> > the jruby bindings knows how to use RemoteNeo. 2. RemoteNeo lives in the
> > laboratory part of the repository and I have not had time to update it in
> a
> > while, so it might have some issues, but for one single server and one
> > single client it should work fine for read only operations.
> >
> > Your second option is to use Neo shell. To use this you need to invoke
> > NeoService#enableRemoteShell() in your background process and download
> and
> > run the neo-shell.jar. This does not have support for jruby, but works
> fine
> > for simple interactive introspection of the graph in a running
> application.
> >
> > Happy hacking,
> > Tobias
> >
> > On Mon, Apr 6, 2009 at 2:06 PM, Jan Berkel <jan.berkel at gmail.com> wrote:
> >
> >>
> >> hi there,
> >>
> >> just subscribed to the mailing list. i'm using neo4j (w/ jruby
> >> bindings) and was wondering if there's a way to create a read-only
> >> embedded neo instance. i've got a background process updating the db,
> >> but want to be able to launch another jirb instance to query the data
> >> at the same time. i don't really want to mess with RMI to get access
> >> to the server. is this possible?
> >>
> >>
> >>
> >> thanks,
> >>
> >>  jan
> >>
> >> _______________________________________________
> >> Neo mailing list
> >> User at lists.neo4j.org
> >> https://lists.neo4j.org/mailman/listinfo/user
> >>
> >
> >
> >
> > --
> > Tobias Ivarsson <tobias.ivarsson at neotechnology.com>
> > Hacker, Neo Technology
> > www.neotechnology.com
> > Cellphone: +46 706 534857
> > _______________________________________________
> > Neo mailing list
> > User at lists.neo4j.org
> > https://lists.neo4j.org/mailman/listinfo/user
> >
> >
> _______________________________________________
> Neo mailing list
> User at lists.neo4j.org
> https://lists.neo4j.org/mailman/listinfo/user
>


More information about the User mailing list