Hiya,

My understanding was that the ConduitSelector was going to make it so we
didn't have to do this type of thing. i.e. something like this:
1. If user has called Client.getConduit(), then we create a conduit inside
the Conduit and that gets set on the message
2. Otherwise we set a default ConduitSelector which can go back to the
Client and call getConduit() when its needed

I think I must be missing something though...

- Dan

On 4/17/07, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote:

Author: eglynn
Date: Tue Apr 17 07:57:44 2007
New Revision: 529632

URL: http://svn.apache.org/viewvc?view=rev&rev=529632
Log:
Configuring DeferredConduitSelector for coloc system tests so as to avoid
upfront creation of unused Conduit


Modified:

    
incubator/cxf/trunk/systests/src/test/java/org/apache/cxf/systest/coloc/cxf.xml

Modified:
incubator/cxf/trunk/systests/src/test/java/org/apache/cxf/systest/coloc/cxf.xml
URL:
http://svn.apache.org/viewvc/incubator/cxf/trunk/systests/src/test/java/org/apache/cxf/systest/coloc/cxf.xml?view=diff&rev=529632&r1=529631&r2=529632

==============================================================================
---
incubator/cxf/trunk/systests/src/test/java/org/apache/cxf/systest/coloc/cxf.xml
(original)
+++
incubator/cxf/trunk/systests/src/test/java/org/apache/cxf/systest/coloc/cxf.xml
Tue Apr 17 07:57:44 2007
@@ -21,6 +21,7 @@
        xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";
        xmlns:http="http://cxf.apache.org/transports/http/configuration";
        xmlns:jms="http://cxf.apache.org/transports/jms";
+       xmlns:jaxws="http://cxf.apache.org/jaxws";
        xsi:schemaLocation="
http://cxf.apache.org/transports/http/configuration
http://cxf.apache.org/schema/transports/http.xsd
http://www.springframework.org/schema/beans
http://www.springframework.org/schema/beans/spring-beans.xsd";>
@@ -97,5 +98,19 @@
         </property>
     </bean>

+    <!-- Avoid upfront Conduit creation, as client-side transport
resources
+         are not required in the coloc case -->
+    <jaxws:client id="{http://apache.org/headers/rpc_lit}SoapPort";
+                  abstract="true">
+        <jaxws:conduitSelector>
+            <bean class="org.apache.cxf.endpoint.DeferredConduitSelector
"/>
+        </jaxws:conduitSelector>
+    </jaxws:client>
+    <jaxws:client id="{http://apache.org/headers/doc_lit}SoapPort9000";
+                  abstract="true">
+        <jaxws:conduitSelector>
+            <bean class="org.apache.cxf.endpoint.DeferredConduitSelector
"/>
+        </jaxws:conduitSelector>
+    </jaxws:client>

</beans>





--
Dan Diephouse
Envoi Solutions
http://envoisolutions.com | http://netzooid.com/blog

Reply via email to