Hi, all I've once planned to write a MINA 2.0 tutorial for my colleagues, and here is some sample code including basic time server/client with Spring/JMX/SSL support. you may check it out here: http://code.google.com/p/mina-2-tutor/
The tutorial is in Chinese and is far from complete. But all the sample projects are complete, and they are all maven based. I'm not sure whether it's useful, but I'll be really happy if these code may help :-) Cheers Cheng 2008/4/9, Niall Pemberton <[EMAIL PROTECTED]>: > > The MINA v2.0 Quick Start Guide needs updating for the current API > > http://mina.apache.org/mina-v20-quick-start-guide.html > > In the last MinaTimeServer code snippet it has... > > acceptor.setLocalAddress( new InetSocketAddress(PORT) ); > acceptor.bind(); > > ...but setLocalAddress() doesn't exist (in Mina 2.0.0-M1) - should be > changed to setDefaultLocalAddress() or replace those lines with > > acceptor.bind(new InetSocketAddress(PORT)); > > The other thing is the lines added in the 3rd MinaTimeServer code > snippet have been dropped from the 4th(last) code snippet, i.e. > > acceptor.getSessionConfig().setReadBufferSize( 2048 ); > acceptor.getSessionConfig().setIdleTime( IdleStatus.BOTH_IDLE, 10 ); > > > Niall >
