I am developing an application in java swing and servlet. Database is kept on server. I am using HttpClient for swing servlet communication.
I want to send heartbeat message from client to server after every specific time interval so that servlet will not invalidate session which is created on user logon. When user explicitly logs out from client application then only session should terminate.
How to send heartbeat message from swing application?
How to read heartbeat message in servlet application?