Reputation: 2290
I'm using the java embedded version of the neo4j (v. 1.7.02), created a small project using Chypher for quering the db and everythings works ok. Now I'm trying to deploy it on Tomcat to work as web app, hence I created a REST service using Jersey. The REST works fine too, but without neo4j.
I'm really struggling to get neo4j running and connecting within the webservice REST project, I'm not sure where to locate the tb and how to config it to get neo4j run fine with tomcat. I uploaded neo4j libraries manually without maven.
I searched a lot on the web, with no luck. Anyone knows where to place the neo db folder or where to find a basic conf for it?
Thanks in advance
EDIT: This is my connection to db:
// NEO4J SERVER START
GraphDatabaseService graphDb = new EmbeddedGraphDatabase("neo4jdb");
this is my structure:
Upvotes: 1
Views: 1196
Reputation: 19373
Not sure why you're having trouble with Tomcat and Neo4j. They really shouldn't have anything to do with each other. Your application in standalone mode with embedded neo4j works fine it appears. Then it should also work when run in a container. How does your app connect to neo4j? The neo4j folder can be anywhere- as long as you specify the path to it when you construct an Embedded database server.
Upvotes: 1