On Tuesday 09 December 2008 8:44:46 am jmdev wrote: > I am using 2.1.4 SNAPSHOT and am still not able to get this working. Is > there anything special one needs to do to get the > PropertyPlaceholderConfigurer to be recognized? Is there an example or > test case that you could refer me to if available.
Arg.... I just checked the code and the TLSClientParameters are treated differently in the code for some reason and thus stuff in there doesn't get properly processed. I'll see what can be done here. Shouldn't be too hard. (famous last words) Dan > > Thanks! > > dkulp wrote: > > On Tuesday 11 November 2008 12:31:32 pm Harry van Rijn wrote: > >> Hi, > >> > >> It looks like that properties in the http:conduit element are NOT > >> resolved. > >> Is there a way out? > > > > This SHOULD be working in CXF 2.1.3, maybe 2.1.2. What version of CXF > > are > > you using? > > > > Dan > > > >> I want to refer to configuration files in the JBoss > >> config directoy: > >> > >> <sec:keyManagers > >> keyPassword="${model.server.keystore.password}"> > >> <sec:keyStore type="JKS" > >> password="${model.server.keystore.password}" > >> > >> file="${jboss.server.home.dir}/conf/props/model/${model.server.keystore. > >>fil ename}"/> > >> > >> Here is my beans containing file: > >> > >> <beans > >> xmlns="http://www.springframework.org/schema/beans" > >> xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" > >> xmlns:sec="http://cxf.apache.org/configuration/security" > >> xmlns:http="http://cxf.apache.org/transports/http/configuration" > >> xmlns:jaxws="http://cxf.apache.org/jaxws" > >> xmlns:wsa="http://cxf.apache.org/ws/addressing" > >> xmlns:cxf="http://cxf.apache.org/core" > >> xsi:schemaLocation=" > >> http://cxf.apache.org/core > >> http://cxf.apache.org/schemas/core.xsd > >> http://www.springframework.org/schema/beans > >> http://www.springframework.org/schema/beans/spring-beans.xsd > >> http://cxf.apache.org/configuration/security > >> http://cxf.apache.org/schemas/configuration/security.xsd > >> http://cxf.apache.org/transports/http/configuration > >> http://cxf.apache.org/schemas/configuration/http-conf.xsd > >> http://cxf.apache.org/core > >> http://cxf.apache.org/schemas/core.xsd > >> http://cxf.apache.org/jaxws > >> http://cxf.apache.org/schemas/jaxws.xsd"> > >> > >> <bean > >> class="org.springframework.beans.factory.config.PropertyPlaceholderConfi > >>gur er"> <property name="location"> > >> > >> <value>${jboss.server.config.url}/props/model/model.properties</value> > >> </property> > >> </bean> > >> > >> <import resource="classpath:META-INF/cxf/cxf.xml" /> > >> <import resource="classpath:META-INF/cxf/cxf-extension-soap.xml" /> > >> <import resource="classpath:META-INF/cxf/cxf-servlet.xml" /> > >> > >> <http:conduit > >> name="{http://modelwebservice.c.b.a/wsdl}ModelPort.http-conduit"> > >> <http:tlsClientParameters secureSocketProtocol="SSL"> > >> <sec:keyManagers > >> keyPassword="${model.server.keystore.password}"> > >> <sec:keyStore type="JKS" > >> password="${model.server.keystore.password}" > >> > >> file="${jboss.server.home.dir}/conf/props/model/${model.server.keystore. > >>fil ename}"/> </sec:keyManagers> > >> <sec:trustManagers> > >> <sec:keyStore type="JKS" > >> password="${model.server.truststore.password}" > >> > >> file="${jboss.server.home.dir}/conf/props/model/${model.server.truststor > >>e.f ilename}"/> </sec:trustManagers> > >> <sec:cipherSuitesFilter> > >> <!-- these filters ensure that a ciphersuite > >> with > >> export-suitable or null encryption is used, > >> but exclude anonymous Diffie-Hellman key change as > >> this is vulnerable to man-in-the-middle attacks --> > >> <sec:include>.*_EXPORT_.*</sec:include> > >> <sec:include>.*_EXPORT1024_.*</sec:include> > >> <sec:include>.*_WITH_DES_.*</sec:include> > >> <sec:include>.*_WITH_NULL_.*</sec:include> > >> <sec:exclude>.*_DH_anon_.*</sec:exclude> > >> </sec:cipherSuitesFilter> > >> </http:tlsClientParameters> > >> > >> <!-- Default: authorization = none > >> <http:authorization> > >> <sec:UserName>tomcat</sec:UserName> > >> <sec:Password>tomcat</sec:Password> > >> </http:authorization> > >> --> > >> > >> <!-- Default: AutoRedirect = false, Connection = close > >> <http:client AutoRedirect="true" Connection="Keep-Alive"/> > >> --> > >> > >> <http:client ContentType="text/xml"/> > >> </http:conduit> > >> > >> <bean id="modelWebService" > >> class="com.tsystems.model.server.ModelPortTypeImpl" lazy-init="true" > > >> <property name="preis" value="${model.price}"/> > >> <property name="menge" value="${model.quantity}"/> > >> </bean> > >> > >> <cxf:bus> > >> <cxf:features> > >> <cxf:logging/> > >> </cxf:features> > >> </cxf:bus> > >> > >> <jaxws:endpoint id="modelEndpoint" > >> implementor="#modelWebService" > >> wsdlLocation="WEB-INF/wsdl/ModelWebService.wsdl" > >> address="/Model"> > >> </jaxws:endpoint> > >> > >> </beans> > > > > -- > > Daniel Kulp > > [EMAIL PROTECTED] > > http://dankulp.com/blog -- Daniel Kulp [EMAIL PROTECTED] http://dankulp.com/blog