title: Connection Neo4j with Glassfish via Rest
body: <p>Hello and thanks for your time!
  I have been looking for solution long enough, but didn't find <strong>how to connect glassfish with built-in Jersey via Rest.</strong> Actually, it's not a point make it via Rest, but I found out that I can't do that anyway else, if I plan using not-embedded neo4j.</p>
  
  <p><a href="http://docs.neo4j.org/chunked/milestone/server-java-rest-client-example.html" rel="nofollow">http://docs.neo4j.org/chunked/milestone/server-java-rest-client-example.html</a>
  In the manual I need to install Jersey, but that Jersey is different than Glassfish's one, there's no needed classes inside.
  I cant just replace Jersey files in Glassfish because of GF incompability. So, do I need to use another Jersey client, foreing to Glassfish, for Rest queries? </p>
  
  <p>I found also framework neo4j-rest-graphdb, but I'm not sure it will work and probably is what I need. <a href="http://m2.neo4j.org/content/repositories/releases/org/neo4j/neo4j-rest-graphdb/2.0.0-M06/" rel="nofollow">http://m2.neo4j.org/content/repositories/releases/org/neo4j/neo4j-rest-graphdb/2.0.0-M06/</a></p>
  
  <p>I found JDBC driver for Neo4j - is this a better for these purposes? 
  Thank you!</p>