Hi,
we are developing a client/server application, where the server-side uses MINA as its communication framework. On the top of the filter chain there is a message handler class that extends IoHandlerAdapter.
The message handler does some business logic, that is executed in transactional context using Spring Framework's declarative transaction management. After the method implementing the business logic executed and returns the response message, the transaction is committed and the response is sent back to the client.
The problem is when the client is disconnected during executing the transactional method (network problems, etc.) In this scenario the transaction is committed and the server detects the lost connection only when it tries to send out the response message. In our case the transaction should be rolled back.
Can you suggest some way how to detect the connection failure earlier than sending out the message?
We are using Mina 1.1.7. Regards, Andras
