HI Aswath:
In your scenario you can use any one of following two solutions:
- Run a thread in servlet and keep giving to hits to database after
particular time period
but this is going to increase no. of hits on DB and load on server
running servlet, and unnessary network bandwidth consumption.
- If your database (Oracle) allow Loading a class file than you can call
this class file from a trigger which should get fired when there is any
updates in DB, and on update this class file will call servlet and let him
know abt changes accordingly
Cheers
----- Original Message -----
From: "aswath satrasala" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Sunday, June 03, 2001 9:13 PM
Subject: monitoring using apache-tomcat
> Hello,
> I have a scenario, where I have to monitor for new records in the
> database.
> Can I use servlets to do this functionality?
>
> I wanted to do this, in order to avoid writing my own server
> Can I use any of apache-tomcat features for this.
>
> Basically, I wanted to accomplish two things.
> 1. find if there are new records in the database.
> 2. If there are new records in the database, then perform some
operations.
>
> -Aswath
>
>
>
>
>
>
>
>
> _________________________________________________________________
> Get your FREE download of MSN Explorer at http://explorer.msn.com