Hey Chris,
It uses C++ to spawn a JVM process.
The reason i began with it was, that the REST endpoint was too slow (single threaded, serialization) for me on bigger data exchanges over the wire.
The advantage is, that with the embedded driver, the data is marshalled directly to native Javascript objects, wich makes execution much faster in my experience.
Thanks for your great examples, but sadly I think it's not possible to manage the transactions…
From my point of view I would need to assign all Java calls inside a "transaction" function to a specific thread, which would be the most simple solution, if possible.
Another way I see, is to build up some kind of call stack of each function call inside a "transaction" function.
Then pass that stack to Java which executes them in order by reflection or something and let the Java method handle the transaction.
Similar to what the Rest Endpoint does, with Cypher statements.
I need to talk to joeferner about that topic and check if such things are possible.
Thanks for the hints anyway,
Jochen