I managed to get the client reconnecting , working with the built-in Java 7 NIO2 client on the desktop (Windows 8.1 x64, JDK 8) with Tyrus 1.9 and previous versions, as described here: https://tyrus.java.net/documentation/1.9 /user-guide.html#d0e1311 .
In Android 4.4.4 and 5.0 ( Note II, Nexus 4 , Genymotion), however, nothing happens (as if there were no handlers). Is there any additional configuration somewhere, or is this a limitation of the Grizzly click?
If this is a Grizzly restriction, is there a way to replicate the reconnect behavior?
Update 05/02/15
After some digging, it turns out that there was an error in my code that was masked by a tiny logical error; The handler works fine on Android 4.4 and 5.0 on real devices. The problem is certainly present in Genymotion for Windows 8.1 x64; obviously, Genymotion on OSX works fine.
source
share