cancel
Showing results for 
Search instead for 
Did you mean: 

Head's Up! These forums are read-only. All users and content have migrated. Please join us at community.neo4j.com.

How can we connect to neo4j cluster hosted on AWS EC2 from local spring boot application?

How can we connect to the Neo4j AWS cluster from the local spring boot application?

Any reference code is very much appreciated as my code

neo4j://localhost:8082 or bolt+routing://localhost:8082 does the thing but still, it gives the error

Closing connection pool towards localhost(127.0.0.1):8082, it has no active connections and is not in the routing table registry

1 REPLY 1

Hi. You already figured the correct Spring property, that's the correct way.

I assume that you are running a custom AWS instance / cluster.
Make sure you configure the correct advertised address: Configure connectors - Operations Manual

It must be the ones reachable from outside the AWS instance.

This is not a Spring Boot or Spring Data issue but it would happen if you use the plain driver to connect to the cluster as well.