mina-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Zlatko Josic <zlatko.jo...@gmail.com>
Subject ExecutorFilter
Date Mon, 18 Oct 2010 09:43:12 GMT
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

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message