camel-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Claus Ibsen <claus.ib...@gmail.com>
Subject Re: define properties in context.xml
Date Wed, 23 Oct 2013 08:27:14 GMT
You can define them in a java.util.Properties bean - Maybe Spring has
a XML namespace syntax for that to make it nicer looking.

Then you can refer to this bean using ref: as shown on
http://camel.apache.org/using-propertyplaceholder.html

On Wed, Oct 23, 2013 at 10:16 AM, Olaf <omgolafguhl@gmail.com> wrote:
> Hello,
>
> is it possible to define properties in spring xml directly without using a
> .properties file? And then use them in java like that:
>
> from(imap://imap.server.com?username={{user}}&password={{pass}})
>
> or
>
> from({{imapUri}})
>
> I'd like to have only one xml config file
>
> Thanks for help!
>
>
>
> --
> View this message in context: http://camel.465427.n5.nabble.com/define-properties-in-context-xml-tp5742054.html
> Sent from the Camel - Users mailing list archive at Nabble.com.



-- 
Claus Ibsen
-----------------
Red Hat, Inc.
Email: cibsen@redhat.com
Twitter: davsclaus
Blog: http://davsclaus.com
Author of Camel in Action: http://www.manning.com/ibsen

Mime
View raw message