Avaya Jtapi Programmer 39-s Guide
: Telephony event loops must remain unblocked. Never execute long-running operations, such as intensive database queries or third-party API calls, directly inside a JTAPI event listener thread. Always hand off incoming events to an internal worker thread pool ( ExecutorService ).
To receive call information, you must register a CallObserver or TerminalObserver on a specific address or terminal. avaya jtapi programmer 39-s guide
: Monitor your ProviderObserver for state transitions to Provider.OUT_OF_SERVICE . When detected, clear your application's current object caches, sleep momentarily to allow network stabilization, and loop back to execute the initialization process outlined in Section 3. : Telephony event loops must remain unblocked