camel-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Henrique Viecili <viec...@gmail.com>
Subject Re: camel-jasypt with Blueprint DSL
Date Fri, 20 Jun 2014 04:09:04 GMT
I found a solution:

set the id in the property-placeholder, use JasyptPropertiesParser and
define a PropertiesComponent location with blueprint:

<cm:property-placeholder id="blueprintProperties"
persistent-id="sensitive-data"/>

<bean id="jasyptParser" class="....JasyptPropertiesParser>
    <property name="password" value="test"/>
</bean>
<bean id="properties"
class="org.apache.camel.component.properties.PropertiesComponent">
    <property name="location" value="blueprint:blueprintProperties"/>
    <property name="propertiesParser" ref="jasyptParser"/>
</bean>


As an enhancement for future versions, I would suggest that instances of
PropertiesParser could be retrieved from the registry the same way
EventNotifier's are. (not sure what it could the impact)

Regards,
Henrique Viecili

Henrique Viecili


On 19 June 2014 17:58, Henrique Viecili <viecili@gmail.com> wrote:

> I'm trying to use the camel-jasypt:2.10.0 component to decrypt the
> properties defined my blueprint xml but the documentation at
> http://camel.apache.org/jasypt.html only has Spring XML example and I
> could not figure out a way to do it with Blueprint DSL.
>
> My goal is to decrypt the properties defined by
>
> <cm:property-placeholder persistent-id="sensitive-data"/>
>
> Any ideas how to solve this?
>
> Regards,
> Henrique Viecili
>

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