cxf-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Andrea Smyth <andrea.sm...@iona.com>
Subject Re: CXF Config Help
Date Thu, 16 Nov 2006 07:46:13 GMT
Dan Diephouse wrote:

> It is possible to set this other ways. If you have a JAX-WS endpoint:
>
> <bean class="org.apache.cxf.jaxws.EndpointImpl" id="...">
>  <property name="binding.mtomEnabled" value="true"/>
> </bean>
>
> Andrea: What does the bean id need to be here?

port QName, i.e. endpointInfo.getName();
The class need not be specified (as it is not instantiated by the 
container), so just the id and abstract="true", or lazy-init="true" will do.
Andrea.

>
> OR if you are using the JaxWsServerFactoryBean:
>
> <bean class="org.apache.cxf.jaxws.JaxWsServerFactoryBean" 
> id="serverFactory">
>  <property name="properties">
>    <map>
>      <entry key="mtom-enabled" value="true"/>
>    </map>
>  </property>
> </bean>
>
> Regards,
> - Dan
>
> Andrea Smyth wrote:
>
>> Li, Tao (Tom) wrote:
>>
>>> Hi Andrea,
>>>
>>> Currently does CXF support setting config value into map that means 
>>> the bean being configed is a map, and the property name is not a 
>>> field of the bean, but a key for accessing the config value in the map?
>>>  
>>>
>> No, the property name must correspond to a field in the bean - or 
>> rather there must be a corresponding setter for the property.
>> Andrea.
>>
>>> Thanks.
>>> Tom
>>>  
>>>
>>
>
>


Mime
View raw message