You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cxf.apache.org by bu...@apache.org on 2013/07/26 18:48:01 UTC
svn commit: r871294 - in /websites/production/cxf/content:
cache/docs.pageCache docs/jax-rs-failover.html
docs/schemas-and-namespaces.html
Author: buildbot
Date: Fri Jul 26 16:48:00 2013
New Revision: 871294
Log:
Production update by buildbot for cxf
Modified:
websites/production/cxf/content/cache/docs.pageCache
websites/production/cxf/content/docs/jax-rs-failover.html
websites/production/cxf/content/docs/schemas-and-namespaces.html
Modified: websites/production/cxf/content/cache/docs.pageCache
==============================================================================
Binary files - no diff available.
Modified: websites/production/cxf/content/docs/jax-rs-failover.html
==============================================================================
--- websites/production/cxf/content/docs/jax-rs-failover.html (original)
+++ websites/production/cxf/content/docs/jax-rs-failover.html Fri Jul 26 16:48:00 2013
@@ -150,6 +150,7 @@ alternate addresses from locators and ot
<beans xmlns="http://www.springframework.org/schema/beans"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:jaxrs="http://cxf.apache.org/jaxrs"
+ xmlns:clustering="http://cxf.apache.org/clustering"
xmlns:util="http://www.springframework.org/schema/util"
xsi:schemaLocation="
http://cxf.apache.org/jaxrs http://cxf.apache.org/schemas/jaxrs.xsd
@@ -175,23 +176,23 @@ http://www.springframework.org/schema/ut
</property>
</bean>
- <bean id="failover1" class="org.apache.cxf.jaxrs.features.clustering.FailoverFeature">
- <property name="strategy" ref="SequentialAddresses"/>
- </bean>
-
- <bean id="failover2" class="org.apache.cxf.jaxrs.features.clustering.FailoverFeature">
- <property name="strategy" ref="RandomAddresses"/>
- </bean>
-
<jaxrs:client id="failoverSequential" address="http://localhost:8080/initialAddress">
<jaxrs:features>
- <ref bean="failover1"/>
+ <clustering:failover>
+ <clustering:strategy>
+ <ref bean="SequentialAddresses"/>
+ </clustering:strategy>
+ </clustering:failover>
</jaxrs:features>
</jaxrs:client>
<jaxrs:client id="failoverRandom" address="http://localhost:8080/initialAddress">
<jaxrs:features>
- <ref bean="failover2"/>
+ <clustering:failover>
+ <clustering:strategy>
+ <ref bean="RandomAddresses"/>
+ </clustering:strategy>
+ </clustering:failover>
</jaxrs:features>
</jaxrs:client>
@@ -206,23 +207,6 @@ factory-method="createWebClient">
]]></script>
</div></div>
-<p>Note that failover feature for jaxrs:client gets configured nearly exactly the same way as it's done for JAX-WS clients. The difference at this stage is that feature class name (org.apache.cxf.jaxrs.features.clustering.FailoverFeature) and a 'strategy' property are 'hidden' for JAX-WS clients due to the use of Spring handlers, example:</p>
-<div class="code panel" style="border-width: 1px;"><div class="codeContent panelContent">
-<script class="theme: Default; brush: xml; gutter: false" type="syntaxhighlighter"><![CDATA[
-<jaxws:client name="{http://cxf.apache.org/greeter_control}ReplicatedPortA"
- createdFromAPI="true">
- <jaxws:features>
- <clustering:failover>
- <clustering:strategy>
- <ref bean="SequentialAddresses"/>
- </clustering:strategy>
- </clustering:failover>
- </jaxws:features>
- </jaxws:client>
-]]></script>
-</div></div>
-
-<p>In other words, JAX-RS clients can not use clustering:failover/clustering:strategy only at this stage, the rest is the same. An effort will be undertaken to make sure this configuration becomes identical for JAX-WS and JAX-RS clients. </p>
<h2><a shape="rect" name="JAX-RSFailover-Code"></a>Code</h2>
@@ -241,7 +225,7 @@ feature.setStrategy(strategy);
JAXRSClientFactoryBean bean = new JAXRSClientFactoryBean();
bean.setAddress("http://localhost:8080/inactive-replica");
-List<AbstractFeature> features = new ArrayList<AbstractFeature>();
+List<Feature> features = new ArrayList<Feature>();
features.add(feature);
bean.setFeatures(features);
Modified: websites/production/cxf/content/docs/schemas-and-namespaces.html
==============================================================================
--- websites/production/cxf/content/docs/schemas-and-namespaces.html (original)
+++ websites/production/cxf/content/docs/schemas-and-namespaces.html Fri Jul 26 16:48:00 2013
@@ -139,7 +139,7 @@ Apache CXF -- Schemas and Namespaces
<p><b>Configuration Schemas common to both Spring and Blueprint</b></p>
<div class="table-wrap">
-<table class="confluenceTable"><tbody><tr><th colspan="1" rowspan="1" class="confluenceTh"> URI </th><th colspan="1" rowspan="1" class="confluenceTh"> Target Namespace </th><th colspan="1" rowspan="1" class="confluenceTh"> Classpath Resource </th><th colspan="1" rowspan="1" class="confluenceTh"> Module </th></tr><tr><td colspan="1" rowspan="1" class="confluenceTd"> <a shape="rect" href="http://cxf.apache.org/schemas/configuration/http-conf.xsd">http://cxf.apache.org/schemas/configuration/http-conf.xsd</a> </td><td colspan="1" rowspan="1" class="confluenceTd"> <a shape="rect" href="http://cxf.apache.org/transports/http/configuration">http://cxf.apache.org/transports/http/configuration</a> </td><td colspan="1" rowspan="1" class="confluenceTd"> /schemas/configuration/http-conf.xsd </td><td colspan="1" rowspan="1" class="confluenceTd"> cxf-rt-transports-http </td></tr><tr><td colspan="1" rowspan="1" class="confluenceTd"> <a shape="rect" href="http://cxf.apache.org/schemas/configuration/
http-jetty.xsd">http://cxf.apache.org/schemas/configuration/http-jetty.xsd</a> </td><td colspan="1" rowspan="1" class="confluenceTd"> <a shape="rect" href="http://cxf.apache.org/transports/http-jetty/configuration">http://cxf.apache.org/transports/http-jetty/configuration</a> </td><td colspan="1" rowspan="1" class="confluenceTd"> /schemas/configuration/http-jetty.xsd </td><td colspan="1" rowspan="1" class="confluenceTd"> cxf-rt-transports-http-jetty </td></tr><tr><td colspan="1" rowspan="1" class="confluenceTd"> <a shape="rect" href="http://cxf.apache.org/schemas/configuration/jms.xsd">http://cxf.apache.org/schemas/configuration/jms.xsd</a> </td><td colspan="1" rowspan="1" class="confluenceTd"> <a shape="rect" href="http://cxf.apache.org/transports/jms">http://cxf.apache.org/transports/jms</a> </td><td colspan="1" rowspan="1" class="confluenceTd"> /schemas/configuration/jms.xsd </td><td colspan="1" rowspan="1" class="confluenceTd"> cxf-rt-transports-jms </td></tr><tr><td colspan="1"
rowspan="1" class="confluenceTd"> <a shape="rect" href="http://cxf.apache.org/schemas/configuration/security.xsd">http://cxf.apache.org/schemas/configuration/security.xsd</a> </td><td colspan="1" rowspan="1" class="confluenceTd"> <a shape="rect" href="http://cxf.apache.org/configuration/security">http://cxf.apache.org/configuration/security</a> </td><td colspan="1" rowspan="1" class="confluenceTd"> /schemas/configuration/security.xsd </td><td colspan="1" rowspan="1" class="confluenceTd"> cxf-common-schemas </td></tr><tr><td colspan="1" rowspan="1" class="confluenceTd"> <a shape="rect" href="http://cxf.apache.org/schemas/configuration/soap.xsd">http://cxf.apache.org/schemas/configuration/soap.xsd</a> </td><td colspan="1" rowspan="1" class="confluenceTd"> <a shape="rect" href="http://cxf.apache.org/bindings/soap">http://cxf.apache.org/bindings/soap</a> </td><td colspan="1" rowspan="1" class="confluenceTd"> /schemas/configuration/soap.xsd </td><td colspan="1" rowspan="1" class="conflu
enceTd"> cxf-rt-bindings-soap </td></tr><tr><td colspan="1" rowspan="1" class="confluenceTd"> <a shape="rect" href="http://cxf.apache.org/schemas/ws-addr-conf.xsd">http://cxf.apache.org/schemas/ws-addr-conf.xsd</a> </td><td colspan="1" rowspan="1" class="confluenceTd"> <a shape="rect" href="http://cxf.apache.org/ws/addressing">http://cxf.apache.org/ws/addressing</a> </td><td colspan="1" rowspan="1" class="confluenceTd"> /schemas/ws-addr-conf.xsd </td><td colspan="1" rowspan="1" class="confluenceTd"> cxf-rt-ws-addr </td></tr><tr><td colspan="1" rowspan="1" class="confluenceTd"> <a shape="rect" href="http://cxf.apache.org/schemas/configuration/wsrm-manager-types.xsd">http://cxf.apache.org/schemas/configuration/wsrm-manager-types.xsd</a> </td><td colspan="1" rowspan="1" class="confluenceTd"> <a shape="rect" href="http://cxf.apache.org/ws/rm/manager">http://cxf.apache.org/ws/rm/manager</a> </td><td colspan="1" rowspan="1" class="confluenceTd"> /schemas/configuration/wsrm-manager-types.x
sd </td><td colspan="1" rowspan="1" class="confluenceTd"> cxf-rt-ws-rm </td></tr><tr><td colspan="1" rowspan="1" class="confluenceTd"> <a shape="rect" href="http://cxf.apache.org/schemas/configuration/wsrm-manager.xsd">http://cxf.apache.org/schemas/configuration/wsrm-manager.xsd</a> </td><td colspan="1" rowspan="1" class="confluenceTd"> <a shape="rect" href="http://cxf.apache.org/ws/rm/manager">http://cxf.apache.org/ws/rm/manager</a> </td><td colspan="1" rowspan="1" class="confluenceTd"> /schemas/configuration/wsrm-manager.xsd * </td><td colspan="1" rowspan="1" class="confluenceTd"> cxf-rt-ws-rm </td></tr></tbody></table>
+<table class="confluenceTable"><tbody><tr><th colspan="1" rowspan="1" class="confluenceTh"> URI </th><th colspan="1" rowspan="1" class="confluenceTh"> Target Namespace </th><th colspan="1" rowspan="1" class="confluenceTh"> Classpath Resource </th><th colspan="1" rowspan="1" class="confluenceTh"> Module </th></tr><tr><td colspan="1" rowspan="1" class="confluenceTd"> <a shape="rect" href="http://cxf.apache.org/schemas/configuration/http-conf.xsd">http://cxf.apache.org/schemas/configuration/http-conf.xsd</a> </td><td colspan="1" rowspan="1" class="confluenceTd"> <a shape="rect" href="http://cxf.apache.org/transports/http/configuration">http://cxf.apache.org/transports/http/configuration</a> </td><td colspan="1" rowspan="1" class="confluenceTd"> /schemas/configuration/http-conf.xsd </td><td colspan="1" rowspan="1" class="confluenceTd"> cxf-rt-transports-http </td></tr><tr><td colspan="1" rowspan="1" class="confluenceTd"> <a shape="rect" href="http://cxf.apache.org/schemas/configuration/
http-jetty.xsd">http://cxf.apache.org/schemas/configuration/http-jetty.xsd</a> </td><td colspan="1" rowspan="1" class="confluenceTd"> <a shape="rect" href="http://cxf.apache.org/transports/http-jetty/configuration">http://cxf.apache.org/transports/http-jetty/configuration</a> </td><td colspan="1" rowspan="1" class="confluenceTd"> /schemas/configuration/http-jetty.xsd </td><td colspan="1" rowspan="1" class="confluenceTd"> cxf-rt-transports-http-jetty </td></tr><tr><td colspan="1" rowspan="1" class="confluenceTd"> <a shape="rect" href="http://cxf.apache.org/schemas/configuration/jms.xsd">http://cxf.apache.org/schemas/configuration/jms.xsd</a> </td><td colspan="1" rowspan="1" class="confluenceTd"> <a shape="rect" href="http://cxf.apache.org/transports/jms">http://cxf.apache.org/transports/jms</a> </td><td colspan="1" rowspan="1" class="confluenceTd"> /schemas/configuration/jms.xsd </td><td colspan="1" rowspan="1" class="confluenceTd"> cxf-rt-transports-jms </td></tr><tr><td colspan="1"
rowspan="1" class="confluenceTd"> <a shape="rect" href="http://cxf.apache.org/schemas/configuration/security.xsd">http://cxf.apache.org/schemas/configuration/security.xsd</a> </td><td colspan="1" rowspan="1" class="confluenceTd"> <a shape="rect" href="http://cxf.apache.org/configuration/security">http://cxf.apache.org/configuration/security</a> </td><td colspan="1" rowspan="1" class="confluenceTd"> /schemas/configuration/security.xsd </td><td colspan="1" rowspan="1" class="confluenceTd"> cxf-common-schemas </td></tr><tr><td colspan="1" rowspan="1" class="confluenceTd"> <a shape="rect" href="http://cxf.apache.org/schemas/configuration/soap.xsd">http://cxf.apache.org/schemas/configuration/soap.xsd</a> </td><td colspan="1" rowspan="1" class="confluenceTd"> <a shape="rect" href="http://cxf.apache.org/bindings/soap">http://cxf.apache.org/bindings/soap</a> </td><td colspan="1" rowspan="1" class="confluenceTd"> /schemas/configuration/soap.xsd </td><td colspan="1" rowspan="1" class="conflu
enceTd"> cxf-rt-bindings-soap </td></tr><tr><td colspan="1" rowspan="1" class="confluenceTd"> <a shape="rect" href="http://cxf.apache.org/schemas/ws-addr-conf.xsd">http://cxf.apache.org/schemas/ws-addr-conf.xsd</a> </td><td colspan="1" rowspan="1" class="confluenceTd"> <a shape="rect" href="http://cxf.apache.org/ws/addressing">http://cxf.apache.org/ws/addressing</a> </td><td colspan="1" rowspan="1" class="confluenceTd"> /schemas/ws-addr-conf.xsd </td><td colspan="1" rowspan="1" class="confluenceTd"> cxf-rt-ws-addr </td></tr><tr><td colspan="1" rowspan="1" class="confluenceTd"> <a shape="rect" href="http://cxf.apache.org/schemas/configuration/wsrm-manager-types.xsd">http://cxf.apache.org/schemas/configuration/wsrm-manager-types.xsd</a> </td><td colspan="1" rowspan="1" class="confluenceTd"> <a shape="rect" href="http://cxf.apache.org/ws/rm/manager">http://cxf.apache.org/ws/rm/manager</a> </td><td colspan="1" rowspan="1" class="confluenceTd"> /schemas/configuration/wsrm-manager-types.x
sd </td><td colspan="1" rowspan="1" class="confluenceTd"> cxf-rt-ws-rm </td></tr><tr><td colspan="1" rowspan="1" class="confluenceTd"> <a shape="rect" href="http://cxf.apache.org/schemas/configuration/wsrm-manager.xsd">http://cxf.apache.org/schemas/configuration/wsrm-manager.xsd</a> </td><td colspan="1" rowspan="1" class="confluenceTd"> <a shape="rect" href="http://cxf.apache.org/ws/rm/manager">http://cxf.apache.org/ws/rm/manager</a> </td><td colspan="1" rowspan="1" class="confluenceTd"> /schemas/configuration/wsrm-manager.xsd * </td><td colspan="1" rowspan="1" class="confluenceTd"> cxf-rt-ws-rm </td></tr><tr><td colspan="1" rowspan="1" class="confluenceTd"> <a shape="rect" href="http://cxf.apache.org/schemas/clustering.xsd">http://cxf.apache.org/schemas/clustering.xsd</a> </td><td colspan="1" rowspan="1" class="confluenceTd"> <a shape="rect" href="http://cxf.apache.org/clustering">http://cxf.apache.org/clustering</a> </td><td colspan="1" rowspan="1" class="confluenceTd"> /schemas/c
lustering.xsd </td><td colspan="1" rowspan="1" class="confluenceTd"> cxf-rt-features-clustering </td></tr></tbody></table>
</div>