cxf-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From " Bharat Savanur (JIRA)" <j...@apache.org>
Subject [jira] [Created] (CXF-6685) CXF Thread Safety via Proxy.
Date Thu, 19 Nov 2015 10:57:10 GMT
 Bharat Savanur created CXF-6685:
------------------------------------

             Summary: CXF Thread Safety via Proxy.
                 Key: CXF-6685
                 URL: https://issues.apache.org/jira/browse/CXF-6685
             Project: CXF
          Issue Type: Bug
            Reporter:  Bharat Savanur


Hi,

We are using JAXRsClientFactory client proxy as rest client. We have the following requirement
where we need to update the header Cookie information if the calling the method throws Redirect
Exception.

The following approach is what we have followed:

a)  Create a Singleton Proxy Service in the system which is thread safe.(by passing true as
third parameter in the method call).

b)  This will be used across multiple threads.

c) When anyone of the requests fail, what we do is we set the new value of cookie for all
the singleton service by accesssing httpConduit and settings its cookie.

Is there any alternative approach for the above.


Thanks and Regards,
Bharat Savanur



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Mime
View raw message