fred.bregier wrote:
>
> Hi,
> As far as I know Mina, the only real difference between
> Client and Server in Mina is the way they connect each other.
> Only the client can initiate the connect (using a connector)
> to the server (using an acceptor).
> But once they are connected, everything is the same.
> They can both send or receive, at least without considering
> protocol of course (http client doesn't have to answear as a server, ;-)
> So the difference came after from the filter and protocol you put on each
> side.
>
> So you can consider your client as server, except of course the use of
> connector
> instead of the acceptor.
>
> Hope this helps you
>
> Frederic
> ----- Original Message -----
> From: "tdi"
>
>
> Hi,
> I find MINA a great piece of software, but need small design help. Im
> having following architecture. Server in java to which client connects,
> but
> the roles are somehow inversted, because my server is the point that
> initiates all connections. The client 'just' connects. The thing i need it
> the handling response from client. Ex. java server sends GET DATA and
> receives 200 OK. Ineed to have it to pass to higher layers of softwware
> (to
> handle errors and know what is going on on client).
> Is it possible to do in MINA? The examples and docs only show the example
> where client writes mostly. Any suggestions ?
> --
> View this message in context:
> http://www.nabble.com/Handling-response-in-MINA-tf4967542s16868.html#a14229946
> Sent from the Apache MINA Support Forum mailing list archive at
> Nabble.com.
>
>
>
>
What is my problem is acctually howto handle that response in code. Should i
do it in session (stored some state) or how?
What is want is to have API with wrappers like method:
getData() which sends something and returns a response from the other side.
I do not acctually know what way it should be done properly. My guess was to
have some state stored in session and this way handle responses etc. (like
state='sent', so next messageReceived would be answer for the dat sent
before.
--
View this message in context:
http://www.nabble.com/Handling-response-in-MINA-tp14229946s16868p14234271.html
Sent from the Apache MINA Support Forum mailing list archive at Nabble.com.