Hi,
I am a little confused about how to handle transaction propagation in
OrientGraph correctly. Basically I want to make group of method calls into
one transaction. Based on OrientDB documentation, I have to use the same
instance of OrientGraph object to achieve this. In my code, each method is
using the following method call to get OrientGraph instance
OrientGraphFactory.getTx();
OrientGraphFactory is a singleton in my application and configured as new
OrientGraphFactor("plocal:data").setupPool(1, 10);
Now my question is "Does OrientGraphFactory.getTx() will return the same
OrientGraph instance for current thread? If not, does that mean my
transaction is not propagated? Do I have to implement my own ThreadLocal to
hold on to the same OrientGraph instance for current thread or pass the
same OrientGraph instance into every single method?
Thanks,
Tai
--
---
You received this message because you are subscribed to the Google Groups
"OrientDB" 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/d/optout.