camel-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ningji...@apache.org
Subject svn commit: r1145994 - in /camel/trunk/components/camel-cxf/src/main/java/org/apache/camel/component/cxf/jaxrs: CxfRsEndpoint.java CxfRsSpringEndpoint.java
Date Wed, 13 Jul 2011 13:13:24 GMT
Author: ningjiang
Date: Wed Jul 13 13:13:24 2011
New Revision: 1145994

URL: http://svn.apache.org/viewvc?rev=1145994&view=rev
Log:
CAMEL-4223 Need to set the threadSafe option of CxfRsClientFactoryBean to be true

Modified:
    camel/trunk/components/camel-cxf/src/main/java/org/apache/camel/component/cxf/jaxrs/CxfRsEndpoint.java
    camel/trunk/components/camel-cxf/src/main/java/org/apache/camel/component/cxf/jaxrs/CxfRsSpringEndpoint.java

Modified: camel/trunk/components/camel-cxf/src/main/java/org/apache/camel/component/cxf/jaxrs/CxfRsEndpoint.java
URL: http://svn.apache.org/viewvc/camel/trunk/components/camel-cxf/src/main/java/org/apache/camel/component/cxf/jaxrs/CxfRsEndpoint.java?rev=1145994&r1=1145993&r2=1145994&view=diff
==============================================================================
--- camel/trunk/components/camel-cxf/src/main/java/org/apache/camel/component/cxf/jaxrs/CxfRsEndpoint.java
(original)
+++ camel/trunk/components/camel-cxf/src/main/java/org/apache/camel/component/cxf/jaxrs/CxfRsEndpoint.java
Wed Jul 13 13:13:24 2011
@@ -145,6 +145,7 @@ public class CxfRsEndpoint extends Defau
         if (getResourceClasses() != null) {
             cfb.setResourceClass(getResourceClasses().get(0));
         }
+        cfb.setThreadSafe(true);
     }
 
     public JAXRSServerFactoryBean createJAXRSServerFactoryBean() {

Modified: camel/trunk/components/camel-cxf/src/main/java/org/apache/camel/component/cxf/jaxrs/CxfRsSpringEndpoint.java
URL: http://svn.apache.org/viewvc/camel/trunk/components/camel-cxf/src/main/java/org/apache/camel/component/cxf/jaxrs/CxfRsSpringEndpoint.java?rev=1145994&r1=1145993&r2=1145994&view=diff
==============================================================================
--- camel/trunk/components/camel-cxf/src/main/java/org/apache/camel/component/cxf/jaxrs/CxfRsSpringEndpoint.java
(original)
+++ camel/trunk/components/camel-cxf/src/main/java/org/apache/camel/component/cxf/jaxrs/CxfRsSpringEndpoint.java
Wed Jul 13 13:13:24 2011
@@ -79,6 +79,8 @@ public class CxfRsSpringEndpoint extends
         checkBeanType(JAXRSClientFactoryBean.class);
         configure(cfb);      
         cfb.setAddress(address);
+        // Need to enable the option of ThreadSafe
+        cfb.setThreadSafe(true);
     }
     
     public String getBeanId() {



Mime
View raw message