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.

Connecting to multiple databases

I have multiple databases, I copied data from default neo4j database to example1 database using neo4j-admin copy command. I updated few values on leader node( writer) in example1 database. when I used withDatbase or forDatabase() in java code by passing the database name in session configuration, I am not getting results from example1 database from Java API where as when I execute query in cypher shell i'm seeing updated values.

I've created ticket with Neo4j team and I shared query.log and debug.log, but since 3 weeks we have not found root cause why API not fetching right results.

I am using neo4j java driver 4.4.9. is there any bug in Neo4j Driver in 4.4.9 ? 

 

<groupId>org.neo4j.driver</groupId>
<artifactId>neo4j-java-driver</artifactId>
<version>4.4.9</version>

Do i need to set any session time out or something else ?  Appreciate your response.

 

SessionConfig config = SessionConfig.builder()
.withDatabase("example1")
.withDefaultAccessMode(mode)
.build();

Or 
driver.session(SessionConfig.forDatabase("example1"));
1 REPLY 1

Hello, I realize this is a very late follow-up, but do you still need help with this?