Bug 430788 - Exception listeners are not implemented.
Summary: Exception listeners are not implemented.
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: Red Hat Enterprise MRG
Classification: Red Hat
Component: qpid-java
Version: beta
Hardware: All
OS: Linux
urgent
high
Target Milestone: ---
: ---
Assignee: Rafael H. Schloming
QA Contact: Kim van der Riet
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2008-01-29 19:16 UTC by Alan Conway
Modified: 2014-12-01 23:14 UTC (History)
3 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2009-08-21 15:35:23 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)

Description Alan Conway 2008-01-29 19:16:10 UTC
Description of problem:

Customer wants to use setExceptionListener and onException method to implement
re-connect logic after getting an exception indicating the connection with the
broker has disconnected. I am able to receive messages OK, but when I do
"service rhmd stop" the onException method is not called. The program continues
to run, and gives no indication that the connection is closed. Should stopping
the broker cause onException to be called in my program? Is there any other way
to close the connection and test the re-connect logic?

The exception handler must deal with orderly and disorderly disconnects, e.g.
due to broker crash, network failure etc.

Comment 1 Rajith Attapattu 2008-01-29 22:40:37 UTC
The exceptions were not propogated properly to the JMS Layer (not implemented).
I have fixed that in Apache Qpid trunk rev 616542.

We also need to detect a network connection drop and notify the qpid layer, so
it can be passed to the JMS layer. This is also not implemented yet.

Comment 2 Mike Bonnet 2008-02-29 16:43:08 UTC
qpid-java-common-0.2-9 and qpid-java-client-0.2-9 have been pushed to the staging repo for testing


Note You need to log in before you can comment on or make changes to this bug.