you miss tx.success()

Am 13.01.2014 um 06:42 schrieb José Cornado <[email protected]>:

> Hi! I have seen this hanging problem adressed before in this forum.
> 
> I am storing the graph locally (no http access)
> 
> the method in question performs:
> 
> 
> Node gn;
> 
> Transaction t = graph.beginTx();
> 
> Label l = DynamicLabel.label(s);
> 
> try{
> 
> if (!root.hasLabel(l)){
> 
> gn = graph.createNode();
> 
> root.createRelationshipTo(gn, Relationships.CONTAINS);
> 
> }
> 
> t.success(); // HERE
> }
> 
> finally{
> 
> t.close();
> 
> }
> 
> Any ideas?
> 
> 
> 
> Thanks!!
> 
> 
> -- 
> You received this message because you are subscribed to the Google Groups 
> "Neo4j" group.
> To unsubscribe from this group and stop receiving emails from it, send an 
> email to [email protected].
> For more options, visit https://groups.google.com/groups/opt_out.

-- 
You received this message because you are subscribed to the Google Groups 
"Neo4j" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/groups/opt_out.

Reply via email to