Hi All,
Like Frederic here I am new to MINA and have similar questions. More specifically it would help if someone could answer the
thread pool question.
Per this link http://wiki.apache.org/directory/MinaTutorial it is rather clear from looking at the java docs that this document is old.

I am trying to use MINA on the client side but this client lives within a long running App server and will be sending and receiving messages
from a proprietary message bus(server).
So it is a long lived client/sessions

The sending and receiving itself should be quick as it is assumed the client and server are on a high speed LAN(fast or Gig E) But the client after parsing the message could be taking some time to process the business logic and insert some info to DB.

Now one way to reach parallelism from my understanding is to use multiple IoSession(s) (sockets) for sending and receiving meaning adding a thread pool in the socket layer through the MINA ThreadPoolFilter being added to the DefaultIoFilterChain.

Is this the recommended and correct way for a long lived client and can I have multiple IoSessions for my client application?

Is there an example or document to add a ThreadPoolFilter higher up in the protocol stack where I am going to be handling my business logic over and above the ThreadPool in the socket layer.

In that tutorial it talks about
ProtocolHandler is a counterpart of the I/O layer IoHandler.

I could not find exactly the equivalent of ProtocolHandler in 0.9.x. Is this the ProtoclDecoderAdapter?

Help appreciated.
--KRaj





2) ThreadPool :
The documentation is quite different considering 0.8.x and 0.9.x and it was
difficult for me to find the right way
to assign my ThreadPool with the number of thread I want.
I am quite confused with the model, as I didn't see clearly where to put
this ThreadPool. I understand that in 0.8
it was possible to put a ThreadPool both at the socket part and at the
filter part. But I am not sure what is the best
and what is the correct usage considering that I will have more than 10 000
users concurrently connected
and each of them could done a simple task that could be heavy (in short time
but quite cpu consumming or many
message to send or receive).
Can someone explains the model and how to correctly set the TreadPool(s) in
0.9.x ?


Reply via email to