Hi,

You are executing operation without transaction on transactional cache. In
that case transaction was created implicitly on each operation.

Transaction is needed if you need to execute several operation as one.

On Fri, Sep 9, 2016 at 12:35 PM, seyeony <seyeony...@gmail.com> wrote:

> Hi,
> During the persistent store test (CacheAutoStoreExample.java from
> examples),
> I removed (commented out) the Transaction statemements as follows:
> //                try (Transaction tx = ignite.transactions().txStart()) {
>                   ...
>                   ...
> //                    tx.commit();
> //                }
>
> I found the result is same as before (code with Transaction commit()).
>
> Does the Transaction statemements not need, if Read-Through and
> Write-Through are set as true in the CacheConfiguration as follows?
>         cfg.setReadThrough(true);
>         cfg.setWriteThrough(true);
> -SY
>
>
>
> --
> View this message in context: http://apache-ignite-users.
> 70518.x6.nabble.com/Transaction-tx-ignite-transactions-txStart-and-tx-
> commit-tp7628.html
> Sent from the Apache Ignite Users mailing list archive at Nabble.com.
>



-- 
Vladislav Pyatkov

Reply via email to