java-rest-binding
java-rest-binding copied to clipboard
QueryResult is not closing itself.
Problem issues are documented here:
http://stackoverflow.com/questions/16148190/neo4j-queryresult-wont-exit
Currently I have this class. When I remove QueryResult it runs the main method and completes on its own. When I add QueryResult I need to manually kill the run.
public class TestConnect { public static void main(String[] args) { System.out.println("starting test"); final RestAPI api = new RestAPIFacade("http://localhost:7474/db/data"); System.out.println("API created"); final RestCypherQueryEngine engine = new RestCypherQueryEngine(api); System.out.println("engine created"); QueryResult<Map<String,Object>> result = engine.query("start n=node({id}) return n;", map("id",0)); } }