Return-Path: Delivered-To: apmail-mina-users-archive@www.apache.org Received: (qmail 60467 invoked from network); 18 Oct 2010 09:43:49 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 18 Oct 2010 09:43:49 -0000 Received: (qmail 32247 invoked by uid 500); 18 Oct 2010 09:43:47 -0000 Delivered-To: apmail-mina-users-archive@mina.apache.org Received: (qmail 30754 invoked by uid 500); 18 Oct 2010 09:43:44 -0000 Mailing-List: contact users-help@mina.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: users@mina.apache.org Delivered-To: mailing list users@mina.apache.org Received: (qmail 30746 invoked by uid 99); 18 Oct 2010 09:43:42 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 18 Oct 2010 09:43:42 +0000 X-ASF-Spam-Status: No, hits=2.2 required=10.0 tests=FREEMAIL_FROM,HTML_MESSAGE,RCVD_IN_DNSWL_NONE,SPF_PASS,T_TO_NO_BRKTS_FREEMAIL X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of zlatko.josic@gmail.com designates 209.85.216.171 as permitted sender) Received: from [209.85.216.171] (HELO mail-qy0-f171.google.com) (209.85.216.171) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 18 Oct 2010 09:43:35 +0000 Received: by qyk9 with SMTP id 9so3991982qyk.2 for ; Mon, 18 Oct 2010 02:43:13 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:received:date:message-id :subject:from:to:content-type; bh=BiEvvtK2ScBcMLQph9top5vbU/WsXQi124Wn3bOjpwQ=; b=RTQP2HEtLRRlCrcyLoZhLANgFoR5j0vUfMIiyJnNzQRx5wtQHbZ8x27hHBfujx86UH pFFBdyls/MdxxHsnl3jHjC2P5qKbjfbNzvzbUDh2DSLFUP+IAKO7soZjo/w0pnF0hqiZ wDs9aiIzvBynx7XAzeL3ignGBqau8hakwFVMI= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:date:message-id:subject:from:to:content-type; b=EC5hZ37cV8d8seehdj9GHZFLhYaaEdPzp16Ll6172EuZW91HT/ObSY3j3kcJsdmMED vmWvSeN2KUPy+bNg28QX+Par9nD0Kiu6fRuVjDDFuyt1DBrjKBgnLeX28gwsySHz0TO4 i/6jJQohSsUd9Mzge8t7Cm3L0y8MHUN50hRYA= MIME-Version: 1.0 Received: by 10.229.230.211 with SMTP id jn19mr3649843qcb.193.1287394992963; Mon, 18 Oct 2010 02:43:12 -0700 (PDT) Received: by 10.229.6.68 with HTTP; Mon, 18 Oct 2010 02:43:12 -0700 (PDT) Date: Mon, 18 Oct 2010 11:43:12 +0200 Message-ID: Subject: ExecutorFilter From: Zlatko Josic To: users@mina.apache.org Content-Type: multipart/alternative; boundary=0016363b90483dc14e0492e101d3 X-Virus-Checked: Checked by ClamAV on apache.org --0016363b90483dc14e0492e101d3 Content-Type: text/plain; charset=ISO-8859-1 Hi, Can anyone explain me diffrence between solution 1 and solution 2. Solution 1 : config.getFilterChain().addLast("executor", new ExecutorFilter()); config.getFilterChain().addLast( "codec", new ProtocolCodecFilter(new TextLineEncoder( new LineDelimiter("\n\r")), new TextLineDecoder(Charset.forName("Cp1250"), LineDelimiter.AUTO))); Solution 2 : config.getFilterChain().addLast( "codec", new ProtocolCodecFilter(new TextLineEncoder( new LineDelimiter("\n\r")), new TextLineDecoder(Charset.forName("Cp1250"), LineDelimiter.AUTO))); config.getFilterChain().addLast("executor", new ExecutorFilter()); Thank you. Zlaja --0016363b90483dc14e0492e101d3--