spring - disable (or change port) for web interface of neo4j embedded? -
I have several small web service projects that use embedded neo4j 2.x.
Any combination of them can be deployed in a tomcat insent, and therefore I do not need all the efforts to start the web service on port 7474.
Acceptable solutions either disable the web interface on them, or use each one separate port, whether the first option is possible through spring configuration? if so, how?
I have tried with a config map:
& lt; Util: map id = "config" & gt; & Lt; Entry key = "enable_remote_shell" value = "wrong" /> & Lt; Entry key = "org.neo4j.server.webserver.port" value = "7475" /> & Lt; / Util: map & gt; & Lt; Bean id = "graphDbFactory" class = "org.neo4j.graphdb.factory.GraphDatabaseFactory" /> & Lt; Bean id = "GraphBiblebuilder" factory-bean = "graphfbffifter" factory-method = "new embedded database builder" & gt; & Lt; Constructor-arg value = "$ {neo4j.database.path}" /> & Lt; / Bean & gt; & Lt; Bean id = "graphDbBuilderFinal" factory-ben = "graphDbBuilder" factory-method = "setConfig" & gt; & Lt; Constructor-arg referee = "config" /> & Lt; / Bean & gt; & Lt; Bean id = "graphDatabaseService" factory -ben = "graphDbBuilderFinal" factory-method = "newGraphDatabase" delete-method = "off" /> & Lt; Bean id = "serverWrapper" class = "org.neo4j.server.WrappingNeoServerBootstrapper" init-method = "start" delete-method = "stop" & gt; & Lt; Constructor-arg ref = "graphDatabaseService" / & gt; & Lt; / Bean & gt; But JT still has web service bound in port 7474 ... so I think
- Disabling remote shell does not disable the web Is Admin Interface?
- org.neo4j.server.webserver.port is the wrong key, or
- I have found the wrong recipe for the configuration (although it is compatible with all Neo4j 2.x Spring configuration examples can be found online)
If not, what do I set in the configuration to give each different port number for the web interface? Thank you.
remove this part
Comments
Post a Comment