I would like to use neo4j’s embedded db on my web app.
Unfortunately I cannot use Spring.
Instead of instantiating a new db on each call, I’d rather inject a singleton.
How do I achieve this on Jetty ?
many thanks,
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Not sure what exactly you are looking for, but I think you could inject a Neo4j instance into your servlet as a singleton via the servlets context?