Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.

Bug 430788

Summary: Exception listeners are not implemented.
Product: Red Hat Enterprise MRG Reporter: Alan Conway <aconway>
Component: qpid-javaAssignee: Rafael H. Schloming <rafaels>
Status: CLOSED CURRENTRELEASE QA Contact: Kim van der Riet <kim.vdriet>
Severity: high Docs Contact:
Priority: urgent    
Version: betaCC: iboverma, rattapat+nobody, tross
Target Milestone: ---   
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2009-08-21 15:35:23 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

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