Greetings...
For testing purposes, I want to connect to local session, instead of appserver. (want to stress configure local connection when appserver not availabe)
I remember once I read this "trick", but couldn't find where...was that...
I remember that the connection was ordered to session:something.. but can't recall...
Any help is very appreciatted.
hAppServer = SESSION.
hAppServer = SESSION.
That's it?
Thanks... testing...
Yes.. It works...
Just I wonder...
Should I:
Disconnect hAppServer ...?
It throw error (4052) not being an attrib queryable for Pseudo-Widget
and (5425) for hadle not avalid for DELETE OBJECT.
Should I add some validation before delete?
IF NOT (SESSION = hAppServer) THEN DO:
Disocnnect hAppServer.
Delete hAppServer.
END.
hAppServer will die when procedure ends... ?
Is it how is planned?
TIA,..
That, or simply add 'NO-ERROR' to it.
Generally, I hate NO-ERROR as a simple workaround.
I'd rather test for the conditions beforehand or wrap the single statement with an CATCH block and ignore only certain expected errors and log all others to a log file.
There is no reason to connect, disconnect or delete.
I use that approach, as the realtime conditions of app is to scarce connections to appserver once in a while as the needs of the user can distribute calls to services for few minutes apart from each other....
Or the opposite is common use case?