camel-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Christian Müller <christian.muel...@gmail.com>
Subject Re: [jira] Commented: (CAMEL-3162) Simple language work not properly together with Springs PropertyPlaceholderConfigurer
Date Sun, 26 Sep 2010 16:27:53 GMT
It works if I use $simple{placeholder}.

I opened this ticket because my attached unit test works with Camel 2.2.0
(which use Spring 2.5.6 instead of 3.0.x). My understanding was that
$simple{placeholder} is an alternative to ${placeholder} which also should
work if I tell Springs PropertyPlaceholderConfigurer to ignore unresolvable
placeholders...

Wondering why the file name is "test-now:yyyyMMdd.txt" and not
"test-date:now:yyyyMMdd.txt" if Spring removes "${" and "}"...

Christian


On Sun, Sep 26, 2010 at 6:12 PM, Claus Ibsen (JIRA) <jira@apache.org> wrote:

>
>    [
> https://issues.apache.org/activemq/browse/CAMEL-3162?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=62125#action_62125]
>
> Claus Ibsen commented on CAMEL-3162:
> ------------------------------------
>
> Christian try with latest code from trunk and use $simple{ } in the
> .properties file
>
> > Simple language work not properly together with Springs
> PropertyPlaceholderConfigurer
> >
> -------------------------------------------------------------------------------------
> >
> >                 Key: CAMEL-3162
> >                 URL:
> https://issues.apache.org/activemq/browse/CAMEL-3162
> >             Project: Apache Camel
> >          Issue Type: Bug
> >          Components: camel-core
> >    Affects Versions: 2.4.0
> >            Reporter: Christian Mueller
> >            Assignee: Claus Ibsen
> >             Fix For: 2.5.0
> >
> >         Attachments: CAMEL-3162_unittest.patch
> >
> >
> > I defined the to endpoint in my properties file as
> "file://target/outBox?fileName=test-${date:now:yyyyMMdd}.txt" and the
> written file has the name "test-now:yyyyMMdd.txt" instead of
> "test-20100926".
> > See also [CAMEL-304|https://issues.apache.org/activemq/browse/CAMEL-304]
>
> --
> This message is automatically generated by JIRA.
> -
> You can reply to this email to add a comment to the issue online.
>
>

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message