ASYNCHRONOUS in the AppServer

trantor

New Member
I have AppServer "A" and AppServer "B".
In "A" have a procedure "proc_in_A" that run asynchronous a procedure that resides in "B". Have a statement like in "A" (it's in "proc_in_A"):
RUN someproc.p ON SyncSrv ASYNCHRONOUS SET async_hndl EVENT-PROCEDURE "p_asch_finish" NO-ERROR.
someproc.p resides in "B".
The first time I launch someproc.p, is OK, but when it finish, the EVENT-PROCEDURE doesn't run!
And second problem is, if I launch second invokation of "proc_in_A" during the first invokation is not finished, it seems that everything is fine, ASYNC-REQUEST-COUNT of server handle SyncSrv is incremented, but after the first request is done, second doesn't start!!! And the ASYNC-REQUEST-COUNT is not decremented.
If I launch "proc_in_A" when the previous "proc_in_A" is done, it's working, but again ASYNC-REQUEST-COUNT is not decremented!!!
Any ideas why this happened?
 
The first time I launch someproc.p, is OK, but when it finish, the EVENT-PROCEDURE doesn't run!
Maybe you need a "in - term" to say where you want the EVENT-PROCEDURE to execute:
RUN someproc.p ON SyncSrv ASYNCHRONOUS SET async_hndl EVENT-PROCEDURE "p_asch_finish" in Handle-Name NO-ERROR.
 
Back
Top