On Saturday 15 January 2011 8:18:40 pm jaybytez wrote:
> Quick question, I want to use a property in a properties file to flip
> between a true endpoint SIB and a stub version of the endpoint where I
> return preconfigured responses.  Both features work, but when I try to use
> a property from spring to flip the implementor, it doesn't work.
> 
> Any ideas, is this a bean context loading lifecycle issue?
> 
>   <context:property-placeholder
> location="classpath*:/enterprise.properties"/>
> 
>   <alias name="fooService${fooService.sib?:ApiStub}"
> alias="fooServiceEndpoint"/>
> 
>       <jaxws:endpoint
>               id="jaxws.FooService"
>               endpointName="s:FooServiceEndpointServicePort"
>               serviceName="s:FooServiceEndpointService"
>               implementor="#fooServiceEndpoint"
>               implementorClass="com.foo.FooService"
>               address="/FooService"
>               xmlns:s="http://foo.com"; />
> 
> Thanks...jay

Hmm....  Not really sure.   Have you tried moving the property into the 
jaxws:endpoint thing.  Something like:


<jaxws:endpoint
                id="jaxws.FooService"
                endpointName="s:FooServiceEndpointServicePort"
                serviceName="s:FooServiceEndpointService"
                implementor="#fooService${fooService.sib?:ApiStub}"
                implementorClass="com.foo.FooService"
                address="/FooService"
                xmlns:s="http://foo.com"; />

I'm not sure if that would work either.   It's just a thought.

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

Reply via email to