qpid-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Gordon Sim <g...@redhat.com>
Subject Re: Qpid Transport failure exception
Date Tue, 22 May 2012 10:06:55 GMT
On 05/09/2012 11:42 AM, sunny wrote:
> Hi,
> I am trying to use the get method in SubscriptionManager class. My
> requirement is to wait on q queue for a particular period of time for a
> message, if the message is not received do some operation.
>
> For this i'm using
> SubscriptionManager subscriptions(session);
> subscriptions.get(response, request_queue,
>                                            9*pow((int64_t)10,9));
>
> when the connection to qpid is lost during  the wait period client
> application will be terminated by throwing
> 2012-05-09 11:25:50 warning Connection [127.0.0.1:127.0.0.1:5672] closed
> terminate called after throwing an instance of 'qpid::TransportFailure'
>    what():  Connection [127.0.0.1:-127.0.0.1:5672] closed
> .
> Is there any way we can handle this with out the application getting
> terminated??

You should be able to just catch the exception (qpid::Exception or 
qpid::client::TransportFailure).

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@qpid.apache.org
For additional commands, e-mail: users-help@qpid.apache.org


Mime
View raw message