RE: [Poll] Should we remove 'Io' from all interfaces?

2007-09-17 Thread Kumaran Arul
Io prefix: [X]: Retain them. Rename ByteBuffer to may be WrapperByteBuffer or ExtendedByteBuffer Arul Kumaran Senior Java/J2EE developer/designer http://www.lulu.com/java-success -Original Message- From: Maarten Bosteels [mailto:[EMAIL PROTECTED] Sent: Tuesday, 18 September 2007 1:3

答复: 答复: Mina Performance

2007-09-17 Thread 李向锋
I have post it at: http://www.nabble.com/mina-performance-tf4471354s16868.html thanks! -邮件原件- 发件人: Trustin Lee [mailto:[EMAIL PROTECTED] 发送时间: 2007年9月18日 11:56 收件人: dev@mina.apache.org 主题: Re: 答复: Mina Performance Please try to post an attachment here: http://www.nabble.com/Apache-MIN

Re: mina performance

2007-09-17 Thread Trustin Lee
Ah, you attached the file already. Let me check it out this week. Thanks, Trustin On 9/18/07, windshome <[EMAIL PROTECTED]> wrote: > > http://www.nabble.com/file/p12749102/severdemo.zip severdemo.zip > > > > Hello, I Write a Server Demo use Mina-1.1.2,use the > ObjectSerializationCodecFactory. B

Re: 答复: Mina Performance

2007-09-17 Thread Trustin Lee
Please try to post an attachment here: http://www.nabble.com/Apache-MINA-Support-Forum-f16869.html Please let me know if it doesn't work. Trustin On 9/18/07, 李向锋 <[EMAIL PROTECTED]> wrote: > > Sorry, the mail server reject my mail with attatchment ,please help check > this code,thanks. > >

Re: New name for ByteBuffer?

2007-09-17 Thread Rodrigo Madera
+1 DataBuffer. Regards, Rodrigo On 9/17/07, Jeff Genender <[EMAIL PROTECTED]> wrote: > > +1...renaming it would be good. When I explain it...I have to be very > careful in saying "I mean Mina's ByteBuffer..not a regular ByteBuffer" > > Jeff > > Trustin Lee wrote: > > Hi folks, > > > > It is ofte

Re: [Poll] Naming style for acronyms

2007-09-17 Thread Rodrigo Madera
> > [X]: All capital Rodrigo

mina performance

2007-09-17 Thread windshome
http://www.nabble.com/file/p12749102/severdemo.zip severdemo.zip Hello, I Write a Server Demo use Mina-1.1.2,use the ObjectSerializationCodecFactory. But When Run This Server,Use a 100 threads Client to test it’s performance,it’s performance is poor. Server machine is 2CPU *2.8G,1G memory ,S

答复: Mina Performance

2007-09-17 Thread 李向锋
Sorry, the mail server reject my mail with attatchment ,please help check this code,thanks. -邮件原件- 发件人: Trustin Lee [mailto:[EMAIL PROTECTED] 发送时间: 2007年9月18日 10:06 收件人: dev@mina.apache.org 主题: Re: Mina Performance Hi, Could you zip the source code files and attach to our support forum

Re: [Poll] Naming style for acronyms

2007-09-17 Thread Ersin Er
[X]: Only the initial letter should be capital On 9/17/07, Trustin Lee <[EMAIL PROTECTED]> wrote: > > Hi folks, > > As many people pointed out, MINA currently has somewhat inconsistent > naming style for acronyms (e.g IO vs Io and MDC vs Mdc). I'm not sure > standardizing the naming style for acr

Re: [Poll] Naming style for acronyms

2007-09-17 Thread Mike Heath
I used to be of the opinion that acronyms should be all uppercase. This issue outlined by Dave bit me badly on a couple of projects and now I'm of the opinion that only the initial letter should be capitalized in an an acronym. It just works out better that way with existing Java bean framewo

Re: HttpURLConnection vs Socket / SocketConnection for HTTP

2007-09-17 Thread Trustin Lee
What HTTP server are you using? Is it a server problem, or the problem of the MINA HTTP client? Trustin On 9/18/07, squeebie <[EMAIL PROTECTED]> wrote: > > Turns out it was the server that returns me the XML. With sockets, I was > creating the header, and if I sent the server a header with HTTP

Re: Mina Performance

2007-09-17 Thread Trustin Lee
Hi, Could you zip the source code files and attach to our support forum? Thanks, Trustin On 9/18/07, 李向锋 <[EMAIL PROTECTED]> wrote: > Hello, I Write a Server Demo use Mina-1.1.2,use the > ObjectSerializationCodecFactory. But When Run This Server,Use a 100 threads > Client to test it's performanc

Mina Performance

2007-09-17 Thread 李向锋
Hello, I Write a Server Demo use Mina-1.1.2,use the ObjectSerializationCodecFactory. But When Run This Server,Use a 100 threads Client to test it’s performance,it’s performance is poor. Server machine is 2CPU *2.8G,1G memory ,Suse Linux 9. It Tran/sec only 60~80. I past the code under, who can he

Re: [Poll] Naming style for acronyms

2007-09-17 Thread Trustin Lee
On 9/18/07, Trustin Lee <[EMAIL PROTECTED]> wrote: > OK.. then let me find classes with all capital acronyms and change them. Resolved in trunk: https://issues.apache.org/jira/browse/DIRMINA-440 Trustin -- what we call human nature is actually human habit -- http://gleamynode.net/ -- PGP Key ID

[jira] Resolved: (DIRMINA-440) Consistent naming style for acronyms (SSL, HTTP, MDC, IO, ...)

2007-09-17 Thread Trustin Lee (JIRA)
[ https://issues.apache.org/jira/browse/DIRMINA-440?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Trustin Lee resolved DIRMINA-440. - Resolution: Fixed Resolved like the following: http://svn.apache.org/viewvc?rev=576647&view=rev

[jira] Created: (DIRMINA-440) Consistent naming style for acronyms (SSL, HTTP, MDC, IO, ...)

2007-09-17 Thread Trustin Lee (JIRA)
Consistent naming style for acronyms (SSL, HTTP, MDC, IO, ...) -- Key: DIRMINA-440 URL: https://issues.apache.org/jira/browse/DIRMINA-440 Project: MINA Issue Type: Improvement

Re: New name for ByteBuffer?

2007-09-17 Thread Jeff Genender
+1...renaming it would be good. When I explain it...I have to be very careful in saying "I mean Mina's ByteBuffer..not a regular ByteBuffer" Jeff Trustin Lee wrote: > Hi folks, > > It is often confusing to discriminate MINA ByteBuffer and NIO > ByteBuffer. Do we need renaming? I didn't have m

New name for ByteBuffer?

2007-09-17 Thread Trustin Lee
Hi folks, It is often confusing to discriminate MINA ByteBuffer and NIO ByteBuffer. Do we need renaming? I didn't have much difficulties actually because most Java code doesn't use both types at the same time. There was an opinion about renaming it to MinaByteBuffer, but I don't think it's the

Re: [Poll] Naming style for acronyms

2007-09-17 Thread Trustin Lee
OK.. then let me find classes with all capital acronyms and change them. BTW I think we need to think about MinaByteBuffer again because there might be a better name. Let's handle this in a separate thread. Cheers, Trustin On 9/18/07, hezjing <[EMAIL PROTECTED]> wrote: > [X ]: Only the initial

Re: [Poll] Naming style for acronyms

2007-09-17 Thread hezjing
[X ]: Only the initial letter should be capital On 9/18/07, Mark <[EMAIL PROTECTED]> wrote: > Change mine to: > > [ X]: Only the initial letter should be capital > > After talk of "MINA" vs. "Mina" started, I certainly think the initial > letter should be used. > > > On 9/17/07, Mark <[EMAIL PROT

Re: [Poll] Naming style for acronyms

2007-09-17 Thread Mark
Change mine to: [ X]: Only the initial letter should be capital After talk of "MINA" vs. "Mina" started, I certainly think the initial letter should be used. On 9/17/07, Mark <[EMAIL PROTECTED]> wrote: > > [X]: All capital > > -- > ..Cheers > Mark > > On 9/17/07, Emmanuel Lecharny <[EMAIL PROTE

Re: [Poll] Naming style for acronyms

2007-09-17 Thread Emmanuel Lecharny
I will change my vote : [x]: Only the initial letter should be capital (was capitalize all letters). What convinced me was the obvious HttpProtocol example. It's simply talk by itself ! Emmanuel On 9/17/07, Cameron Taggart <[EMAIL PROTECTED]> wrote: > [x]: Only the initial letter should be cap

Re: [Poll] Naming style for acronyms

2007-09-17 Thread Cameron Taggart
[x]: Only the initial letter should be capital I like the "Mina" prefix, not "MINA". Cameron On 9/17/07, Maarten Bosteels <[EMAIL PROTECTED]> wrote: > [x]: Only the initial letter should be capital > > I agree. > > On 9/17/07, Richard Wallace <[EMAIL PROTECTED]> wrote: > > > > I agree. > > > > [

Re: HttpURLConnection vs Socket / SocketConnection for HTTP

2007-09-17 Thread squeebie
Turns out it was the server that returns me the XML. With sockets, I was creating the header, and if I sent the server a header with HTTP 1.1, it returned crap in the response. Switched to 1.0 and it works. Thanks anyway guys, keep up the great work with Mina. -- View this message in context

Re: [Poll] Naming style for acronyms

2007-09-17 Thread Maarten Bosteels
[x]: Only the initial letter should be capital I agree. On 9/17/07, Richard Wallace <[EMAIL PROTECTED]> wrote: > > I agree. > > [X]: Only the initial letter should be capital > > I like Davids reasoning and have some of my own as well. The only time > anyone actually says "input/output" is when

HttpURLConnection vs Socket / SocketConnection for HTTP

2007-09-17 Thread squeebie
I'm trying to switch our application from using HttpURLConnection to Mina. I've narrowed down my issue to not being a Mina issue, but thought you guys and gals might know the answer just because of your experience in this area. I'm having some trouble with "8000" showing up in my response after

Re: [Poll] Naming style for acronyms

2007-09-17 Thread Richard Wallace
I agree. [X]: Only the initial letter should be capital I like Davids reasoning and have some of my own as well. The only time anyone actually says "input/output" is when they are answering the question, "What is IO?". Similarly, the only time anyone actually says "Secure Socket Layer" is w

Re: [Poll] Should we remove 'Io' from all interfaces?

2007-09-17 Thread Richard Wallace
[X]: Retain them. I use JMS Session and java.util.concurrent.Future everywhere! There are far too many possible conflicts that would just make code a PITA to write and read otherwise. Rich Trustin Lee wrote: Hi everyone, Another issue has been arisen. Now some people seems to want to get

Re: [Poll] Should we remove 'Io' from all interfaces?

2007-09-17 Thread Maarten Bosteels
Io prefix: [X]: Retain them. Name for org.apache.mina.common.ByteBuffer, in order of preference: (1) leave it as it is (2) MinaByteBuffer (99) MINAByteBuffer, why uppercase !? I think nobody pronounces MINA as an acronym, like we do for MDC or SSL Maarten On 9/17/07, Mark <[EMAIL PROTECTED]> wr

Re: [Poll] Should we remove 'Io' from all interfaces?

2007-09-17 Thread Mark
#2 MinaByteBuffer -- ..Cheers Mark On 9/17/07, Maarten Bosteels <[EMAIL PROTECTED]> wrote: > > Io prefix: > [X]: Retain them. > > Name for org.apache.mina.common.ByteBuffer, in order of preference: > (1) leave it as it is > (2) MinaByteBuffer > (99) MINAByteBuffer, why uppercase !? > I think nob

Re: [Poll] Naming style for acronyms

2007-09-17 Thread David M. Lloyd
On Mon, 17 Sep 2007 23:57:11 +0900 "Trustin Lee" <[EMAIL PROTECTED]> wrote: > Hi folks, > > As many people pointed out, MINA currently has somewhat inconsistent > naming style for acronyms (e.g IO vs Io and MDC vs Mdc). I'm not sure > standardizing the naming style for acronyms are definitely re

Re: [Poll] Should we remove 'Io' from all interfaces?

2007-09-17 Thread Julien Vermillard
On Mon, 17 Sep 2007 17:13:52 +0200 "Emmanuel Lecharny" <[EMAIL PROTECTED]> wrote: > > [X]: Retain them. > > For another reason. It's not because MINA is all about IO that those > classes should not start or contains 'IO'. It can be very confusing > sometime if we have an overlap with another clas

Re: [Poll] Should we remove 'Io' from all interfaces?

2007-09-17 Thread Rodrigo Madera
Remove them all. Rodrigo On 9/17/07, Maarten Bosteels <[EMAIL PROTECTED]> wrote: > > Io prefix: > [X]: Retain them. > > Name for org.apache.mina.common.ByteBuffer, in order of preference: > (1) leave it as it is > (2) MinaByteBuffer > (99) MINAByteBuffer, why uppercase !? > I think nobody pronoun

Re: [Poll] Naming style for acronyms

2007-09-17 Thread Mark
[X]: All capital -- ..Cheers Mark On 9/17/07, Emmanuel Lecharny <[EMAIL PROTECTED]> wrote: > > > [X]: All capital > > -- > Regards, > Cordialement, > Emmanuel Lécharny > www.iktek.com >

Re: [Poll] Should we remove 'Io' from all interfaces?

2007-09-17 Thread Mark
I completely agree that the MINA ByteBuffer should be renamed and we should be using "MINA" in alot more of the codebase. [X]: Retain them. -- ..Cheers Mark On 9/17/07, Julien Vermillard <[EMAIL PROTECTED]> wrote: > > On Mon, 17 Sep 2007 17:13:52 +0200 > "Emmanuel Lecharny" <[EMAIL PROTECTED]>

Re: [Poll] Should we remove 'Io' from all interfaces?

2007-09-17 Thread Emmanuel Lecharny
> [X]: Retain them. For another reason. It's not because MINA is all about IO that those classes should not start or contains 'IO'. It can be very confusing sometime if we have an overlap with another class from another package. For some reasons, I felt quite confused when using MINA ByteBuffer,

Re: [Poll] Should we remove 'Io' from all interfaces?

2007-09-17 Thread David M. Lloyd
On Tue, 18 Sep 2007 00:01:21 +0900 "Trustin Lee" <[EMAIL PROTECTED]> wrote: > Hi everyone, > > Another issue has been arisen. Now some people seems to want to get > rid of ugly 'Io' prefix from everywhere (e.g. IoSession -> Session, > IoFuture -> Future!?). Please let us know what do you think

Re: [Poll] Naming style for acronyms

2007-09-17 Thread Emmanuel Lecharny
> [X]: All capital -- Regards, Cordialement, Emmanuel Lécharny www.iktek.com

[Poll] Should we remove 'Io' from all interfaces?

2007-09-17 Thread Trustin Lee
Hi everyone, Another issue has been arisen. Now some people seems to want to get rid of ugly 'Io' prefix from everywhere (e.g. IoSession -> Session, IoFuture -> Future!?). Please let us know what do you think about this issue. More feed back, better names! [ ]: Remove them all! [ ]: Retain the

[Poll] Naming style for acronyms

2007-09-17 Thread Trustin Lee
Hi folks, As many people pointed out, MINA currently has somewhat inconsistent naming style for acronyms (e.g IO vs Io and MDC vs Mdc). I'm not sure standardizing the naming style for acronyms are definitely required, but I'd like to know what you think about it. Personally I'd prefer all capita

What about addomg 'NIO' prefixes to all NIO services?

2007-09-17 Thread Trustin Lee
Hi community, I've just added IoService interfaces that fits into any socket/datagram implementations: http://svn.apache.org/viewvc/mina/trunk/core/src/main/java/org/apache/mina/transport/socket/ These interfaces were introduced to provide more socket implementations (e.g. APR and blocking I/O)

Re: MDCInjectionFilterTest fails occasionally.

2007-09-17 Thread Julien Vermillard
Here the svn keywords reference ;) http://blog.gleamynode.net/2006/12/setting-svnkeyword-property.html Julien On Mon, 17 Sep 2007 16:33:13 +0200 "Maarten Bosteels" <[EMAIL PROTECTED]> wrote: > Hi Trustin, > > On 9/17/07, Trustin Lee <[EMAIL PROTECTED]> wrote: > > > > Hi Maaretn, > > > > On 9/17

Re: MDCInjectionFilterTest fails occasionally.

2007-09-17 Thread Trustin Lee
On 9/17/07, Maarten Bosteels <[EMAIL PROTECTED]> wrote: > Hi Trustin, > > On 9/17/07, Trustin Lee <[EMAIL PROTECTED]> wrote: > > > > Hi Maaretn, > > > > On 9/17/07, Maarten Bosteels <[EMAIL PROTECTED]> wrote: > > > I fixed a possible ConcurrentModificationException in the test-case. > > > I hope th

Re: MDCInjectionFilterTest fails occasionally.

2007-09-17 Thread Maarten Bosteels
Hi Trustin, On 9/17/07, Trustin Lee <[EMAIL PROTECTED]> wrote: > > Hi Maaretn, > > On 9/17/07, Maarten Bosteels <[EMAIL PROTECTED]> wrote: > > I fixed a possible ConcurrentModificationException in the test-case. > > I hope that was the failure you saw ? > > I didn't actually check the cause. :) >

Re: MDCInjectionFilterTest fails occasionally.

2007-09-17 Thread Trustin Lee
Hi Maaretn, On 9/17/07, Maarten Bosteels <[EMAIL PROTECTED]> wrote: > I fixed a possible ConcurrentModificationException in the test-case. > I hope that was the failure you saw ? I didn't actually check the cause. :) > I have run the test-case several times both on linux and Windows XP, and it >

Re: MDCInjectionFilterTest fails occasionally.

2007-09-17 Thread Maarten Bosteels
I fixed a possible ConcurrentModificationException in the test-case. I hope that was the failure you saw ? I have run the test-case several times both on linux and Windows XP, and it always succeeded. kind regards, Maarten On 9/17/07, Maarten Bosteels <[EMAIL PROTECTED]> wrote: > > On 9/17/07, T

Re: LoggingFilter() configuration

2007-09-17 Thread Maarten Bosteels
There really is no need to do that since you can easily make the existing LoggingFilter use log4j. Please let us know which of your needs aren't covered by the existing LoggingFilter. Maarten On 9/17/07, Sungwon Jung <[EMAIL PROTECTED]> wrote: > > Thanks all! > > right now I'm make Log4JFilter(

Re: LoggingFilter() configuration

2007-09-17 Thread Sungwon Jung
Thanks all! right now I'm make Log4JFilter() and it's working well. my console is clean now. :-) -- import org.apache.log4j.*; public class Log4JFilter extends IoFilterAdapter { ... } -- On 9/17/07, Maarten Bosteels <[EMAIL PROTECTED]> wrote: > To use log4j, you need these jars on the classp

Re: LoggingFilter() configuration

2007-09-17 Thread Maarten Bosteels
To use log4j, you need these jars on the classpath: slf4j-api-1.4.3.jar slf4j-log4j12-1.4.3.jar log4j-1.2.x.jar see http://www.nabble.com/slf4j-logging-t4402442s16868.html Maarten On 9/17/07, Mark <[EMAIL PROTECTED]> wrote: > > Depending on the underlying logging system you are using, it

Re: LoggingFilter() configuration

2007-09-17 Thread Mark
Depending on the underlying logging system you are using, it depends. If you are using Log4J, then you just need to configure a log4j.propertiesfile. See the Log4J documentation for more information. On 9/17/07, Sungwon Jung <[EMAIL PROTECTED]> wrote: > > Hello. I'm using MINA 1.1.2. > > I use

LoggingFilter() configuration

2007-09-17 Thread Sungwon Jung
Hello. I'm using MINA 1.1.2. I use LoggingFilter(). like this "cfg_acu.getFilterChain().addLast( "logger", new LoggingFilter() );" LoggingFilter() print message to console. I want output log message to file not console. is it possible? thank you.

[jira] Created: (DIRMINA-439) DemuxingProtocolEncoder and DemuxingProtocolDecoder by refactoring DemuxingProtocolCodecFactory

2007-09-17 Thread Trustin Lee (JIRA)
DemuxingProtocolEncoder and DemuxingProtocolDecoder by refactoring DemuxingProtocolCodecFactory --- Key: DIRMINA-439 URL: https://issues.apache.org/jira/browse/DIRMINA-439

Re: Huge refactoring for NIO transports in trunk

2007-09-17 Thread Julien Vermillard
On Sun, 16 Sep 2007 23:29:03 +0900 "Trustin Lee" <[EMAIL PROTECTED]> wrote: > Hi, > > Today, I checked in a load of code that removed a lot of duplicate > code. Let me list the changes I've made: > > * Added IoProcessor interface > > This is a very thin reactor layer that provides abstract vie

Re: text based protocol

2007-09-17 Thread Sungwon Jung
Thanks Maarten Bosteels! On 9/17/07, Maarten Bosteels <[EMAIL PROTECTED]> wrote: > Hello Sungwon, > > Please have a look at > http://mina.apache.org/report/1.1/apidocs/org/apache/mina/filter/codec/textline/TextLineDecoder.html > > As the name suggests, the TextLineDecoder tries to decode a LINE o

Re: text based protocol

2007-09-17 Thread Maarten Bosteels
Hello Sungwon, Please have a look at http://mina.apache.org/report/1.1/apidocs/org/apache/mina/filter/codec/textline/TextLineDecoder.html As the name suggests, the TextLineDecoder tries to decode a LINE of text: it accumulates all incoming data until it receives a Line Delimiter (carriage return

Fwd: text based protocol

2007-09-17 Thread Sungwon Jung
sorry. my mistake. I added "\n" not "\0". Thank you. -- Forwarded message -- From: Sungwon Jung <[EMAIL PROTECTED]> Date: Sep 17, 2007 5:10 PM Subject: text based protocol To: dev@mina.apache.org Hello. I'm using MINA 1.1.2. problem is server cannot receive client's message.

text based protocol

2007-09-17 Thread Sungwon Jung
Hello. I'm using MINA 1.1.2. problem is server cannot receive client's message. client code is below. --- char sBufSend[ 512 ] = "0123456789\0"; int iSend = 0; iSend = send( scHost, sBufSend, strlen( sBufSend ), 0 ); printf( "%d\n", iSend ); -- server use cfg.getFilterChain().addLast( "codec", n

Request for a test on various platforms:

2007-09-17 Thread Trustin Lee
Hi, I made a lot of changes to the current datagram implementation in trunk. DatagramAcceptor now collaborates with DatagramConnector to create connected datagram socket which listens to the remote address of the received packet. The following is simplified description of flow: * DatagramAccept