Return-Path: Delivered-To: apmail-incubator-directory-dev-archive@www.apache.org Received: (qmail 55875 invoked from network); 2 Nov 2004 23:13:59 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur-2.apache.org with SMTP; 2 Nov 2004 23:13:59 -0000 Received: (qmail 83388 invoked by uid 500); 2 Nov 2004 23:13:58 -0000 Delivered-To: apmail-incubator-directory-dev-archive@incubator.apache.org Received: (qmail 83317 invoked by uid 500); 2 Nov 2004 23:13:56 -0000 Mailing-List: contact directory-dev-help@incubator.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: "Apache Directory Developers List" Delivered-To: mailing list directory-dev@incubator.apache.org Received: (qmail 83304 invoked by uid 99); 2 Nov 2004 23:13:56 -0000 X-ASF-Spam-Status: No, hits=0.6 required=10.0 tests=FROM_ENDS_IN_NUMS,SPF_HELO_PASS,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (hermes.apache.org: domain of aok123@bellsouth.net designates 205.152.59.65 as permitted sender) Received: from [205.152.59.65] (HELO imf17aec.mail.bellsouth.net) (205.152.59.65) by apache.org (qpsmtpd/0.28) with ESMTP; Tue, 02 Nov 2004 15:13:53 -0800 Received: from [172.16.1.7] ([65.80.200.112]) by imf17aec.mail.bellsouth.net (InterMail vM.5.01.06.11 201-253-122-130-111-20040605) with ESMTP id <20041102231344.IVSF19872.imf17aec.mail.bellsouth.net@[172.16.1.7]> for ; Tue, 2 Nov 2004 18:13:44 -0500 Message-ID: <418814B2.70502@bellsouth.net> Date: Tue, 02 Nov 2004 18:13:54 -0500 From: Alex Karasulu User-Agent: Mozilla Thunderbird 0.8 (X11/20040913) X-Accept-Language: en-us, en MIME-Version: 1.0 To: Directory Developers List Subject: [seda] many reply handlers Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked X-Spam-Rating: minotaur-2.apache.org 1.6.2 0/1000/N Hey Trustin, I was just lookin at the code and it looks like handlers that return multiple responses for a request are stubbed out. I think I left it that way back :). No worries I can cap it off but I want to ask a few questions about synchronization first. Take a look here at reply(ManyReplyHandler): http://svn.apache.org/viewcvs.cgi/incubator/directory/seda/trunk/src/java/org/apache/seda/protocol/DefaultRequestProcessor.java?rev=56429&view=auto /** * Handles the generation and return of multiple responses. * * @param handler the handler that generates the responses * @param request the request responded to */ private void reply( ManyReplyHandler handler, Object request, ClientKey key ) { Object response = null; try { Iterator list = handler.handle(key, request); if (handler.isSequential()) { while (list.hasNext()) { response = list.next(); // @todo: need to force serialized response processing // perhaps we need to add an isResponseOrdered or a // response sequence number for multi-part responses ------------------> throw new UnsupportedOperationException("need response serialization"); Basically I would iterate through the list and generate a response event for each item. Each item is a response to the same request. Now you had mentioned some changes to use a queue that orders events in the right way so as to return the events back to the client in the order they were created for ManyReplyHandlers. If I publish these responses off the Iterator above as ResponseEvent will the order of event delivery automagically be in the order of event creation? Thanks in advance, Alex