Multiple Castor Transactions

german version

main page



This is the current schema when issuing multiple Castor transactions after another:

current

In this example we create a new JDO, and store it into the database. After that we query this (or another object) using an OQL query, change it and store it back into the database.

Note two things:


The following picture shows a way to optimize the operations when using multiple Castor transactions:

optimized
This way we save the heavy step to re-open a database session any time we want to begin another transaction.



up
see also: single Castor Transactions german version

main page