Details
-
Improvement
-
Status: Closed
-
Major
-
Resolution: Duplicate
-
2.12.1
-
None
-
None
-
all
-
Novice
Description
Hi!
What do you think about adding a call to the exceptionHandler in the doStart() method of XmppConsumer class ?
It would looks like :
try
{ connection = endpoint.createConnection(); } catch (XMPPException e) {
if (endpoint.isTestConnectionOnStartup())
else
{ final String xmppExceptionLogMessage = XmppEndpoint.getXmppExceptionLogMessage(e); LOG.warn(xmppExceptionLogMessage); getExceptionHandler().handleException(xmppExceptionLogMessage,e); scheduleDelayedStart(); return; }}
This allowed an exceptionHandler to be notified of failure connection.
The testConnectionOnStartup doesn't call exceptionHandler because the exception is thrown while starting the consumer.