Stopping a request from OpenClient

Posted by ericg on 23-Nov-2011 10:47

Hi there. Is there a way to initiate a stop during a request to the AppServer from a .NET Open Client? Is there a method available in the Progress.o4glrt.dll? This would be for stateless and/or state-free sessions. Our AppServer procedures are wrapped around a ON STOP so there would be roll back. Thanks

All Replies

Posted by Jeff Ledbetter on 23-Nov-2011 11:15

Hi.

For our java plug-in open client access, we use the TRANSACTION-MODE AUTOMATIC statement in a transaction procedure on the AppServer. Basically, this allows the client to control the scope of the transaction by starting it and either committing or aborting it. For us, it has worked very well. The "Managing Transactions" section of the OE Guide has a pretty straight-forward ABL example. It should work the same for a .Net client as well.

Jeff

Posted by ericg on 23-Nov-2011 11:20

Thanks but we're using normal ABL transactions.

Posted by Jeff Ledbetter on 23-Nov-2011 11:23

You can still wrap the calls to your appservice in a transaction procedure if you want the client to be able to control the cancellation.

Posted by Michael Jacobs on 23-Nov-2011 19:35

From the .NET Open Client you can call the _CancelAllRequests( ) method to raise STOP in the AppServer.

Mike Jacobs

This thread is closed