You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@cxf.apache.org by "Jun (Jira)" <ji...@apache.org> on 2020/09/24 10:31:00 UTC

[jira] [Updated] (CXF-8348) Question about sharing thread-safe data between interceptor

     [ https://issues.apache.org/jira/browse/CXF-8348?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Jun updated CXF-8348:
---------------------
    Issue Type: Bug  (was: Task)

> Question about sharing thread-safe data between interceptor
> -----------------------------------------------------------
>
>                 Key: CXF-8348
>                 URL: https://issues.apache.org/jira/browse/CXF-8348
>             Project: CXF
>          Issue Type: Bug
>            Reporter: Jun
>            Priority: Major
>
> Hello,
> I have a scenario where I need to store a session token that can only be used once for next subsequent soap request. 
> I am having a bit of trouble implementing this. 
> My initial approach was to create an inbound- and outbound interceptor.
> In the inbound interceptor I store the session token if available so that the outbound interceptor can use it. 
> But I'm not sure how to pass the data between interceptors and also guarantee thread-safety.
> (1) Should I store in the exchange object? 
> (2) Should I implement some custom FIFO queue to handle this?
> (3) Should I use MDC context to store it? 
> Any feedback would be greatly appreciated.
> // Jun



--
This message was sent by Atlassian Jira
(v8.3.4#803005)