Spring Integration MQTT Subscriber (paho) stops processing messages

后端 未结 2 1750
甜味超标
甜味超标 2020-12-22 08:10

We\'re experiencing an issue with one of our MQTT subscribers in Spring integration (4.0.3.RELEASE running on Tomcat 7 with the Paho MQTT Client 0.4.0).

The issue i

2条回答
  •  春和景丽
    2020-12-22 08:43

    First of all share, please, the versions of Spring Integration and Paho Client.

    According to the after doing a couple of redeploys I see this code from CommsReceiver#.stop():

    if (!Thread.currentThread().equals(recThread)) {
        try {
            // Wait for the thread to finish.
            recThread.join();
        }
        catch (InterruptedException ex) {
        }
    }
    

    Where Thread.join():

    * Waits for this thread to die.
    

    I'm really not sure what it means and how it should go further on that wait, but won't the redeploy be a bottleneck to allow for those daemons to continue to live, because the main Thread doesn't die?

提交回复
热议问题