You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@camel.apache.org by "Claus Ibsen (JIRA)" <ji...@apache.org> on 2016/04/21 15:26:25 UTC
[jira] [Resolved] (CAMEL-9894) RXCamel is not releasing the
ActiveMQ connection once the subscription is complete
[ https://issues.apache.org/jira/browse/CAMEL-9894?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Claus Ibsen resolved CAMEL-9894.
--------------------------------
Resolution: Invalid
Assignee: Claus Ibsen
Use the mailing list / user forum to get help
> 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)