I have jsp, which does ajax requests to a controller and passes IP's and shell commands that server will do. For example, ajax request has params "127.0.0.1", "ls -la, ls". (commands - is a list) Server executes these commands in separate threads(one thread per IP, or other) and updates table on jsp which contains output data of these commands. So how it can be implemented? How can I get results from each thread and ajax update table ?
Thanks!