camel-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From yli <>
Subject Is that possible to override the properties that are loaded from classpath?
Date Tue, 16 Nov 2010 01:50:57 GMT

Hi all,
       Now in my project, I am trying to load a password value from the
property file(or technically speaking from classpath). 
       But it is not a good idea to write the clear text of password in the
property file, so I decided to put the encrypted string of the password in
the property file and decrypted it on the fly after loading from the
       Here is some code to make the problem more clear:
       In the property file( I have:
       In the camle context file, I have 
       <bean id="properties"
        <property name="locations"
                  value="" />
       Basically I want to decrypt "password" at runtime and refer it in a
<camel:simple> expression, for example:
       Is there an easy way to achieve this? 

       Thank you very much!
View this message in context:
Sent from the Camel - Users mailing list archive at

View raw message