I have a MIDlet which communicates with server over GPRS every 5 mins using HTTPConnection (state less protocol) API and is expected to do so uninterrupted for days. Problem is that after 4 - 5 hours the requests stop coming to the server.
1. Initially I thought that there no GPRS connectivity, but what I found out was; if I restart my MIDlet and try to connect it can establish the connection and things work fine.
2. If I wait in that "no connection" state and keep my MIDlet running, it reconnects with the server after a gap of 4 - 5 hours .
I am trying to find out how to notify the system (S40 device which I am using) to establish a new Packet Data connection instead of trying to use the existing one which it feels is "established" in such a situation.