Return-Path: Delivered-To: apmail-directory-dev-archive@www.apache.org Received: (qmail 73338 invoked from network); 20 Jul 2005 19:32:38 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 20 Jul 2005 19:32:38 -0000 Received: (qmail 50792 invoked by uid 500); 20 Jul 2005 19:32:37 -0000 Delivered-To: apmail-directory-dev-archive@directory.apache.org Received: (qmail 50723 invoked by uid 500); 20 Jul 2005 19:32:36 -0000 Mailing-List: contact dev-help@directory.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 dev@directory.apache.org Received: (qmail 50701 invoked by uid 99); 20 Jul 2005 19:32:36 -0000 Received: from asf.osuosl.org (HELO asf.osuosl.org) (140.211.166.49) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 20 Jul 2005 12:32:36 -0700 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests= X-Spam-Check-By: apache.org Received-SPF: neutral (asf.osuosl.org: local policy) Received: from [205.196.218.12] (HELO dishpan.dreamhost.com) (205.196.218.12) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 20 Jul 2005 12:32:31 -0700 Received: from [192.168.1.65] (adsl-69-236-69-219.dsl.pltn13.pacbell.net [69.236.69.219]) by dishpan.dreamhost.com (Postfix) with ESMTP id 6615912DA1B for ; Wed, 20 Jul 2005 12:32:33 -0700 (PDT) Message-ID: <42DEA6E0.9030507@memelet.com> Date: Wed, 20 Jul 2005 12:32:48 -0700 From: Barry Kaplan User-Agent: Mozilla Thunderbird 1.0 (Windows/20041206) X-Accept-Language: en-us, en MIME-Version: 1.0 To: mina Subject: ProtocolSession attributes race condition Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N I am using the attributes on ProtocolSession to add in domain specific session extensions (ie, Quickfix Sesison's). Of course I can only set these attributes after the ProtocolSession is created. But within the call to ProtocolConnector.connect, ProtocolHandler.sessionOpened gets invoked. The implementation for quickfix requires the attributes that have not yet been set. It seems that the invocation of ProtocolHandler.sessionOpened is async, since the attributes are missing only intermittently. Is there another way to poke the attributes into the session before any callbacks are invoked? In a previous impl (that I just got done ripping out last night) I would create a new instance of QuickfixProtoclHandler for each mina session. But I thought it would be cleaner to use the attibutes. Do I need to go back to the previous impl? -- barry kaplan groups1@memelet.com