File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Servlets and the fly likes How to make a servlet as observer????? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Servlets
Bookmark "How to make a servlet as observer?????" Watch "How to make a servlet as observer?????" New topic

How to make a servlet as observer?????

Dhanush Dharsh
Ranch Hand

Joined: Oct 30, 2000
Posts: 33
I have a class that does some network polling. This class implements observable. It updates a datastructure after every poll and notify all its observers. These observers are used to periodically refresh my GUI client. This works fine in case of a simple java application.
When I tried to port this to servlets, I am not able get the same functionality done. Is it because servlets cant be an observer ?
Someone please throw some light on this.
Frank Carver

Joined: Jan 07, 1999
Posts: 6920
The Java Ranch has thousands of visitors every week, many with surprisingly similar names. To avoid confusion we have a naming convention, described at .
We require names to have at least two words, separated by a space, and strongly recommend that you use your full real name. Please choose a new name which meets the requirements.

Read about me at ~ Raspberry Alpha Omega ~ Frank's Punchbarrel Blog
I agree. Here's the link:
subject: How to make a servlet as observer?????
jQuery in Action, 3rd edition