Return-Path: Delivered-To: apmail-activemq-camel-user-archive@locus.apache.org Received: (qmail 68823 invoked from network); 7 Jun 2008 13:45:54 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 7 Jun 2008 13:45:54 -0000 Received: (qmail 15572 invoked by uid 500); 7 Jun 2008 13:45:56 -0000 Delivered-To: apmail-activemq-camel-user-archive@activemq.apache.org Received: (qmail 15545 invoked by uid 500); 7 Jun 2008 13:45:56 -0000 Mailing-List: contact camel-user-help@activemq.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: camel-user@activemq.apache.org Delivered-To: mailing list camel-user@activemq.apache.org Received: (qmail 15534 invoked by uid 99); 7 Jun 2008 13:45:56 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 07 Jun 2008 06:45:56 -0700 X-ASF-Spam-Status: No, hits=0.2 required=10.0 tests=SPF_PASS,WHOIS_MYPRIVREG X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: local policy) Received: from [195.69.129.178] (HELO exsmtp02.exserver.dk) (195.69.129.178) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 07 Jun 2008 13:45:04 +0000 Received: from EXVS04.exserver.dk ([10.10.10.85]) by exsmtp02.exserver.dk with Microsoft SMTPSVC(6.0.3790.1830); Sat, 7 Jun 2008 15:43:42 +0200 X-MimeOLE: Produced By Microsoft Exchange V6.5 Content-class: urn:content-classes:message MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Subject: RE: Handling Bean exceptions Date: Sat, 7 Jun 2008 15:44:41 +0200 Message-ID: <4C1FB9C00D24A140906239533638C4D20461C2AF@EXVS04.exserver.dk> In-Reply-To: <17703450.post@talk.nabble.com> X-MS-Has-Attach: X-MS-TNEF-Correlator: Thread-Topic: Handling Bean exceptions Thread-Index: AcjIMSOZM2ThGvvET3KzmwTgrYnqxwAcj+ag From: "Claus Ibsen" To: X-OriginalArrivalTime: 07 Jun 2008 13:43:42.0529 (UTC) FILETIME=[7FDAB310:01C8C8A4] X-Virus-Checked: Checked by ClamAV on apache.org Hi Bruce I have created ticket CAMEL-585 about the issues you mention in this = forum. When we have a ticket in JIRA your effort is not forgotten. =20 Med venlig hilsen =20 Claus Ibsen ...................................... Silverbullet Skovsg=E5rdsv=E6nget 21 8362 H=F8rning Tlf. +45 2962 7576 Web: www.silverbullet.dk -----Original Message----- From: Bruce Elmore [mailto:belmore@qualcomm.com]=20 Sent: 7. juni 2008 01:59 To: camel-user@activemq.apache.org Subject: RE: Handling Bean exceptions Hi Claus, I do believe that this issue (not returning an exception in the JMS response) is indeed a bug. If you could get someone's attention about = this, I'd really appreciate it. That said, I think my workaround will be = adequate, although did discover a problem with my subclass of JmsProducer. Here's = a fixed version. Thanks again for the help! public class MyJmsProducer extends org.apache.camel.component.jms.JmsProducer { public MyJmsProducer(JmsEndpoint endpoint) { super(endpoint); } @Override public void process(final Exchange exchange) { super.process(exchange); if (exchange.getOut() !=3D null) { Object object =3D ((JmsEndpoint)getEndpoint()).getBinding().extractBodyFromJms(exchange, ((JmsMessage) exchange.getOut()).getJmsMessage()); if (object instanceof Throwable) { exchange.setException((Throwable) exchange.getOut().getBody()); exchange.setOut(null); } } } } --=20 View this message in context: = http://www.nabble.com/Handling-Bean-exceptions-tp17671948s22882p17703450.= html Sent from the Camel - Users mailing list archive at Nabble.com.