So here is the core of the problem.
I have written code that makes endless loop and gets the new vehicles from TCP socket and stores them in arrays;
car_id = R007
latitude = x
longtitude = y
This is going to be used by many people so i need a way to make the jsp page receives the packets in the background and when a new request comes in to handle it.
10x in advance
i tried to override the jspInit() method and run the code that gets the TCP packets but as i said it uses ENDLESS loop so the jsp page NEVER LOADS completely. It waits until the jspInit() method finish executing.