Return-Path: X-Original-To: apmail-camel-users-archive@www.apache.org Delivered-To: apmail-camel-users-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 8A016EEC3 for ; Mon, 25 Feb 2013 20:22:41 +0000 (UTC) Received: (qmail 74657 invoked by uid 500); 25 Feb 2013 20:22:41 -0000 Delivered-To: apmail-camel-users-archive@camel.apache.org Received: (qmail 74625 invoked by uid 500); 25 Feb 2013 20:22:41 -0000 Mailing-List: contact users-help@camel.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: users@camel.apache.org Delivered-To: mailing list users@camel.apache.org Received: (qmail 74617 invoked by uid 99); 25 Feb 2013 20:22:41 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 25 Feb 2013 20:22:41 +0000 X-ASF-Spam-Status: No, hits=-0.7 required=5.0 tests=RCVD_IN_DNSWL_LOW,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of cwolf.algo@gmail.com designates 209.85.128.182 as permitted sender) Received: from [209.85.128.182] (HELO mail-ve0-f182.google.com) (209.85.128.182) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 25 Feb 2013 20:22:34 +0000 Received: by mail-ve0-f182.google.com with SMTP id ox1so2594144veb.41 for ; Mon, 25 Feb 2013 12:22:13 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:x-received:in-reply-to:references:date:message-id :subject:from:to:content-type; bh=bg8NiLQym2NLU5le7AV4Gcfzf1B9qdaQpoqXT9IveCM=; b=ouLUZpsG+NqNCqExyjVLXavBf5B7Uqob8MSD5FKbkZ0tiKZelRds5BmWrm7VsQyWYI 3Y4mtY6SHIOXS8ImMg1/bcFSvAzBdnDrdN7EmF7B2sh2/98nnSZhDPceSXDxr0O8yC9a rfeK049OZYlyxrsdW3x5qNmjR0K1+Y4JGWWq8EEdElPAA7FtZX6+PtjS/GHumWZfHgFy fECNddTMSIrSO3z6Yf/7UXcYwx9gRVriKzhsDJzHxCHYg/v4l/75m87wHFngGrRlYMuG 7/9btk4qfbFXBiXw7h7rZeIZJ/oOfV2WJz/mWn2J+yXBW+Q+FM3jhNJqXAMMfHSAgrdK F5Iw== MIME-Version: 1.0 X-Received: by 10.58.234.234 with SMTP id uh10mr10709466vec.37.1361823733866; Mon, 25 Feb 2013 12:22:13 -0800 (PST) Received: by 10.58.221.8 with HTTP; Mon, 25 Feb 2013 12:22:13 -0800 (PST) In-Reply-To: References: Date: Mon, 25 Feb 2013 15:22:13 -0500 Message-ID: Subject: Re: Cannot get @Consumed to work for JpaConsumer endpoint From: Chris Wolf To: users@camel.apache.org Content-Type: text/plain; charset=ISO-8859-1 X-Virus-Checked: Checked by ClamAV on apache.org Problem solved. The issue was that even though the documentation states that JPA consumer must specify the entitytype, I found that it worked without it and I never got an explanation *why* it was needed. Since I already had a big, giant URI, I left it out. Apparently one of the reasons the JPA consumer needs it, is support for the "@Consumed" mechanism, which I found out by debugging. Now that I put it back, my "@Consumed" handler works... On Mon, Feb 25, 2013 at 11:56 AM, Chris Wolf wrote: > I have a route whose first endpoint is .from("jpa:...) - i.e. a > consumer. I have consumeDelete=false and in my entities, I have a > method > marked with "@Consumed" - in this method, I invoke another setter to > set a nullable persistent field of type DATE. Everything works, > but this date field is still null. When I run in the debugger, the > method marked by @Consumed never gets invoked. > > How/what detects this "@Consumed" annotation? > > Thanks, > > -Chris