The BridgePropertyPlaceholderConfigurer does not currently work for properties 
outside the Camel context. I did test and the properties are successfully 
decrypted if used within the Camel Context.

A patch was just applied to close this gap of functionality and will be 
available in Camel 2.14.3, 2.15.2 and 2.16.0

Full details of the bug is found in the following JIRA:
https://issues.apache.org/jira/browse/CAMEL-7849 

Thanks,
Andy

-- 
Andrew Block
On April 11, 2015 at 12:49:20 AM, govimurugan (govi.muru...@gmail.com) wrote:

Thank you Andy for your response. Sorry for the late response. I was into  
another issue.  

I tried as you told, but decryption is not happening properly. I am  
getting below exception while trying to connect RabbitMQ. but it success  
with plain text password. Am I doing anything wrong or missing anything?  

in property file  
rabbitMQ.password.dev=ENC(E+HxIGnEZfuI9aLxeQoVYg==)  

camel-context xml  

<bean id="jasypt"  
class="org.apache.camel.component.jasypt.JasyptPropertiesParser">  
<property name="password" value="Secret"/>  
</bean>  

<bean id="bridgePropertyPlaceholder"  

class="org.apache.camel.spring.spi.BridgePropertyPlaceholderConfigurer">  
<property name="location" value="classpath:sql.properties"/>  
<property name="parser" ref="jasypt"/>  
</bean>  


amqp connect factory bean configuration:  
<property name="password" value="${rabbitMQ.password.dev}"/>  




--  
View this message in context: 
http://camel.465427.n5.nabble.com/Jsypt-password-encryption-with-Bridge-property-place-holder-tp5765490p5765614.html
  
Sent from the Camel - Users mailing list archive at Nabble.com.  

Reply via email to