Uploaded image for project: 'Camel'
  1. Camel
  2. CAMEL-9894

RXCamel is not releasing the ActiveMQ connection once the subscription is complete

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Critical
    • Resolution: Invalid
    • 2.17.0
    • None
    • camel-rx
    • None
    • Unknown

    Description

      I am using camel-rx to observe some messages from Active MQ. After I complete the subscription I am getting onCompleted() event also. But If I look in Active MQ console, I can still see the consumer live.
      I feel Is it an issue with camel. How to release this connection once subscription is over?

      Code :

      ReactiveCamel rx = new ReactiveCamel(camel);

      Observable<Message> observable1 = rx.toObservable("activemq:queue:Output Queue - 01?selector=JMSCorrelationID%3D'"+ uuid + "' AND eventType%3D'cust_msg'");

      observable1.first().subscribe(new Subscriber<Message>() {

      // methods here

      }

      Attachments

        Issue Links

          Activity

            People

              davsclaus Claus Ibsen
              arunkabraham Arun
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: