I have been working on this project for a few days, my first attempt at the
Mina framework and I have been having a few issues.
Background: My application connects to multiple servers and grab information
from them.
1) When the application is running and the server I am connected to crashes, or
loses internet connection, I am not seeing any communication on my side that
the connection has been lost.
(I am just watching the log4j output.)
Would my handler be responsible to pick up this lost connection? If not,
where would I identify a reconnect from.
2) Could someone help to better explain the following:
ConnectFuture cf connector.connect.....
cf.getSession().getCloseFuture().awaitUninterruptibly(); // What is this line
of code ?
I have been commenting this line out as my application stops connecting to
other servers when it hits this line of code.
Thanks for reading my rambling, and I appreciate any assistance I may get.
Thanks.
IMPORTANT NOTICE !
This E-Mail transmission and any accompanying attachments may contain
confidential information intended only for the use of the individual or entity
named above. Any dissemination, distribution, copying or action taken in
reliance on the contents of this E-Mail by anyone other than the intended
recipient is strictly prohibited and is not intended to, in anyway, waive
privilege or confidentiality. If you have received this E-Mail in error please
immediately delete it and notify sender at the above E-Mail address.
Agrium uses state of the art anti-virus technology on all incoming and outgoing
E-Mail. We encourage and promote the use of safe E-Mail management practices
and recommend you check this, and all other E-Mail and attachments you receive
for the presence of viruses. The sender and Agrium accept no liability for any
damage caused by a virus or otherwise by the transmittal of this E-Mail.