I having trouble using the spring expressions
I want to use spring expression for the bean below
#findUrl is a bean instead of this bean I wanted to use expressionCode:<jaxws:client id="client" serviceClass="SearchService" address="#findUrl" > <jaxws:outInterceptors> <bean class="org.apache.cxf.binding.soap.saaj.SAAJOutInterceptor"/> <ref bean="wss4jOutInterceptor" /> </jaxws:outInterceptors> </jaxws:client>
here the findUrlBean
this is traditional method of retrieving a property and using it as a beanCode:<bean id="findUrl" class="org.springframework.beans.factory.config.MethodInvokingFactoryBean"> <property name="targetObject" ref="systemProperties" /> <property name="targetMethod"><value>getPropertyValue</value></property> <property name="arguments"> <list> <value>find_service_url</value> </list> </property> </bean>
using expression I tried
#{systemProperties.getPropertyValue('find_service_ url')}
is this right way to use expressions ?
I got the exception bean not found.Please help me use expressions correctly.


Reply With Quote