You won't be able to get that far. Beginning a transaction is only
permitted on a session if a transaction is not already open there. If you
try to do so, an exception will be thrown.

On 2 June 2016 at 22:23, Michael Johnson <[email protected]> wrote:

>
> So if I get a session and then call beginTransaction() on that session and
> then call beginTransaction() again on that same Session and commit it
> (before committing the first one) will both transactions be rolled back if
> I call failure() on the first transaction?
>
>
>
> On Tuesday, May 31, 2016 at 8:04:29 PM UTC-4, Michael Hunger wrote:
>>
>> No, but you can open a new session which has its own TX.
>>
>> Michael
>>
>> > Am 27.05.2016 um 21:24 schrieb Michael Johnson <[email protected]>:
>> >
>> > Hello.  I'm migrating code from Embedded Neo4J to bolt.  I was
>> wondering if the behavior of transactions is still the same as with the
>> embedded API.  As in if you open a transaction within another transaction
>> is the newly opened transaction treated as a "placebo transaction," or has
>> that behavior changed?
>> >
>> > --
>> > 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/d/optout.
>>
>>

-- 
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/d/optout.

Reply via email to