On 8/5/10 11:59 AM, Hamid wrote:
Hi everybody,
Hi,
I've implemented a program that defines a simple TCP/IP communication based
on the MINA framework to connect to an existing TCP/IP server, which is not
controlled by my self.
The process is very simple:
1. I create a connection to this server using the MINA concept
2. I send my request
3. The server answers to my request and closes the connection
4. When I tried to read the response using my custom decoder, I got the
message "connection closed by a 3rd party....".
Not good ...
The method "messageReceived(IoSession session_p, Object message_p) " in my
Handler has never been called !
If your decoder has been called, that means the messageReceived has been
called.
Just for information, I've implemented the same process using the classical
Socket mechanism and I succeeded to get the request reply without any change
on the server side.
No reason it should not work with MINA
I think that the problem comes from the client side
100% sure. There must be something wrong on the client side.
and maybe from the MINA
framework.
*Very* unlikely.
Can someone help me?
Sure, if you provide some piece of information about what *exactly* you
are trying to do, and more important, *how* you use the framework, and
of course, *which* version you are using. Right now, your mail just
states that you have an issue using the framework, but don't give any
clue about what kind of failure you have.
Very like if you call a doctor and tell him 'doctor, I'm sick, can you
help me ?' :)
--
Regards,
Cordialement,
Emmanuel Lécharny
www.iktek.com