Re: matching async responses to async requests

2011-05-11 Thread Angus Salkeld
On Wed, May 11, 2011 at 10:15:27AM -0400, Ken Giusti wrote: > Hi Angus, > > Agreed, the doxygen comments are lacking. I've created a jira to address > that: > > https://issues.apache.org/jira/browse/QPID-3257 That will help, thanks. > > The method call model is a request-response pattern tha

Re: matching async responses to async requests

2011-05-11 Thread Ken Giusti
Hi Angus, Agreed, the doxygen comments are lacking. I've created a jira to address that: https://issues.apache.org/jira/browse/QPID-3257 The method call model is a request-response pattern that really only provides for a single response to the request. As you suggested, you can use events to

Re: matching async responses to async requests

2011-05-06 Thread Angus Salkeld
On Fri, May 06, 2011 at 01:48:08PM -0400, Ken Giusti wrote: > Apologies for not getting back to you sooner... > > callMethodAsync() returns a unique 32 bit correlation id that corresponds to > the request. The ConsoleEvent that contains the method response has a > getCorrelator() method which r

Re: matching async responses to async requests

2011-05-06 Thread Ken Giusti
Apologies for not getting back to you sooner... callMethodAsync() returns a unique 32 bit correlation id that corresponds to the request. The ConsoleEvent that contains the method response has a getCorrelator() method which returns the correlation id that will match the value returned by the i

matching async responses to async requests

2011-05-05 Thread Angus Salkeld
Hi We are trying to do multiple async requests on a single qmf function. Then we need to match the response to the request in the ConsoleEvent handler. Now we could add an In-Out parameter but it seems like this is something that should be handled by QMF. Since if you had a QMF function that you w