I think MINA will be a very good choice for what you want to do.

1) I presume you mean you want the calling thread on the client to block
until it gets a particular message sent to it. This is relatively simple to
do: track the state in the IoSession, and the caller and protocol handler
can use one of the concurrent collections you mention to handshake.

2) Yes you can use whatever bits of java.util.concurrent you want. I am not
quite sure what you mean in the second sentence of point 2. Are you talking
about the client or the server?

Robert


|---------+---------------------------->
|         |           Serkan Demir     |
|         |           <[EMAIL PROTECTED]|
|         |           ijen.com>        |
|         |                            |
|         |           14/03/2006 16:46 |
|         |           Please respond to|
|         |           mina-dev         |
|         |                            |
|---------+---------------------------->
  
>--------------------------------------------------------------------------------------------------------------------------------|
  |                                                                             
                                                   |
  |       To:       [email protected]                               
                                                   |
  |       cc:                                                                   
                                                   |
  |       Subject:  Is MINA appropriate for blocking messaging                  
                                                   |
  
>--------------------------------------------------------------------------------------------------------------------------------|




Hello guys,

At the beginning, your project is splendid, thanks for your work.
I want to implement an IP-based protocol with MINA (protocol is
Diameter, RFC 3588). I have a proof of concept implementation of this
protocol built on oswego concurrent api and blocking messaging.
As an introduction, I have implemented a simple flow for my protocol
with MINA by putting logic into protocol layer, but i am currently a
newbie.
Thus, i have some questions for you.
1) As a first question "Is MINA appropriate for blocking messaging"? I
need to block sending party thread until answer comes. If your answer is
yes, could you suggest a todo list for me?
2) Can MINA easily integrate with oswego concurrent api, and by the way
Tiger concurrent package ? If answer is yes, i am a candidate to do. I
need a similar queue implementation on which my sending thread polls
this queue until some timeout value and waits a new item to enter queue.

I might ask some dummy questions, because this is my second day with MINA.

thanks lot,

Serkan





This communication is for informational purposes only. It is not intended
as an offer or solicitation for the purchase or sale of any financial
instrument or as an official confirmation of any transaction. All market prices,
data and other information are not warranted as to completeness or accuracy and
are subject to change without notice. Any comments or statements made herein 
do not necessarily reflect those of JPMorgan Chase & Co., its subsidiaries 
and affiliates.

Reply via email to