javax.jms.JMSException: Connection unknown by server.

javax.jms.JMSException: Connection unknown by server.

book

Article ID: KB0093296

calendar_today

Updated On:

Products Versions
TIBCO Enterprise Message Service -
Not Applicable -

Description

Description:
From EMS 8.x onwards (both the client libraries and the EMS server), a new exception is thrown from the EMS server when the server no longer holds a connection object. For example, when the EMS server reports: "reconnect failed: connection unknown for id=xx" in the server log.

Symptoms:
New exception is thrown. The client does not use all of its reconnection retries before realizing the connection object is no longer held by the EMS server.

Cause:
N/A

Issue/Introduction

javax.jms.JMSException: Connection unknown by server.

Resolution

Beginning with EMS 8.0, a new exception, "javax.jms.JMSException: Connection unknown",  is thrown when the EMS server reports, "reconnect failed: connection unknown for id=xx". The client does not keep trying to reconnect to the EMS server using the connection object which is no longer held by the EMS server. The connection object could have been purged or deleted administratively.

This new exception was introduced in the following fix in EMS 8.0.0:

EMS-4375: Previously, an EMS client would continue to attempt a connection to an uknown ID. This has been fixed. If a server reports reconnect failed: connection unknown for id=<id>, the client now stops trying to reconnect.

Additional Information

API EMS 8.x and newer both for EMS and client libraries.