[ 
https://issues.apache.org/jira/browse/ARTEMIS-2553?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Justin Bertram updated ARTEMIS-2553:
------------------------------------
    Description: 
On a connection failure Artemis detects the failure:
{noformat}
2019-11-14 05:00:58,970 [Thread-13691 
(ActiveMQ-server-org.apache.activemq.artemis.core.server.impl.ActiveMQServerImpl$3@23e9e1b6)]
 WARN [RemotingConnectionImpl.fail() 198] - AMQ212037: Connection failure has 
been detected: AMQ119014: Did not receive data from /10.94.80.72:37708 within 
the 60,000ms connection TTL. The connection will now be closed. 
[code=CONNECTION_TIMEDOUT]
{noformat}
We have a JMS {{ExceptionListener}} added:
{code:java}
connection.setExceptionListener(new ExceptionListener() { 
    @Override public void onException(JMSException exception) { 
        log.info(LogFactory.getJsonLogger("connection has failed, message: " + 
exception.getMessage())); 
        consumer.accept(exception); 
    }
});
{code}
But it never receives any event.

  was:
On a connection failure Artemis detects the failure:
{noformat}
2019-11-14 05:00:58,970 [Thread-13691 
(ActiveMQ-server-org.apache.activemq.artemis.core.server.impl.ActiveMQServerImpl$3@23e9e1b6)]
 WARN [RemotingConnectionImpl.fail() 198] - AMQ212037: Connection failure has 
been detected: AMQ119014: Did not receive data from /10.94.80.72:37708 within 
the 60,000ms connection TTL. The connection will now be closed. 
[code=CONNECTION_TIMEDOUT]
{noformat}
We have a JMS {{ExceptionListener}} added:
{code:java}
connection.setExceptionListener(new ExceptionListener() { 
    @Override public void onException(JMSException exception) { 
        log.info(LogFactory.getJsonLogger("connection has failed, message: " + 
exception.getMessage())); 
        consumer.accept(exception); 
    }
});
{code}
But it never receives any event.

 

 

 

 


> On connection failure, not receiving JMS ExceptionListener message
> ------------------------------------------------------------------
>
>                 Key: ARTEMIS-2553
>                 URL: https://issues.apache.org/jira/browse/ARTEMIS-2553
>             Project: ActiveMQ Artemis
>          Issue Type: Bug
>    Affects Versions: 1.6.0
>         Environment: Amazon linux on Tomcat 9.0, JDK 1.8
>            Reporter: Mitchell Ackerman
>            Priority: Major
>
> On a connection failure Artemis detects the failure:
> {noformat}
> 2019-11-14 05:00:58,970 [Thread-13691 
> (ActiveMQ-server-org.apache.activemq.artemis.core.server.impl.ActiveMQServerImpl$3@23e9e1b6)]
>  WARN [RemotingConnectionImpl.fail() 198] - AMQ212037: Connection failure has 
> been detected: AMQ119014: Did not receive data from /10.94.80.72:37708 within 
> the 60,000ms connection TTL. The connection will now be closed. 
> [code=CONNECTION_TIMEDOUT]
> {noformat}
> We have a JMS {{ExceptionListener}} added:
> {code:java}
> connection.setExceptionListener(new ExceptionListener() { 
>     @Override public void onException(JMSException exception) { 
>         log.info(LogFactory.getJsonLogger("connection has failed, message: " 
> + exception.getMessage())); 
>         consumer.accept(exception); 
>     }
> });
> {code}
> But it never receives any event.



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

Reply via email to