Does the placement of "enc:property-placeholder" matters in the blueprint.xml ?
The issue I faced with respect to SQL Server login with encrypted password was originated from the fact that the passwords were not automatically getting decrypted. I had the blueprint XML as below originally where I have the cm:property-placeholder with persistent-id "my" placed after <enc:property-placeholder>. In this case the decryption does not happen. regards Vinu <blueprint xmlns="http://www.osgi.org/xmlns/blueprint/v1.0.0" xmlns:cm="http://aries.apache.org/blueprint/xmlns/blueprint-cm/v1.1.0" xmlns:enc="http://karaf.apache.org/xmlns/jasypt/v1.0.0"> <cm:property-placeholder persistent-id="appConfig" update-strategy="reload"> <cm:default-properties> <cm:property name="name" value="localhost:9999" /> </cm:default-properties> </cm:property-placeholder> <enc:property-placeholder> <enc:encryptor class="org.jasypt.encryption.pbe.StandardPBEStringEncryptor"> <property name="config"> <bean class="org.jasypt.encryption.pbe.config.EnvironmentStringPBEConfig"> <property name="algorithm" value="PBEWithMD5AndDES" /> <property name="passwordEnvName" value="ENVVAR" /> </bean> </property> </enc:encryptor> </enc:property-placeholder> <cm:property-placeholder persistent-id="my" update-strategy="reload" placeholder-prefix="$(" placeholder-suffix=")"> <cm:default-properties> <cm:property name="mydb.url" value="localhost:9999" /> <cm:property name="mydb.username" value="sa" /> <cm:property name="mydb.password" value=" " /> </cm:default-properties> </cm:property-placeholder> <bean id="dbbean" class="org.karaf.enc.test.DBConfig"> <property name="url" value="$(mydb.url)" /> <property name="username" value="$(mydb.username)" /> <property name="password" value="$(mydb.password)" /> </bean> </blueprint> The information contained in this electronic message and any attachments to this message are intended for the exclusive use of the addressee(s) and may contain proprietary, confidential or privileged information. If you are not the intended recipient, you should not disseminate, distribute or copy this e-mail. Please notify the sender immediately and destroy all copies of this message and any attachments. WARNING: Computer viruses can be transmitted via email. The recipient should check this email and any attachments for the presence of viruses. The company accepts no liability for any damage caused by any virus transmitted by this email. www.wipro.com
