I have the following in one of the tests [1]:
<core:bus name="cxf1" id="cxf1"/>
<jaxrs:server bus="cxf1" address="/genericstore">
I've just modified it as follows:
<core:bus>
<core:properties>
<entry key="a" value="false"/>
</core:properties>
</core:bus>
<jaxrs:server address="/genericstore">
and then updated the endpoint code to:
@GET
@Path("/books/superbooks2")
public GenericEntity<List<T>> getSuperBookCollectionGenericEntity() {
System.out.println(JAXRSUtils.getCurrentMessage().getContextualProperty("a"));
//...
}
it prints 'false' as expected when the endpoint is invoked.
Sergey
[1]
https://git-wip-us.apache.org/repos/asf?p=cxf.git;a=blob;f=systests/jaxrs/src/test/resources/jaxrs_jackson_provider/WEB-INF/beans.xml;h=bafb0e6b7dc6a496f56d9aec867319b9d3894b7e;hb=HEAD#l53
On 20/02/15 10:45, psd wrote:
Hi Sergey,
Thanks for tip, I was indeed poking around same classes as you suggested.
Found out that for some reason, spring is creating & setting Bus at
endpoint.
Then I tried defining & overriding bean definition as follows:
<bean id="cxf" class="org.apache.cxf.bus.spring.SpringBus"
destroy-method="shutdown" scope="singleton">
<property name="properties">
<map>
<entry key="ws-security.enable.nonce.cache" value="false"/>
</map>
</property>
</bean>
still no luck.
I also tried referencing endpoint with above bus: <jaxws:endpoint bus="cxf"
.......... >
looks like I'm running out of luck...
--
View this message in context:
http://cxf.547215.n5.nabble.com/Properties-defined-on-Bus-are-not-available-on-Endpoints-tp5754469p5754495.html
Sent from the cxf-user mailing list archive at Nabble.com.