As the topic depicts, I'm interested in the canonical java way to resend a message if the destination doesn't send an acknowledement message within a specific time frame.
I could come up with a couple of alternatives, but im not sure i like them.
E.g. (pseudo code/describition)
start a new Thread and check some "external condition" if the ACK has arrived. If no ACK has arrived, resend the message and sleep for a specific time. When the ACK arrived kill/stop the "resender-thread"? (java.lang.Thread.stop() is deprecated)
A, to some extent better solution, would be to use the java.util.concurrent ExecutorService for better thread handling.