Appserver -- disconnect method

atuldalvi

Member
whenever I m trying to disconnect appserver by using DISCONNECT(), system showing "DISCONNCT is not a queryable attribute for PSUEDO-widget".

Pls help me.
 
are you sure you are trying to disconnect an AppServer and are not doing the disconnect on a variable that holds the session system handle instead of a "real" AppServer? It may also help if you include some code that shows what you are doing....

Paul
 
You cannot disconnect the session system handle. The session system handle can be used instead of an appserver handle so that you can run your appserver aware application when not actually having appservers (so when your client is connected to the database). I suggest you do something like this:
Code:
if   valid-handle(<your-handle-variable>)
and  <your-handle-variable> ne session 
and  <your-handle-variable>:connected()
then <your-handle-variable>:disconnect() no-error.
 
Back
Top