Servlets only activate when their service methods are called by the web container. Do you want to a) just poll a unix server during a request, or b) continually to build up a profile?
a) in your service (post/get) method create a socket to the server in question, send it some data, and await a response (details depend on what protocol), or
b) create and start a thread that does what (a) does.
Be aware that your polling code should have a short time out because the browser will probably time out after 30 sec or so.
Marcin.
Light on the fizz so you can slap him down fast.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.