What's the proper way to shutdown the Neo4J store in this kind of
application?
Since I'm not using Spring MVC, I don't have a convenient way to
reference the
Neo4J graphDatabaseService bean with the ServletContextListener
lifecycle
methods.
Specifying a destroy-method in the bean definition for the
graphDatabaseService
bean doesn't appear to be doing much:
<bean id="graphDatabaseService"
class="org.neo4j.kernel.EmbeddedGraphDatabase"
destroy-method="shutdown">
<constructor-arg index="0" value="data/graph.db" />
</bean>
It does not get called, when I stop Jetty.
-TPP
The shutdown method of the context-listener will shut-down the context will shut down the database.
Michael