You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@cxf.apache.org by "Mark Anderson (JIRA)" <ji...@apache.org> on 2013/10/11 13:12:42 UTC
[jira] [Updated] (CXF-5332) Support spring expression language for
jaxws:client address attribute
[ https://issues.apache.org/jira/browse/CXF-5332?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Mark Anderson updated CXF-5332:
-------------------------------
Description:
I am using a value from another spring bean as the address for my jaxws:client.
Ideally I would like to use Spring expression language in the address attribute of the jaxws:client tag. e.g.
{code:xml}
<jaxws:client address="#{addresses.primaryAddress}" />
{code}
but currently CXF tries to lookup a bean with id \{addresses.primaryAddress\}.
As a workaround I can use a MethodInvokingFactoryBean e.g.
{code:xml}
<bean id="primaryAddress" class="org.springframework.beans.factory.config.MethodInvokingFactoryBean">
<property name="targetObject" ref="addresses" />
<property name="targetMethod"><value>getPrimaryAddress</value></property>
</bean>
<jaxws:client address="#primaryAddress" />
{code}
but being able to use Spring expression language would be cleaner.
was:
I am using a value from another spring bean as the address for my jaxws:client.
Ideally I would like to use Spring expression language in the address attribute of the jaxws:client tag. e.g.
<jaxws:client address="#{addresses.primaryAddress}" />
but currently CXF tries to lookup a bean with id {addresses.primaryAddress}.
As a workaround I can use a MethodInvokingFactoryBean e.g.
<bean id="primaryAddress" class="org.springframework.beans.factory.config.MethodInvokingFactoryBean">
<property name="targetObject" ref="addresses" />
<property name="targetMethod"><value>getPrimaryAddress</value></property>
</bean>
<jaxws:client address="#primaryAddress" />
but being able to use Spring expression language would be cleaner.
> Support spring expression language for jaxws:client address attribute
> ---------------------------------------------------------------------
>
> Key: CXF-5332
> URL: https://issues.apache.org/jira/browse/CXF-5332
> Project: CXF
> Issue Type: Improvement
> Affects Versions: 2.6.2
> Reporter: Mark Anderson
>
> I am using a value from another spring bean as the address for my jaxws:client.
> Ideally I would like to use Spring expression language in the address attribute of the jaxws:client tag. e.g.
> {code:xml}
> <jaxws:client address="#{addresses.primaryAddress}" />
> {code}
> but currently CXF tries to lookup a bean with id \{addresses.primaryAddress\}.
> As a workaround I can use a MethodInvokingFactoryBean e.g.
> {code:xml}
> <bean id="primaryAddress" class="org.springframework.beans.factory.config.MethodInvokingFactoryBean">
> <property name="targetObject" ref="addresses" />
> <property name="targetMethod"><value>getPrimaryAddress</value></property>
> </bean>
> <jaxws:client address="#primaryAddress" />
> {code}
> but being able to use Spring expression language would be cleaner.
--
This message was sent by Atlassian JIRA
(v6.1#6144)