Jun created CXF-8348:
------------------------

             Summary: Question about sharing thread-safe data between 
interceptor
                 Key: CXF-8348
                 URL: https://issues.apache.org/jira/browse/CXF-8348
             Project: CXF
          Issue Type: Task
            Reporter: Jun


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)

Reply via email to