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 8D1D210A5D for ; Fri, 7 Jun 2013 07:21:35 +0000 (UTC) Received: (qmail 3185 invoked by uid 500); 7 Jun 2013 07:21:34 -0000 Delivered-To: apmail-camel-users-archive@camel.apache.org Received: (qmail 3021 invoked by uid 500); 7 Jun 2013 07:21:33 -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 3012 invoked by uid 99); 7 Jun 2013 07:21:33 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 07 Jun 2013 07:21:33 +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 claus.ibsen@gmail.com designates 209.85.223.173 as permitted sender) Received: from [209.85.223.173] (HELO mail-ie0-f173.google.com) (209.85.223.173) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 07 Jun 2013 07:21:27 +0000 Received: by mail-ie0-f173.google.com with SMTP id k5so3052612iea.4 for ; Fri, 07 Jun 2013 00:21:07 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :content-type; bh=uYQIHsMcHrm2Ah1b9dy1gmOFTLaP3mrSKchZdFPgrWc=; b=wnv131X2S9SINTYNfdSwgqVXhkOz80B5O7ybLCjZJu63P/4KL4+dLZ1t0TDS2cU9jo XRdhhMiWgwdJGl4OjZLIjoNe4dH2SKuUDO6W51VQ+Y7eGg9oa4d8wZRBTfogCocScKPs Y+DqqFc1TlHSMSQjuw34zRUAs+TlkBzNPlY03Wq/oH/fTtmcsk+jPzBYN6E5h5SxG5W2 Ygr+B5GCoDL1gd4kqUciDk4WoJahNB7yP794yMu2lS19xFM/+ZjYAnWyJjp5aYl4vZ58 p47Lb2C+1LJOuPSewbrp6TWAlfUNidUKvSaI7+PFXZAwKt4nMEcNTVQcxJfqHwrV/TzA SrrQ== X-Received: by 10.42.26.12 with SMTP id d12mr18404311icc.1.1370589667397; Fri, 07 Jun 2013 00:21:07 -0700 (PDT) MIME-Version: 1.0 Received: by 10.64.246.234 with HTTP; Fri, 7 Jun 2013 00:20:47 -0700 (PDT) In-Reply-To: References: From: Claus Ibsen Date: Fri, 7 Jun 2013 09:20:47 +0200 Message-ID: Subject: Re: Header and java.util.Date To: "users@camel.apache.org" Content-Type: text/plain; charset=ISO-8859-1 X-Virus-Checked: Checked by ClamAV on apache.org The simple language has a date function but its only for formatting to a String value http://camel.apache.org/simple If you want code like new Date() then you would need to use some of the other languages like groovy, javascript, possible mvel, or ognl can do it. http://camel.apache.org/languages On Thu, Jun 6, 2013 at 8:24 PM, Cristiano Costantini wrote: > Hi All, > > I want to set the value of an header to a java.util.Date with current value. > > How can I do in XML DSL? > > > <...whichLanguage?>which Value? > > > My preference is for languages in camel-core if possible... > > Thanks!! > Cristiano -- Claus Ibsen ----------------- www.camelone.org: The open source integration conference. Red Hat, Inc. FuseSource is now part of Red Hat Email: cibsen@redhat.com Web: http://fusesource.com Twitter: davsclaus Blog: http://davsclaus.com Author of Camel in Action: http://www.manning.com/ibsen