Thank you Daniel,

I am using 2.2.2.  I must have misunderstood what you said below.  I understood 
that to use the PropertyOverrideConfigurer I should specify:

<jaxws:client id="myId"   address=""  serviceClass="myPackage.MyService" /> 

And then in the properties file read by the PropertyOverrideConfigurer I would 
use:

myId.proxyFactory.address=http://myServer.myDomain/MyServicesWebApp/MyService

When I tried it, I got:

Invalid property 'proxyFactory.address' of bean class [$Proxy62]: Nested 
property in path 'proxyFactory.address' does not exist;

Where did I go wrong?

b.

-----Original Message-----
From: Daniel Kulp [mailto:[email protected]] 
Sent: Wednesday, September 30, 2009 12:42 PM
To: [email protected]
Cc: Bruno Melloni
Subject: Re: jaxws:client config as bean, address as property?

On Tue September 29 2009 9:38:38 am Bruno Melloni wrote:
> I would like to use Spring's PropertyOverrideConfigurer to set the address
>  property of the jaxws:client tag so that DEV/PROD properties are
>  auto-detected.  But address is not a regular bean property.
> 
> Is there a way to specify the tag so that address can be treated as a bean
>  property?
> 
> b.
> 
> P.S.: I know that a PropertyPlaceholderConfigurer could be an alternative. 
>  But for reasons irrelevant here, it is not an option for my app.

This may actually be working on trunk/2.2.4-SNAPSHOT right now.  I made some 
changes to the factories last week that may allow this to actually work.

With 2.2.3 and older, you MAY need to use the bean name of:
id + ".proxyFactory"
to configure the property.  

-- 
Daniel Kulp
[email protected]
http://www.dankulp.com/blog

Reply via email to