Hi Trustin,
thank you for your prompt response. With the update, i meant the examples given in "MINA Tutorial" of Must-reads section of "Getting Started".
For my 3. question; can you please be more elaborate? You mean an instance variable of IoHandler? if we dont have a queue structure in our classes, does MINA handle this with an internal queue? if more than one session tries to send data to one session, no data is lost, right?
I will now check VM-pipe transport..
BR..
cinar.
| "Trustin Lee"
<[EMAIL PROTECTED]>
15.05.2006 09:55
|
|
Hi Cinar,
On 5/15/06, Cinar Eren <[EMAIL PROTECTED]> wrote:
>
>
> Hi,
>
> I have been working with MINA for the last a few days. First of all, thank
> you very much for such a great tool.
> I have some questions:
> 1. what i understood from the archive, we dont need to worry about
> creating threads for each session; as it is handled by MINA by default. What
> kind of a need makes us create our own ThreadPoolFilter, etc?
>
You might want multiple thread pool filters to implement SEDA. But it's
rare in practice. :)
2. I know that a large tutorial will not be available until Release 1.0, but
> cant you update the Tutorial in "Getting Started" section at least? :-)
>
Do you mean the SWF screencast? Otherwise, what part of the section has a
problem for you?
3. my most important question: what will be the best practice to make
> communications between different IoSessions, i.e. the data taken from one
> session shall be sent to another session. Is it ok for the IoSession to have
> an attribute of type Queue which has a hasMessage method and in this method
> we can try to send the message to the remote side?
>
If the IoSessions are handled by the same IoHandler instance, then you can
simply use the instance variable. Otherwise, your idea looks fine. Or you
could use VM-pipe transport; please refer to the table tennis example.
HTH,
Trustin
--
what we call human nature is actually human habit
--
http://gleamynode.net/
--
PGP key fingerprints:
* E167 E6AF E73A CBCE EE41 4A29 544D DE48 FE95 4E7E
* B693 628E 6047 4F8F CFA4 455E 1C62 A7DC 0255 ECA6
