You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@camel.apache.org by "Ivan Ravin (Jira)" <ji...@apache.org> on 2025/02/18 13:14:00 UTC

[jira] [Created] (CAMEL-21758) TemporaryQueueReplyManager does not inherit doStop method

Ivan Ravin created CAMEL-21758:
----------------------------------

             Summary: TemporaryQueueReplyManager does not inherit doStop method
                 Key: CAMEL-21758
                 URL: https://issues.apache.org/jira/browse/CAMEL-21758
             Project: Camel
          Issue Type: Bug
          Components: came-jms
    Affects Versions: 4.x
         Environment: Karaf 4.4.7, Camel 4.8.2
            Reporter: Ivan Ravin


{color:#000000}TemporaryQueueReplyManager{color}{color:#000000} {color}{color:#7f0055}extends{color}{color:#000000} ReplyManagerSupport{color}. Parent class contains method doStop(). But override method does not contains {color:#7f0055}super{color}{color:#000000}.{color}{color:#000000}doStop{color}{color:#000000}({color}{color:#000000}){color} call:
{code:java}
    @Override
    protected void doStop() throws Exception {
        ServiceHelper.stopService(destinationResolver);
    }
{code}
So, {color:#000000}TemporaryQueueReplyManager{color} starts some services, but not stop it. This is not big problem in standalone applications, but problem in Karaf environment. If I install route with InOut jms endpoint, and then stop it or even uninstall it, camel-jms continues to use broker connections and temporary queues. Need to add {color:#7f0055}super{color}{color:#000000}.{color}{color:#000000}doStop{color}{color:#000000}({color}{color:#000000}){color} call:
{code:java}
    @Override
    protected void doStop() throws Exception {
        ServiceHelper.stopService(destinationResolver);
        super.doStop();
    }
{code}




--
This message was sent by Atlassian Jira
(v8.20.10#820010)