Database poller thread, any alternate approach?
I am running a thread that polls a table every minute and queues to
perform the processes, but I feel this is a single point of failure. I
have another thread to monitor this polling thread, to restart whenever
the poller crashes. But still the problem is not fully addressed, as the
meta monitoring thread can fail anytime! Apart from ejb timers is there
any other api/framework/design approach to address this issue? Can this be
done with Apache Camel or Mule? Is there any api to get events on database
changes, I couldn't find one!
No comments:
Post a Comment