From dev-return-5309-apmail-directory-dev-archive=directory.apache.org@directory.apache.org Tue Apr 05 19:39:10 2005 Return-Path: Delivered-To: apmail-directory-dev-archive@www.apache.org Received: (qmail 82353 invoked from network); 5 Apr 2005 19:39:10 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 5 Apr 2005 19:39:10 -0000 Received: (qmail 98022 invoked by uid 500); 5 Apr 2005 19:39:09 -0000 Delivered-To: apmail-directory-dev-archive@directory.apache.org Received: (qmail 97979 invoked by uid 500); 5 Apr 2005 19:39:08 -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 97966 invoked by uid 99); 5 Apr 2005 19:39:08 -0000 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests= X-Spam-Check-By: apache.org Received-SPF: neutral (hermes.apache.org: local policy) Received: from mail.contentconnections.com (HELO contentconnections.com) (65.39.65.22) by apache.org (qpsmtpd/0.28) with SMTP; Tue, 05 Apr 2005 12:39:07 -0700 Received: from [66.218.235.51] (HELO [192.168.1.102]) by contentconnections.com (Stalker SMTP Server 1.8b9d14) with ESMTP id S.0002142547 for ; Tue, 05 Apr 2005 12:41:40 -0700 Message-ID: <4252E955.6060207@thewallacepack.net> Date: Tue, 05 Apr 2005 12:39:01 -0700 From: Richard Wallace User-Agent: Mozilla Thunderbird 1.0.2 (Macintosh/20050317) X-Accept-Language: en-us, en MIME-Version: 1.0 To: dev@directory.apache.org Subject: [mina] session.write() in sessionOpened() Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N Hey guys, I'm finally getting a chance to dig back into some of what I was working on in early January with my little mail server. I'm going through the process of converting what I had over to MINA and it's looking pretty cool. I am having one problem tho. When a mail client connects the first thing I need to do is send a message basically saying, "Hello I'm here". I figured the place to do this would be in the ProtocolHandler.sessionOpened() implementation with a simple session.write ("220 mydomain.com ESMTP Dropbox"); But when I run it and connect via telnet it doesn't seem as tho the message is sent to the client. Is this the proper place to do this or is there somewhere more appropriate to send an initial connection message? Can I send just a String or should I be putting it into a ByteBuffer first? Thanks, Rich