cancel
Showing results for 
Search instead for 
Did you mean: 

"Commit work and wait" possible with JCA/JRA ?

Former Member
0 Kudos

Is it possible to specify the "commit and wait" directive with Java when attempting to commit a transaction via an RFC ? I am using JCA/JRA. If it is not possible with this version of JCA/JRA, will it be implemented in the next version ?

Thanks in advance,

Mark

Accepted Solutions (0)

Answers (1)

Answers (1)

SidBhattacharya
Product and Topic Expert
Product and Topic Expert
0 Kudos

Do you mean commit at the SAP end?

If yes then you need to use BAPI_TRANSACTION_COMMIT to commit your changes.

If you are talking about a tx started at the J2EE end then you can use the LocalTransaction begin() commit() or rollback() methods.

Former Member
0 Kudos

No, apparently it is not as simple as that

An abap programmer explained to me that there is

a difference between the 'commit' and 'commit and wait'

directives; the former is asynchronous, the latter synchronous.

When I call commit() on the UserTransaction object, I believe I am calling the asynchronous 'commit', whereas what I want is to call the synchronous version via the JCA api.

Thanks,

Mark