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 <[email protected]> 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: [email protected] Twitter: davsclaus Blog: http://davsclaus.com Author of Camel in Action: http://www.manning.com/ibsen
