cxf-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Andriy Redko (JIRA)" <>
Subject [jira] [Updated] (CXF-5417) Support optional JAX-RS 2.0 ConnectionCallback
Date Fri, 24 Jan 2014 02:49:38 GMT


Andriy Redko updated CXF-5417:

    Attachment: patch-connection-callback-tests.txt

Hi Sergey,

Finally, I have got everything line up and working. Please take a look of the patch (patch-connection-callback-tests.txt)
which provides couple of fixes and add the test case for Connection Callback:
signal ready
server ready
ConnectionCallback: onDisconnect, client disconnects
stopping bus
server passed
server stopped

I have change a bit the implementation for detecting the appropriate exception type: by default,
the real cause is being hidden by Fault exception. In case of Jetty 9.x, the cause of this
exception contains the real exception (EofException). But in case of Jetty 8.x, there is another
intermediate exception in between. That's why there is a bit of logic to figure out if any
IOException has really taken  place.

The test case does a small trick: it runs outside of JUnit server and client. Client terminates
without waiting the response from server and it causes connection callback to be called. I
hope you will be OK with those small changes.

Thanks a lot!

> Support optional JAX-RS 2.0 ConnectionCallback
> ----------------------------------------------
>                 Key: CXF-5417
>                 URL:
>             Project: CXF
>          Issue Type: Improvement
>          Components: JAX-RS, Transports
>            Reporter: Sergey Beryozkin
>            Priority: Minor
>         Attachments: patch-connection-callback-tests.txt, patch-connection-callback.txt
> lets JAX-RS 2.0 applications receive the notifications when a given client has disconnected.
> We can probably build something on top of the Jetty-specific connector and also enhance
CXF Continuation API. 

This message was sent by Atlassian JIRA

View raw message