Kbase 18207: Apptivity how to detect the closing of the application
Autor |
  Progress Software Corporation - Progress |
Acesso |
  Público |
Publicação |
  25/08/1998 |
|
Apptivity how to detect the closing of the application
Sometimes you might want to clean up the Java environment you have
created without the Apptivity environment knowing about it. This might
be a final rollback or commit command to get the changed data
synchronized when you have set the autocommit off.
The way this is implemented for Apptivity is that the abApplication
class has overridden the stopRunning() method from the
netscape classes to be able to clean up the Apptivity environment.
If you want to have a hook into the stopping of the application, you
need to override the stopRunning() method in your window class that
extends the abApplication class. This can be done in the following
way:
public void stopRunning(){
// Code to clean up
System.out.println("I'm closing now !!!!!");
super.stopRunning();
}
TBO
08/25/1998