a strange question about mina codec.serialization

2008-01-25 Thread tiandike
my server send a List to client. when I remove a field in my BasePaymentAccountDO , my client receive the List ,but the elements in this list not are userdo ! some are string type ! http://www.nabble.com/file/p15085933/strange.bmp strange.bmp -- View this message in context: http://www.nabble.

Re: a question about mina Serialization

2008-01-25 Thread tiandike
If i use mina ObjectSerializationCodecFactory ,and want to support versioning , do I need to provide void writeObject(ObjectOutputStream s) and readObject(ObjectInputStream s) function in my dataobject? Niklas Therning wrote: > > tiandike wrote: >> I use ObjectSerializationCod

a question about mina Serialization

2008-01-24 Thread tiandike
I use ObjectSerializationCodecFactory in my mina client and server . My client send a request to the server and server send response to client . when I change my response dataobject in my client such as remove or add a field in the response class ,this will lead the client error: Caused by: java

Re: a question about codec.serialization

2007-11-15 Thread tiandike
(); Class clazz = Class .forName(className, true, classLoader); return ObjectStreamClass.lookup(clazz); } } why overrides ObjectInputStream.readClassDescriptor()?? tiandike wrote: > > My request has

about iohandler exceptionCaught

2007-11-14 Thread tiandike
I want to know what exceptions can be caught in iohandler exceptionCaught. some of mina example simply write session.close(); in exceptionCaught . I think some exception doesn't need to close the session. So I want to ask a question: which exception should I close the session. -- View this me

Re: How to implement the synchronized function call?

2007-11-14 Thread tiandike
client.rar syclient.rar tiandike wrote: > > I want to implement a interface like User getuser(String id); > > My ClientApp use getuser function to get user from ServerApp, > > the client use IoSession.write function to send message from client to > Server, and Serve

Re: a question about codec.serialization

2007-11-14 Thread tiandike
); return ObjectStreamClass.lookup(clazz); when className is long ,Class.forName throws exception: Trustin Lee wrote: > > Please provide me some code that reproduces your problem. > > Thanks in advance, > Trustin > > On Nov 14, 2007 11:59 AM, tiandike <

Re: a question about codec.serialization

2007-11-13 Thread tiandike
(Class.java:247) at org.apache.mina.common.ByteBuffer$3.readClassDescriptor(ByteBuffer.java:1480) at java.io.ObjectInputStream.readNonProxyDesc(ObjectInputStream.java:1565) ... 42 more tiandike wrote: > > I use ObjectSerializationCodecFactory in my mina server and clie

a question about codec.serialization

2007-11-13 Thread tiandike
I use ObjectSerializationCodecFactory in my mina server and client app . I define a Map field in my requestmessage and in this Map i put Object[] args and Class[] clazzes; in the first bytebuffer I use Long ,but the seconde bytebuffer i use long. I find first bytebuffer can be sent to mina

Re: How to implement the synchronized function call?

2007-10-30 Thread tiandike
If i use receive with timeout: Object[] res=new Object[num]; for(int i=0;i > Hi Tiandike, > > Another way of doing it is at > https://issues.apache.org/jira/browse/DIRMINA-375. I can't promise that > it's better :) > > Here's what your C

Re: a question about SessionBuffer

2007-10-29 Thread tiandike
age instanceof ByteBuffer) { add(session, ((ByteBuffer) message).remaining()); } and at this time message is not the instanceof ByteBuffer so add function will never be executed! Trustin Lee wrote: > > On 10/26/07, tiandike <[EMAIL PROTECTED]> wrote: >> >>

Re: why client received message in order?

2007-10-26 Thread tiandike
then the number of thread that handle eventQueue in SessionBuffer for one connector(session?) is at most 1 at the same time? Trustin Lee wrote: > > On 10/25/07, tiandike <[EMAIL PROTECTED]> wrote: >> >> I debug the source code and find it's SessionBuffer to maint

a question about SessionBuffer

2007-10-26 Thread tiandike
I find in ExecutorFilter the request will be wrapped in event and put in SessionBuffer.eventQueue field . If my handler handle request slow and client send request faster ,will the size of eventQueue became huge and lead to OutofMemoryException error? Thanks -- View this message in conte

Re: a question when running performance test by loadruner

2007-10-26 Thread tiandike
has relation with this static field. and now my config is Maarten Bosteels wrote: > > On 10/25/07, tiandike <[EMAIL PROTECTED]> wrote: >> >> >> I didn't set value to intialSize, ma

Re: a question when running performance test by loadruner

2007-10-25 Thread tiandike
loop. > Then you know if it's mina related or not. > > Maarten > > On 10/24/07, tiandike <[EMAIL PROTECTED]> wrote: >> >> >> I use org.apache.commons.dbcp.BasicDataSource and set maxActive =1000 >> >> i don't know why is 8? why not o

Re: a question when running performance test by loadruner

2007-10-25 Thread tiandike
How much threads is your mina app using ? > > You could try to see how much insert/transactions your app can do per > second > without using mina and loadrunner: just start x threads INSIDE your > application that do the db operations in a loop. > Then you know if it's mina related

Re: why client received message in order?

2007-10-24 Thread tiandike
I debug the source code and find it's SessionBuffer to maintain the order , and i find one connection with one thread for handler (Thread [pool-4-thread-4] ). Is this right? Trustin Lee wrote: > > On 10/23/07, tiandike <[EMAIL PROTECTED]> wrote: >> >> in the

Re: a question when running performance test by loadruner

2007-10-24 Thread tiandike
gt; The bottleneck in our MINA based server also turned out to be Oracle, more > specifically the number of commits that Oracle could do per second. I am > not > saying that Oracle is bad (quite the opposite) just that I think that's > where you should look: it has A LOT of tuning opti

a question when running performance test by loadruner

2007-10-24 Thread tiandike
I use loadruner to test my server ,my handler performs database operations(insert a row a request) i disable the default ThreadModel setting following http://mina.apache.org/configuring-thread-model.html when i use loadruner to run performance test , a strange phenomenon is that when the number

Re: why client received message in order?

2007-10-23 Thread tiandike
Trustin Lee wrote: > > > As you see from the source code, there's an event buffer per session > that maintains the message order. > > I can't understand the detail,can you give a more detail explanation? thanks -- View this message in context: http://www.nabble.com/why-client-received-me

Re: why client received message in order?

2007-10-22 Thread tiandike
called simultaneously for different IoSessions. > > If you want more parallel processing, have a look at > http://issues.apache.org/jira/browse/DIRMINA-334 > > Maarten > > > On 10/22/07, mat <[EMAIL PROTECTED]> wrote: >> >> Try client sends more

Re: why client received message in order?

2007-10-22 Thread tiandike
7;t see why NOT if in your client side only single thread sending the > message. > > On 10/22/07, tiandike <[EMAIL PROTECTED]> wrote: >> >> >> I modified the example of echoserver >> >> in my code I disable the default ThreadModel setting and configure

How to pronounce mina?

2007-10-16 Thread tiandike
How to pronounce mina? -- View this message in context: http://www.nabble.com/How-to-pronounce-mina--tf4634201s16868.html#a13233575 Sent from the Apache MINA Support Forum mailing list archive at Nabble.com.

Re: poll: which logging framework are you using

2007-09-28 Thread tiandike
[x] log4j Mike Heath-4 wrote: > >> [x] log4j >> [ ] logback >> [ ] java.util.logging >> [ ] slf4j-simple >> [x] slf4j-nop >> [ ] x4juli >> [ ] other (please specify) > > > -- View this message in context: http://www.nabble.com/poll%3A-which-logging-framework-are-you-using-tf4536976s16868

Re: Do i need to use threadpool in my iohandler to improve performance?

2007-09-28 Thread tiandike
tocolCodecFilter , do it has the same effect? Maarten Bosteels-4 wrote: > > On 9/28/07, tiandike <[EMAIL PROTECTED]> wrote: >> >> if i use ProtocolCodecFilter , do ExecutorFilter in the filterchain? > > ProtocolCodecFilter and ExecutorFilter are orthogonal featu

a qustion about mina when under heavy load

2007-09-28 Thread tiandike
i use loadruner to test mina server and i find a question :when under heavy load ,the server will crash and the client can't connect the server! -- View this message in context: http://www.nabble.com/a-qustion-about-mina-when-under-heavy-load-tf4533959s16868.html#a12938975 Sent from the Apache

Re: Do i need to use threadpool in my iohandler to improve performance?

2007-09-28 Thread tiandike
ng your own thread-pool, you could also add an > ExecutorFilter to the chain > for example at the end (thus just before your IoHandler) > 3) testing performance of the alternatives will give you the best answer > > regards, > Maarten > > On 9/26/07, tiandike <[EMAIL P

a questio about reverser example

2007-09-28 Thread tiandike
in this example it doesn't add ExecutorFilter ,but when i debug I find ExecutorFilter in the filterchain ,why? -- View this message in context: http://www.nabble.com/a-questio-about-reverser-example-tf4533412s16868.html#a12937527 Sent from the Apache MINA Support Forum mailing list archive at N

when will mina1.1.3 be released?

2007-09-26 Thread tiandike
thanks -- View this message in context: http://www.nabble.com/when-will-mina1.1.3-be-released--tf4523315s16868.html#a12904196 Sent from the Apache MINA Support Forum mailing list archive at Nabble.com.

Do i need to use threadpool in my iohandler to improve performance?

2007-09-26 Thread tiandike
thanks! -- View this message in context: http://www.nabble.com/Do-i-need-to-use-threadpool-in-my-iohandler-to-improve-performance--tf4523297s16868.html#a12904139 Sent from the Apache MINA Support Forum mailing list archive at Nabble.com.

How to config the mina to improve performance (at client and server)?

2007-09-10 Thread tiandike
thanks! Are there any document about this ? -- View this message in context: http://www.nabble.com/How-to-config-the-mina-to-improve-performance-%28at-client-and-server%29--tf4414032s16868.html#a12591101 Sent from the Apache MINA Support Forum mailing list archive at Nabble.com.

The error in chat example

2007-08-30 Thread tiandike
when i run SpringMain ,there is an Exception : Exception in thread "main" org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'ioAcceptor' defined in class path resource [org/apache/mina/example/chat/serverContext.xml]: Initialization of bean failed; nested exce

Re: How to implement the synchronized function call?

2007-08-22 Thread tiandike
N http://www.nabble.com/file/p12286978/sumup.rar sumup.rar ow i use callback and wait notify to implement the syn call. I want to know if there are any better solutions. I modify the sumup example to implent syn call. the client has three java files :client1.java ClientSessionHandler1.java Cl

How to implement the synchronized function call?

2007-08-22 Thread tiandike
I want to implement a interface like User getuser(String id); My ClientApp use getuser function to get user from ServerApp, the client use IoSession.write function to send message from client to Server, and Server's handler receive message and IoSession.write the user object, then the cl