[
http://issues.apache.org/jira/browse/DIRMINA-92?page=comments#action_12448384 ]
Klaus Stake commented on DIRMINA-92:
------------------------------------
Hi Julien,
I tried to use the stuff in queryreply.zip. How should I use the classes? I did
the following:
- ... chain.addFirst( "queryReply", new RequestResponseFilter(new
BasicRequestFactory(10000))); //timeout == 10 secs
... and then what to do? I guess that I must call the RequestResponseFilter's
query() method somewhere. I did that in my customized IoHandler for sending a
message. The problem is that the query method blocks the application because of
the following line in the query method:
...
try {
lastRequest.wait(lastRequest.getResponseTimeout());
} catch (InterruptedException e) {
throw new RuntimeException(e);
}
...
Mina does not send the message after the set response timeout. I set the
response timeout to 10000 (10 secs) and the application blocks for 10 seconds
Do you have a test case for your RequestResponseFilter? Did I do something
wrong?
Another comment on RequestImpl's getReplyMessage(): it should be renamed to
getResponseMessage according to the method setResponseMessage()
Klaus
> Utility classes for asynchronous request-response protocols.
> ------------------------------------------------------------
>
> Key: DIRMINA-92
> URL: http://issues.apache.org/jira/browse/DIRMINA-92
> Project: Directory MINA
> Issue Type: New Feature
> Affects Versions: 0.7
> Reporter: Trustin Lee
> Assigned To: Trustin Lee
> 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.
-
If you think it was sent incorrectly contact one of the administrators:
http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira