Appservers and Transactions

Posted by Tim Kuehn on 19-Dec-2016 11:19

I'm looking at some code which has this structure:

DO TRANSACTION:

/* connect to appserver */

/* do something on appserver */

/* do something else on appserver */

/* disconnect from appserver */

END.

Question - do transactions span calls to an appserver? I would think not...

Posted by Brian K. Maher on 19-Dec-2016 11:24

Tim,
 
The client side transaction doesn’t span the boundary, however, if the code running on the AppServer makes use of the TRANSACTION-MODE statement then the transaction on the AppServer side can be made to span multiple calls from the client to the AppServer.
 
Brian

Posted by Jeff Ledbetter on 19-Dec-2016 11:25

Not like that. You can create a transaction that spans AS calls with the TRANSACTION-MODE AUTOMATIC statement.

All Replies

Posted by Brian K. Maher on 19-Dec-2016 11:24

Tim,
 
The client side transaction doesn’t span the boundary, however, if the code running on the AppServer makes use of the TRANSACTION-MODE statement then the transaction on the AppServer side can be made to span multiple calls from the client to the AppServer.
 
Brian

Posted by Jeff Ledbetter on 19-Dec-2016 11:25

Not like that. You can create a transaction that spans AS calls with the TRANSACTION-MODE AUTOMATIC statement.

Posted by Tim Kuehn on 19-Dec-2016 11:31

Is that just for PASOE or for Classic Appserver as well?

Posted by Jeff Ledbetter on 19-Dec-2016 11:34

Classic AppServer. It's been around for quite some time. :)

Posted by Tim Kuehn on 19-Dec-2016 11:53

Jeff pointed me to the "Developing Appserver Applications" doc for a better explanation and now all is clearer.

Thx all!

This thread is closed