Re: some trouble about DemuxingProtocolCodecFactory

2007-07-01 Thread Messi Chan
Hi, Jeroen. You're right, I have solved the problem. I have a AbstractMessageEncoder is super class of A/B Encoder. I have defined getMessageTypes() in the AbstractMessageEncoder. This is the crux of the problem. Removing it and it's work now. Thx all of you. :) -- View this message in context:

Re: Just 2 little questions

2007-07-01 Thread Michael Bauroth
mat schrieb: Why you needs that? I don't need more. I only want to be sure, that the IoHandler is something like a single point / concentrator in my message queue. Regards Michael

Re: Just 2 little questions

2007-07-01 Thread Trustin Lee
On 6/28/07, Michael Bauroth <[EMAIL PROTECTED]> wrote: Thank you for your answers. That was what I looked for. The only remaining question: So default there exist one single IoHandler. If I want more (i.e. one per session) I must configure this. Right? Exactly. multiton package is particularly

Re: some trouble about DemuxingProtocolCodecFactory

2007-07-01 Thread Trustin Lee
Hi Messi, On 7/1/07, Messi Chan <[EMAIL PROTECTED]> wrote: Hi, all I have a doubt about DemuxingProtocolCodecFactory. I register two MessageEncoders one for class A, and the other for class B. When my server try to encode A first time, it work fine. But when it try to encode B next time, I got

Re: Just 2 little questions

2007-07-01 Thread 向秦贤
Hi, Agree mat. You need what? If and just if from face of "I want more" IoHandler, You can create YourIoHandler which contains more IoHandlers It's OK. Mina know YourIoHandler and Only need that like IoHandler, but not know other contained IoHandlers. What do you want? bush? or ladon? or peace? :

Re: how can I make multiple ProtocolCodecFilters work together?

2007-07-01 Thread slowness chen
you have one protocolcodecfilter , e.g. "codec", you can judge which protococodeclfilter is appropriate according to some conditions, then replace "codec" with that protococodeclfilter : session.getFilterChain().remove("codec"); session.getFilterChain().addLast( "codec", new ProtocolCodecFilter(

Re: 40 ms intermittent latency - large volume, small messages

2007-07-01 Thread peter royal
have you tried toggling tcp_nodelay? -pete -- peter royal - (on the go) On Jul 1, 2007, at 2:25 PM, "Colin Koeck" <[EMAIL PROTECTED]> wrote: Hi, I've been experiencing intermittent latency with mina, generally causing 37-40 millisecond delays. This occurs when I said large amounts of sm

Re: 40 ms intermittent latency - large volume, small messages

2007-07-01 Thread Emmanuel Lecharny
Hi Colin if you are on Linux, you may want to disable the naggle algorithm : ((SocketSessionConfig)(acceptorCfg.getSessionConfig())).setTcpNoDelay( true ); I think it can change the performance *a lot* :) (Naggle algorithm will wait 25 ms before sending a packet, in order to send the less poss

40 ms intermittent latency - large volume, small messages

2007-07-01 Thread Colin Koeck
Hi, I've been experiencing intermittent latency with mina, generally causing 37-40 millisecond delays. This occurs when I said large amounts of small messages (usually in 5 - 20 count bursts, each message no more than 500 bytes) across a 100Mbit ethernet network. I'm using Linux running on du

Re: some trouble about DemuxingProtocolCodecFactory

2007-07-01 Thread Jeroen Brattinga
I don't see what the your link has to do with the DemuxingProtocolCodecFactory. AFAIK the Demuxer can be used to encode and decode message according to certain message classes. So it should be perfectly possible to register two different MessageEncoders. If not, then what is the point of the De

Re: some trouble about DemuxingProtocolCodecFactory

2007-07-01 Thread mat
http://www.nabble.com/Why-only-one-ProtocolCodecFilter-per-chain-tf3884603.html#a11012504 On 6/30/07, Messi Chan <[EMAIL PROTECTED]> wrote: Hi, all I have a doubt about DemuxingProtocolCodecFactory. I register two MessageEncoders one for class A, and the other for class B. When my server try