Author Topic: How can I detect a T-Server disconnection on PSDK 9?  (Read 3365 times)

Offline Gabi

  • Jr. Member
  • **
  • Posts: 64
  • Karma: 0
How can I detect a T-Server disconnection on PSDK 9?
« on: August 23, 2021, 12:00:53 PM »
I am maintaining a custom Java application which connects to the T-Server. It used to work well when the server was 8.5, but since it was migrated to 9.0, the application no longer detects server disconnections.

ADDP is set up as indicated by the Genesys documentation:
[code] PropertyConfiguration serverConfig = new PropertyConfiguration();
serverConfig.setUseAddp(true);
serverConfig.setAddpServerTimeout(20);
serverConfig.setAddpClientTimeout(10);
serverConfig.setAddpTraceMode(AddpTraceMode.Both);[/code]

However, nothing happens when the T-Server disconnects. The application is no longer notified of an unexpected disconnection until it attempts to interact with the fallen T-Server and gets an error.

Is there a way to make the application identify when the connection is closed?

Thanks in advance.

Offline cavagnaro

  • Administrator
  • Hero Member
  • *****
  • Posts: 7639
  • Karma: 56330
Re: How can I detect a T-Server disconnection on PSDK 9?
« Reply #1 on: August 23, 2021, 03:08:46 PM »
You have a listener for the Disconnect Event?