Re: Connect to server JAVA API

980 views
Skip to first unread message

Josh Adell

unread,
Sep 21, 2012, 9:08:55 AM9/21/12
to ne...@googlegroups.com
Your options are using the a REST binding (this one is recommended: https://github.com/neo4j/java-rest-binding) or annoying the Neo4j team until they come up with a binary protocol (we've been begging for a long time and it hasn't happened yet.)

-- Josh

On Friday, September 21, 2012 8:01:43 AM UTC-4, Anders Andren wrote:
Tried to find info about connecting from native java to remote Neo4j server.
Can´t seem to find it. Anyone got any info?

Michael Hunger

unread,
Sep 21, 2012, 10:39:45 AM9/21/12
to ne...@googlegroups.com
Otherwise it is just HTTP/REST so every http client will do.


Michael

Am 21.09.2012 um 14:01 schrieb Anders Andren:

Tried to find info about connecting from native java to remote Neo4j server.
Can´t seem to find it. Anyone got any info?

--
 
 

Anders Andren

unread,
Sep 21, 2012, 3:01:57 PM9/21/12
to ne...@googlegroups.com
Thx, "parsing" json.... no way.

Will use something else, any ideas?

Toni Menzel

unread,
Sep 21, 2012, 3:07:45 PM9/21/12
to ne...@googlegroups.com
Anders,
you did follow the links provided ? The Java Rest Binding does REST under the covers. _You_ are using the GraphDatabaseService API.
Toni

Toni Menzel | Founder | Rebaze GmbH
Access To Alien Technology: Great software needs a great foundation. We help unlocking the next level in technology.



--
 
 

lambre...@gmail.com

unread,
Sep 21, 2012, 3:12:18 PM9/21/12
to ne...@googlegroups.com, Anders Andren
On 21/09/12 21.01, Anders Andren wrote:
> Thx, "parsing" json.... no way.
>
> Will use something else, any ideas?

not exactly what you asked for but thought i mention it FWIW.
we decided to go the unmanaged extensions way as described here:

http://docs.neo4j.org/chunked/milestone/server-unmanaged-extensions.html

in short, one gets the entire java and cypher functionality and can then
expose results in whatever format one chooses, albeit still transported
back to your native java via http.

./allan





Anders Andren

unread,
Sep 26, 2012, 2:35:51 AM9/26/12
to ne...@googlegroups.com, Anders Andren
Thanx, will look into that.
You think that´s production ready path to go?

Anders

Peter Neubauer

unread,
Sep 26, 2012, 3:17:29 AM9/26/12
to ne...@googlegroups.com, Anders Andren
Anders,
yes, that works in production. Of course you have to take into
consideration that you are building your own domain API, nothing less
or more here, and as such are free to design that however you want. On
the other hand, you are handling possible load bottlenecks like big
collections of objects etc., and might do some profiling before going
into production.

Cheers,

/peter neubauer

Neo4j 1.8.RC1 "Vindeln Vy" -
http://blog.neo4j.org/2012/09/neo4j-18rc1-really-careful-ftw.html

G: neubauer.peter
S: peter.neubauer
P: +46 704 106975
L: http://www.linkedin.com/in/neubauer
T: @peterneubauer

Wanna learn something new? Come to @graphconnect.
> --
>
>

RickBullotta

unread,
Sep 26, 2012, 3:43:55 PM9/26/12
to ne...@googlegroups.com
At ThingWorx, we're experimenting with a WebSocket-based binary approach.  Still a form of RPC, but the payloads are in a streaming binary format, and the client<->server physical connection is kept open and active. The potential easily exists for one or two orders of magnitude performance improvement and a WHOLE lot less garbage collection.

Duane Nickull

unread,
Sep 28, 2012, 3:23:45 PM9/28/12
to ne...@googlegroups.com, Peter Neubauer, James Ward
OK – I'll be the odd man out.  To be honest, JSON is growing on me.  I have also started a side project to investigate AMF<-> Neo4J.  AMF is a proprietary and very compact binary format  used by Flash but people have written JS libraries for it (thanks James Ward!).  XML is workable and if your business req's require it, it is a good choice but AMF is much faster.

Here is an overview of AMF/JS working.


James is a rock star in this area and I am proud to consider him a friend (and someone I can beat on a bike <duck>).

Duane Nickull
***********************************
Technoracle Advanced Systems Inc.
Consulting and Contracting; Proven Results!
i.  Neo4J, PDF, Java, LiveCycle ES, Flex, AIR, CQ5 & Mobile
t.  @duanechaos
"Don't fear the Graph!  Embrace Neo4J"



--
 
 

Peter Neubauer

unread,
Sep 28, 2012, 4:25:19 PM9/28/12
to Duane Nickull, ne...@googlegroups.com, James Ward
Sounds cool.
Actually, I think Michael Hunger is right now hanging out at Heroku,
so James and Michael, you might have a chat about that!

Cheers,

/peter neubauer

G: neubauer.peter
S: peter.neubauer
P: +46 704 106975
L: http://www.linkedin.com/in/neubauer
T: @peterneubauer

Wanna learn something new? Come to http://graphconnect.com
Reply all
Reply to author
Forward
0 new messages