Access to the neo4j browser when starting a built-in connection using a bolted connector

My project is in Java, and I create an embedded connection to my Neo4j base and add a bolted connector to it, as described in the documentation:

http://neo4j.com/docs/java-reference/current/#tutorials-java-embedded

the code:

GraphDatabaseSettings.BoltConnector bolt = GraphDatabaseSettings.boltConnector("0"); graphDb = new GraphDatabaseFactory() .newEmbeddedDatabaseBuilder(new File("C:/.../default.graphdb")) .setConfig(bolt.enabled, "true") .setConfig(bolt.address, "localhost:7687") .newGraphDatabase(); 

According to the Neo4j documentation, I would think that now I can connect to the database using a browser based on "By default, Neo4j Embedded does not provide a Bolt connector, but you can enable it. This allows you to connect the Neo4j Browser services for your embedded instance" . However, if I run the code, although I can programmatically execute everything I need, I cannot access the browser in localhost:7474 and localhost:7687

My question is: is this just poorly written documentation, and is this really not a supported feature? Or is there an undocumented way to connect to the database through a bolt connection created in code that will allow me to view data using the Neo4j browser when starting my built-in connection?

Edit: I am already using the bolt driver library

+6
source share
1 answer

You need to place the neo4j-bolt-3.0.3 jar in the working directory where your code is running so Neo4j can load it. The Bolt connector is a kernel extension.

I managed to get Neo4j Browser to connect and work with the built-in instance by first starting a separate server (stand-alone) Neo4j, and my browser cache Neo4j Browser. Then, in the Neo4j browser settings, check the box “Use bolt protocol if available” and set the “Bolt host” to the address of my built-in instance. Then shutting down a single server instance. I don't know if this approach supports it, but it seems to work quite well for me.

I have not configured my embedded instance to use authentication.

0
source

All Articles