Keep in mind that an applet’s init
method is usually invoked when the user presses the browser "reload" button; more fine-grained exception handling than usual may be necessary inside your init
to ensure correct operation. Always test the various "start," "stop," "clone," and "reload" options in appletviewer to verify that your applet is working properly under all circumstances.
A good guideline is to register your callbacks in init
and remove them in destroy
. If you create message types in init
, a "reload" will cause TipcSvc.createMt to throw an exception the second time through init
, so be sure to plan for that appropriately.
TIBCO SmartSockets™ Java Library User’s Guide and Tutorial Software Release 6.8, July 2006 Copyright © TIBCO Software Inc. All rights reserved www.tibco.com |