[
https://issues.apache.org/jira/browse/CAMEL-9894?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15251990#comment-15251990
]
Arun commented on CAMEL-9894:
-----------------------------
But Ideally it should release the connection. Right? Is it an issue with Camel
or is it supposed to behave like that?
I mean if onCompleted() is getting called the consumer should release the
connection. but it is not getting released
> RXCamel is not releasing the ActiveMQ connection once the subscription is
> complete
> ----------------------------------------------------------------------------------
>
> Key: CAMEL-9894
> URL: https://issues.apache.org/jira/browse/CAMEL-9894
> Project: Camel
> Issue Type: Bug
> Components: camel-rx
> Affects Versions: 2.17.0
> Reporter: Arun
> Assignee: Claus Ibsen
> Priority: Critical
>
> 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. 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
>
> }
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)