In my opinion, whichever you choose is fine. Trustin, what are the plans for 2.0? Will it eventually replace 1.x or is it planed to branch independently?
Rodrigo On 4/10/07, Mark Webb <[EMAIL PROTECTED]> wrote:
I could just add a "2.0" section for that part. No need in building 2 tutorials IMO. On 4/10/07, Rodrigo Madera <[EMAIL PROTECTED]> wrote: > > Great! > > Now this should be put on the Wiki... > What do you think Mark? Create a 2.0 version by cloning your article and > renaming? > > Rodrigo > > On 4/10/07, Maarten Bosteels <[EMAIL PROTECTED]> wrote: > > > > Rodrigo, > > > > I was testing the example but only had mina-2.0 at hand, so I modified > it > > to > > work with 2.0 > > Here it is: > > > > public class MinaTimeServer { > > private static final int PORT = 9123; > > > > public static void main(String[] args) throws IOException { > > > > SocketAcceptor acceptor = new SocketAcceptor(); > > > > acceptor.getFilterChain().addLast("logger", new LoggingFilter() ); > > acceptor.getFilterChain().addLast( "codec", new ProtocolCodecFilter( > > new > > TextLineCodecFactory( Charset.forName( "UTF-8" )))); > > acceptor.setReuseAddress(true); > > > > acceptor.setHandler(new TimeServerHandler() ); > > acceptor.setLocalAddress( new InetSocketAddress(PORT) ); > > acceptor.bind(); > > System.out.println("MINA Time server started."); > > } > > } > > > > As you can see, there's a litlle difference. > > Maarten > > > > > > On 4/10/07, Rodrigo Madera <[EMAIL PROTECTED]> wrote: > > > > > > Mark, > > > > > > Could you also provide a 2.0 version of it? > > > If you have the opportunity, that would be excellent! > > > > > > Rodrigo > > > > > > On 4/10/07, Mark Webb <[EMAIL PROTECTED]> wrote: > > > > I have added a tutorial that walks a new user through the process of > > > > developing a MINA based application. In this case, the tutorial > shows > > > the > > > > user how to write a time server. Take a look at the document and > let > > me > > > > know what you think. > > > > > > > > http://mina.apache.org/quick-start-guide.html > > > > > > > > Thank you. > > > > > > > > -- > > > > ..Cheers > > > > Mark > > > > > > > > > > -- ..Cheers Mark