camel-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Arun (JIRA)" <j...@apache.org>
Subject [jira] [Updated] (CAMEL-9894) RXCamel is not releasing the ActiveMQ connection once the subscription is complete
Date Wed, 20 Apr 2016 15:04:25 GMT

     [ 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)

Mime
View raw message