You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@camel.apache.org by "Arun (JIRA)" <ji...@apache.org> on 2016/04/20 17:04:25 UTC
[jira] [Updated] (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 ]
Arun updated CAMEL-9894:
------------------------
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. 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
}
was:
I am using caml-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
}
> 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
>
> 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)