title: How can i use parallel transactions in neo4j?
body: <p>I am currently working on an application using Neo4j as an embedded database.</p>
  
  <p>And I wondering how it would be possible to make sure that separate threads use separate transactions. Normally, I would assign database operations to a transaction, but the code examples I found, don't allow for making sure that write operations use separate transactions:</p>
  
  <pre><code>try (Transaction tx = graphDb.beginTx()) {
      Node node = graphDb.createNode();
      tx.success();
  }
  </code></pre>
  
  <p>As graphDB shall be used as a thread-safe singleton, I really don't see, how that shall work... (E.g. for several users creating a shopping list in separate transactions.)</p>
  
  <p>I would be grateful for pointing out where I misunderstand the concept of transactions in Neo4j.</p>
  
  <p>Best regards and many thanks in advance,
  Oliver</p>