cxf-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From cohei...@apache.org
Subject cxf git commit: Make the client proxies thread safe
Date Mon, 01 Dec 2014 17:18:16 GMT
Repository: cxf
Updated Branches:
  refs/heads/master f51fb3327 -> 8ef743e87


Make the client proxies thread safe


Project: http://git-wip-us.apache.org/repos/asf/cxf/repo
Commit: http://git-wip-us.apache.org/repos/asf/cxf/commit/8ef743e8
Tree: http://git-wip-us.apache.org/repos/asf/cxf/tree/8ef743e8
Diff: http://git-wip-us.apache.org/repos/asf/cxf/diff/8ef743e8

Branch: refs/heads/master
Commit: 8ef743e87f01ac8c58e96795d958a0f513290832
Parents: f51fb33
Author: Colm O hEigeartaigh <coheigea@apache.org>
Authored: Mon Dec 1 17:18:03 2014 +0000
Committer: Colm O hEigeartaigh <coheigea@apache.org>
Committed: Mon Dec 1 17:18:03 2014 +0000

----------------------------------------------------------------------
 .../apache/cxf/systest/sts/username_actas/UsernameActAsTest.java  | 3 +++
 .../systest/sts/username_onbehalfof/UsernameOnBehalfOfTest.java   | 2 ++
 2 files changed, 5 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cxf/blob/8ef743e8/services/sts/systests/basic/src/test/java/org/apache/cxf/systest/sts/username_actas/UsernameActAsTest.java
----------------------------------------------------------------------
diff --git a/services/sts/systests/basic/src/test/java/org/apache/cxf/systest/sts/username_actas/UsernameActAsTest.java
b/services/sts/systests/basic/src/test/java/org/apache/cxf/systest/sts/username_actas/UsernameActAsTest.java
index efb09fc..f648633 100644
--- a/services/sts/systests/basic/src/test/java/org/apache/cxf/systest/sts/username_actas/UsernameActAsTest.java
+++ b/services/sts/systests/basic/src/test/java/org/apache/cxf/systest/sts/username_actas/UsernameActAsTest.java
@@ -119,6 +119,8 @@ public class UsernameActAsTest extends AbstractBusClientServerTestBase
{
         QName portQName = new QName(NAMESPACE, "DoubleItAsymmetricSAML2BearerPort");
         DoubleItPortType port = 
             service.getPort(portQName, DoubleItPortType.class);
+        ((BindingProvider)port).getRequestContext().put("thread.local.request.context", "true");
+        
         updateAddressPort(port, test.getPort());
         
         TokenTestUtils.updateSTSPort((BindingProvider)port, test.getStsPort());
@@ -137,6 +139,7 @@ public class UsernameActAsTest extends AbstractBusClientServerTestBase
{
         
         DoubleItPortType port2 = 
             service.getPort(portQName, DoubleItPortType.class);
+        ((BindingProvider)port2).getRequestContext().put("thread.local.request.context",
"true");
         updateAddressPort(port2, test.getPort());
         
         TokenTestUtils.updateSTSPort((BindingProvider)port2, test.getStsPort());

http://git-wip-us.apache.org/repos/asf/cxf/blob/8ef743e8/services/sts/systests/basic/src/test/java/org/apache/cxf/systest/sts/username_onbehalfof/UsernameOnBehalfOfTest.java
----------------------------------------------------------------------
diff --git a/services/sts/systests/basic/src/test/java/org/apache/cxf/systest/sts/username_onbehalfof/UsernameOnBehalfOfTest.java
b/services/sts/systests/basic/src/test/java/org/apache/cxf/systest/sts/username_onbehalfof/UsernameOnBehalfOfTest.java
index 6e3e491..573a089 100644
--- a/services/sts/systests/basic/src/test/java/org/apache/cxf/systest/sts/username_onbehalfof/UsernameOnBehalfOfTest.java
+++ b/services/sts/systests/basic/src/test/java/org/apache/cxf/systest/sts/username_onbehalfof/UsernameOnBehalfOfTest.java
@@ -118,6 +118,7 @@ public class UsernameOnBehalfOfTest extends AbstractBusClientServerTestBase
{
         QName portQName = new QName(NAMESPACE, "DoubleItOBOAsymmetricSAML2BearerPort");
         DoubleItPortType port = 
             service.getPort(portQName, DoubleItPortType.class);
+        ((BindingProvider)port).getRequestContext().put("thread.local.request.context", "true");
         updateAddressPort(port, test.getPort());
         
         TokenTestUtils.updateSTSPort((BindingProvider)port, test.getStsPort());
@@ -136,6 +137,7 @@ public class UsernameOnBehalfOfTest extends AbstractBusClientServerTestBase
{
         
         DoubleItPortType port2 = 
             service.getPort(portQName, DoubleItPortType.class);
+        ((BindingProvider)port2).getRequestContext().put("thread.local.request.context",
"true");
         updateAddressPort(port2, test.getPort());
         
         TokenTestUtils.updateSTSPort((BindingProvider)port2, test.getStsPort());


Mime
View raw message