Re: Spring

2007-05-17 Thread Emmanuel Lecharny
mat a écrit : 2007/5/17, Emmanuel Lecharny [EMAIL PROTECTED]: mat a écrit : Can you explain more why Mina needs Spring? Mina does not need spring at all. But you can use Spring with Mina if you want. As trustin said, Spring is just a IoC container (http://www.springframework.org/) Mina

Re: Interesting blog entry about synchronized vs ReentrantLock

2007-05-17 Thread James Im
The synchronized keyword is continuously optimized upon. I would highly recommend that you keep thinks simple. My advise would be: use synchronized unless you can prove (by a benchmark) that the use of a ReentrantLock speeds things up considerably. With concurrent programming the priority must

Re: Spring

2007-05-17 Thread Niklas Therning
MINA doesn't need Spring. The mina-spring-integration module provides some classes which make it easier to use Spring to configure your MINA IoHandler, IoAcceptor, IoConnector etc. Spring's dependency injection (DI) is a great tool as it helps you separate the configuration of your classes from

Re: Spring

2007-05-17 Thread mat
I already fount in the API doc. 2007/5/17, mat [EMAIL PROTECTED]: Thanks for your explaination. Mina IoHandler, IoAcceptor, IoConnector can be configured? Is there any examples or tutorials for this? Furthermore, 2007/5/17, Niklas Therning [EMAIL PROTECTED]: MINA doesn't need Spring. The

Re: How can i deal with the old [DataInputStream DataOutputStream] client

2007-05-17 Thread 李健
i'v tested to send request like 123 using DataOutputStream byte[] req = 123.getBytes() dataOutputStream.writeInt(req.length); dataOutputStream.write(req); dataOutputStream.flush(); i tried to send this request 10 times, the server received data like this:

Re: Coding stlye guide

2007-05-17 Thread Mladen Turk
Niklas Therning wrote: It would be great if there is some .indent file because I already noticed that there are some files that are starting to break those rules. Please have a look here: http://mina.apache.org/developer-guide.html#DeveloperGuide-CodingConvention Back when MINA was a

Re: How can i deal with the old [DataInputStream DataOutputStream] client

2007-05-17 Thread mat
You have to reassembly the complete message by using decoder. Please read the SumUp example first. 2007/5/17, 李健 [EMAIL PROTECTED]: i'v tested to send request like 123 using DataOutputStream byte[] req = 123.getBytes() dataOutputStream.writeInt(req.length);

Re: Java doc 1.1.0 still remain in SNAPSHOT version.

2007-05-17 Thread mat
I also found out some source code were missing. CompressFilter.java for instance. 2007/5/17, Tan Ka Ju [EMAIL PROTECTED]: Hello, I am using Mina 1.1.0, and frequently using the mina online Javadoc for reference, yet the reference site only display the SNAPSHOT version. It would be of great

Re: Java doc 1.1.0 still remain in SNAPSHOT version.

2007-05-17 Thread Emmanuel Lecharny
Thanks for pointing the missing parts ! It would be great if you can fill a JIRA about them so that it won't be lost in the thousand mails in this mailing list :) Emmanuel mat a écrit : I also found out some source code were missing. CompressFilter.java for instance. 2007/5/17, Tan Ka Ju

Re: Coding stlye guide

2007-05-17 Thread Niklas Therning
Mladen Turk wrote: Niklas Therning wrote: It would be great if there is some .indent file because I already noticed that there are some files that are starting to break those rules. Please have a look here: http://mina.apache.org/developer-guide.html#DeveloperGuide-CodingConvention

[jira] Created: (DIRMINA-378) Reformat code using new coding conventions

2007-05-17 Thread Niklas Therning (JIRA)
Reformat code using new coding conventions -- Key: DIRMINA-378 URL: https://issues.apache.org/jira/browse/DIRMINA-378 Project: MINA Issue Type: Improvement Reporter: Niklas Therning

Re: Coding stlye guide

2007-05-17 Thread Mladen Turk
Niklas Therning wrote: That's one of the reasons why we made this decision IIRC. But maybe it's time to reconsider? It sure would be nice to have all source code fixed before we release 2.0. If the decision was made to change the coding style, then IMHO it's better to do that sooner then

Re: Coding stlye guide

2007-05-17 Thread Niklas Therning
Mladen Turk wrote: Niklas Therning wrote: That's one of the reasons why we made this decision IIRC. But maybe it's time to reconsider? It sure would be nice to have all source code fixed before we release 2.0. If the decision was made to change the coding style, then IMHO it's better to do

Migration of AsyncWeb to Apache

2007-05-17 Thread Deepak Nadig
Is there a timeframe/plan on when AsyncWeb would be migrated to Apache? Perhaps to become part of the MINA project? Thanks, Deepak