Our Online Store have the new products: RFID antenna board. Currently it can work with JC10M24R and JCOP4 card chips.
Compared with normal cards, the antenna board module has a smaller size and fixed holes, which is easy to integrate in the IOT(Internet Of Things) project.

the max size of atomic transaction buffer

JavaCard Applet Development Related Questions and Answers.
Rasiand
Posts: 12
Joined: Mon Mar 14, 2016 8:25 am
Points :133
Contact:

the max size of atomic transaction buffer

Post by Rasiand » Wed Jun 29, 2016 4:36 am

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

wousim
Posts: 14
Joined: Tue Feb 16, 2016 10:12 pm
Points :109
Contact:

Re: the max size of atomic transaction buffer

Post by wousim » Thu Jun 30, 2016 1:59 am

It‘s set by the card manufacturer.

There are several methods in the JCSystem class that can do this - getMaxCommitCapacity and getUnusedCommitCapacity.

Rasiand
Posts: 12
Joined: Mon Mar 14, 2016 8:25 am
Points :133
Contact:

Re: the max size of atomic transaction buffer

Post by Rasiand » Thu Jun 30, 2016 3:23 am

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 ?

wousim
Posts: 14
Joined: Tue Feb 16, 2016 10:12 pm
Points :109
Contact:

Re: the max size of atomic transaction buffer

Post by wousim » Fri Jul 01, 2016 9:34 pm

You'd better not do this! You may either receive 0x6F00 or have your transaction rolled back.

Post Reply Previous topicNext topic

Who is online

Users browsing this forum: No registered users and 12 guests

JavaCard OS : Disclaimer