You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@camel.apache.org by swapna07 <sw...@gmail.com> on 2015/10/13 20:45:15 UTC

how to configure camel to read the properties for camel:sslContextParameters

Hi All,

I am trying to read the properties from a file instead of hard coding them
in the camel:sslContextParameters.
 I tried below but the actual value of the property is not getting resolved.

<camel:sslContextParameters id="sslContextParameters">
    <camel:keyManagers keyPassword="#${keyStorePassword}">
        <camel:keyStore type="#${keyStoreType}" resource="#${keyStore}"
            password="#${keyStorePassword}" />                    
    </camel:keyManagers>  
      <camel:secureSocketProtocols>
    
<camel:secureSocketProtocol>#${secureSocketProtocol}</camel:secureSocketProtocol>
   </camel:secureSocketProtocols>
	
	</camel:sslContextParameters>

 <util:properties id="defaultConfiguration">
  	
 	<prop key="keyStorePassword">test</prop>  
 	<prop key="keyStore">test.p12</prop>
 	<prop key="keyStoreType">pkcs12</prop> 
 	<prop key="secureSocketProtocol">TLSv1</prop>
 	
 	
    </util:properties>



--
View this message in context: http://camel.465427.n5.nabble.com/how-to-configure-camel-to-read-the-properties-for-camel-sslContextParameters-tp5772625.html
Sent from the Camel - Users mailing list archive at Nabble.com.

Re: how to configure camel to read the properties for camel:sslContextParameters

Posted by Claus Ibsen <cl...@gmail.com>.
Not sure what that syntax is from #${xxx}

But Camel's is {{xx}} style.
And you nee to use that when its within the camel namespace.

Outside such as <bean> in spring or blueprint you use their way.


On Mon, Oct 19, 2015 at 6:34 PM, swapna07 <sw...@gmail.com> wrote:
> Thank you Greg for responding. I was trying few things to resolve the
> properties and I tried #${}. I have gone thru those links but for me none of
> them seems to be working. The properties are not getting resolved.
>
> Thanks
>
>
>
> --
> View this message in context: http://camel.465427.n5.nabble.com/how-to-configure-camel-to-read-the-properties-for-camel-sslContextParameters-tp5772625p5772867.html
> Sent from the Camel - Users mailing list archive at Nabble.com.



-- 
Claus Ibsen
-----------------
http://davsclaus.com @davsclaus
Camel in Action 2nd edition:
https://www.manning.com/books/camel-in-action-second-edition

Re: how to configure camel to read the properties for camel:sslContextParameters

Posted by swapna07 <sw...@gmail.com>.
Thank you Greg for responding. I was trying few things to resolve the
properties and I tried #${}. I have gone thru those links but for me none of
them seems to be working. The properties are not getting resolved.

Thanks



--
View this message in context: http://camel.465427.n5.nabble.com/how-to-configure-camel-to-read-the-properties-for-camel-sslContextParameters-tp5772625p5772867.html
Sent from the Camel - Users mailing list archive at Nabble.com.

Re: how to configure camel to read the properties for camel:sslContextParameters

Posted by Greg Autric <ga...@redhat.com>.
Hi,

Have you ever seen these doc ?

http://camel.apache.org/camel-configuration-utilities.html
http://camel.apache.org/using-propertyplaceholder.html

I don't understand your #${}

best regards,


Greg AUTRIC                        
JBoss Middleware Consultant

email   : gautric __at__ redhat __dot__ com
twitter : @gautric_io

Red Hat Global Services            
Red Hat France SARL                sit: http://www.redhat.fr
Le Linea, 1 rue du General Leclerc, 92047 Paris La Défense Cedex
Sent from webmail

----- Mail original -----
De: "swapna07" <sw...@gmail.com>
À: users@camel.apache.org
Envoyé: Mardi 13 Octobre 2015 20:45:15
Objet: how to configure camel to read the properties for camel:sslContextParameters

Hi All,

I am trying to read the properties from a file instead of hard coding them
in the camel:sslContextParameters.
 I tried below but the actual value of the property is not getting resolved.

<camel:sslContextParameters id="sslContextParameters">
    <camel:keyManagers keyPassword="#${keyStorePassword}">
        <camel:keyStore type="#${keyStoreType}" resource="#${keyStore}"
            password="#${keyStorePassword}" />                    
    </camel:keyManagers>  
      <camel:secureSocketProtocols>
    
<camel:secureSocketProtocol>#${secureSocketProtocol}</camel:secureSocketProtocol>
   </camel:secureSocketProtocols>
	
	</camel:sslContextParameters>

 <util:properties id="defaultConfiguration">
  	
 	<prop key="keyStorePassword">test</prop>  
 	<prop key="keyStore">test.p12</prop>
 	<prop key="keyStoreType">pkcs12</prop> 
 	<prop key="secureSocketProtocol">TLSv1</prop>
 	
 	
    </util:properties>



--
View this message in context: http://camel.465427.n5.nabble.com/how-to-configure-camel-to-read-the-properties-for-camel-sslContextParameters-tp5772625.html
Sent from the Camel - Users mailing list archive at Nabble.com.