One scenario that comes to mind is to load a servlet when the Servlet Container comes 
up which;

1.      Uses a Timer class (thread with a callback) to signal 5 minute expirations
2.      Check an application level array of Interested Client IP Addresses (stored in 
ServletContext)
3.      For Each Subscribed Client push the DB results as an ObjectStream to a Socket 
in a Client Side Applet.
4.      Subcribed means a Client page with a Client Side Socket enabled applet was 
requested by the Client, the Applet invokes the Servlet to signal its ready for results

This would be fun to code.....I'm not an expert on Firewalls but maybe someone else 
can enlighten.

Bill Lindsay
Benefits and Investment Solutions
401(k) Infrastructure Automation
732 764-3464 (voice)
732 764-5902 (fax)
888 MERRIL-0 (pager)






-----Original Message-----
From: Rajeshwar Rao Vadheraju [ mailto:[EMAIL PROTECTED] 
<mailto:[EMAIL PROTECTED]> ]
Sent: Wednesday, February 21, 2001 8:06 AM
To: [EMAIL PROTECTED]
Subject: Need help


Hi friends,


How can I write a servlet which gets some results from Database for every 5
mins and diplays them on Browser?


If give me some code ,I am very much thankful to you.

Rajeshwar Rao

___________________________________________________________________________
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff SERVLET-INTEREST".

Archives: http://archives.java.sun.com/archives/servlet-interest.html 
<http://archives.java.sun.com/archives/servlet-interest.html>
Resources: http://java.sun.com/products/servlet/external-resources.html 
<http://java.sun.com/products/servlet/external-resources.html>
LISTSERV Help: http://www.lsoft.com/manuals/user/user.html 
<http://www.lsoft.com/manuals/user/user.html>

___________________________________________________________________________
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff SERVLET-INTEREST".

Archives: http://archives.java.sun.com/archives/servlet-interest.html
Resources: http://java.sun.com/products/servlet/external-resources.html
LISTSERV Help: http://www.lsoft.com/manuals/user/user.html

Reply via email to