cxf-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Sharath P (JIRA)" <j...@apache.org>
Subject [jira] [Updated] (CXF-5104) JAX-RS not injecting contexts after resuming a suspended continuation
Date Tue, 02 Jul 2013 15:08:21 GMT

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

Sharath P updated CXF-5104:
---------------------------

    Attachment: AsyncResource.java

JAX-RS resource AsyncResource attached
                
> JAX-RS not injecting contexts after resuming a suspended continuation
> ---------------------------------------------------------------------
>
>                 Key: CXF-5104
>                 URL: https://issues.apache.org/jira/browse/CXF-5104
>             Project: CXF
>          Issue Type: Bug
>          Components: JAX-RS
>         Environment: CXF 2.7.5, MAC-OSX 10.7.5, Tomcat 7.0.41
>            Reporter: Sharath P
>              Labels: async, continuation, jax-rs
>         Attachments: AsyncResource.java, beans.xml, JsonBean.java, web.xml
>
>
> In order to use continuations, I have a 'MessageContext' injected into the JAX-RS resource
using @Context annotation.  When the request is initially handled,  JAX-RS properly sets the
thread-local MessageContext (ThreadLocalMessageContext) for that particular instance of thread,
and am able to retrieve the ContinuationProvider (in my case org.apache.cxf.transport.http.Servlet3ContinuationProvider)
from context.  Once I suspend the continuation and resume the same later, however, the thread-local
MessageContext instance is not being set and therefore am unable to retrieve the resumed continuation
(as  ThreadLocalMessageContext is null through which continuation provider has to be retrieved).


--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

Mime
View raw message