You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@mina.apache.org by "Trustin Lee (JIRA)" <ji...@apache.org> on 2007/04/13 10:56:15 UTC

[jira] Commented: (DIRMINA-92) Utility classes for asynchronous request-response protocols.

    [ https://issues.apache.org/jira/browse/DIRMINA-92?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12488622 ] 

Trustin Lee commented on DIRMINA-92:
------------------------------------

Alternatively, you can use awaitResponse() method:

    Request req = ...;
    session.write(req);

    try {
        Response res = req.awaitResponse();
        // Do something the the response.
        ......
    } catch (RequestTimeoutException e) {
        ......
    }

> Utility classes for asynchronous request-response protocols.
> ------------------------------------------------------------
>
>                 Key: DIRMINA-92
>                 URL: https://issues.apache.org/jira/browse/DIRMINA-92
>             Project: MINA
>          Issue Type: New Feature
>    Affects Versions: 0.7.0
>            Reporter: Trustin Lee
>         Assigned To: Trustin Lee
>             Fix For: 2.0.0-M1
>
>         Attachments: Protocol.zip, queryreply.zip, requestResponse.zip
>
>
> There are so many existing asynchronous protocols whose messages have request-response structure.  A request message usually has a message ID, and the corresponding response message, which makes a pair, contains the message ID in the request message.
> It would be great if we can provide a common interface and classes to help users implement this type of protocols easily.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.