简体   繁体   English

CXF 3缓存级别

[英]CXF 3 Cache Level

In CXF 2 I could set the level like this: CXF 2中,我可以像这样设置级别:

<jaxws:client name="client">
    <jaxws:features>
        <bean class="org.apache.cxf.transport.jms.JMSConfigFeature">
            <property name="jmsConfig" ref="jmsConfig"/>
        </bean>
    </jaxws:features>
</jaxws:client>

<bean id="jmsConfig" class="org.apache.cxf.transport.jms.JMSConfiguration">
    <property name="cacheLevel" value="3"/>
</bean>

However, in CXF 3 cacheLevel property is missing in org.apache.cxf.transport.jms.JMSConfiguration . 但是,在org.apache.cxf.transport.jms.JMSConfiguration缺少CXF 3 cacheLevel属性。

How can I set the cache level in CXF 3 ? 如何在CXF 3中设置缓存级别?

Thanks in advance. 提前致谢。

CXF 3 does not use the spring MessageListenerContainer anymore. CXF 3不再使用Spring MessageListenerContainer So there is no cachelevel setting. 所以没有cachelevel设置。 CXF 3 has improved the performance over CXF 2, thus this setting is not needed any more. CXF 3比CXF 2提高了性能,因此不再需要此设置。

This option was removed since CXF 3.0.0. 自CXF 3.0.0以来已删除此选项。

Specify the level of caching that the JMS listener container is allowed to apply. 指定允许应用JMS侦听器容器的高速缓存级别。 Please check out the java doc of the org.springframework.jms.listenerDefaultMessageListenerContainer for more information. 有关更多信息,请查看org.springframework.jms.listenerDefaultMessageListenerContainer的java doc。 Default is -1. 默认值为-1。

Check this link: 检查此链接:

http://cxf.apache.org/docs/using-the-jmsconfigfeature.html http://cxf.apache.org/docs/using-the-jmsconfigfeature.html

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM