I've detected a strange behavior when using the read() method provided by JTOpen's KeyedDataQueue
class.
I've set an 90s timeout and for 99% of read executions when the timeout is reached my calling method execution is resumed.
As for the other 1% the timeout isn't considered/reached and my calling method stays hung...
After searching a bit I found this post:
http://archive.midrange.com/java400-l/201112/msg00056.html
Basically it confirms what I suspected:
"I also found that the DataQueue.read() timeout functionality is server side so if the TCP/IP connection is silently torn down (which I believe is the underlying cause of this) it will still hang. "
I'm using version 7.2 of JTOpen and I realize that version 7.9 is already out there. I didn't update to 7.9 because I have a lot of critical applications using 7.2 that are stable and really this is the first real scenario that makes me consider updating to 7.9.
In order to help me with that decision I would really like your feedback, especially from those of you that came across this situation and eventually solved it by upgrading JTOpen.
Specifically, are there workarounds for this issue, and does upgrading JTOpen help with this? Will upgrading JTOpen to 7.9 break anything that was working in 7.2?