Re: ThreadPool in Mina with concurrent from Java5 Howto ?

2006-10-18 Thread James Im
When reading this thread I 'm thinking that mina should have a method somewhere that would define the number of cpus/cores of the underlying system. For example: .setCpuNumber(2); From that only setting, wouldn't mina have enough information to configure itself optimally?

Re: synchronous responses to client

2006-10-13 Thread James Im
IoSession session = ...; WriteFuture future = session.write(...); // Wait until the message is completely written out to the O/S buffer. future.join(); I was looking at this code and I got an idea. As we want mina to be as non blocking as possible may be instead of having the thread waiting it

Re: Using Java5 concurrent if available

2006-09-25 Thread James Im
peter royal wrote: my view is that anyone that /needs/ java5 and no backport stuff now can do this, otherwise wait for 1.1 :) and for 1.1 why not go for Java6 directly (skipping Java5)? Java6 will be probably out by then. _ Log