Page 1 of 1
the max size of atomic transaction buffer
Posted: Wed Jun 29, 2016 4:36 am
by Rasiand
As we all know, atomic transaction buffer is used to log changes in order to help JCRE rollback in case of failed command. But I don't know the max size of this buffer. Could I just beginTransaction and never invoke commitTransaction ?
Thanks
Re: the max size of atomic transaction buffer
Posted: Thu Jun 30, 2016 1:59 am
by wousim
It‘s set by the card manufacturer.
There are several methods in the JCSystem class that can do this - getMaxCommitCapacity and getUnusedCommitCapacity.
Re: the max size of atomic transaction buffer
Posted: Thu Jun 30, 2016 3:23 am
by Rasiand
wousim wrote:It‘s set by the card manufacturer.
There are several methods in the JCSystem class that can do this - getMaxCommitCapacity and getUnusedCommitCapacity.
If I know nothing about the max size of this buffer, Can I just beginTransaction and never invoke commitTransaction ?
Re: the max size of atomic transaction buffer
Posted: Fri Jul 01, 2016 9:34 pm
by wousim
You'd better not do this! You may either receive 0x6F00 or have your transaction rolled back.