All here is a situation where I need to start a thread and keep checking for update in DataBase. I need to start this thread when my Application Server starts (Oracle 9iAS 9.0.2 Rel 2. typically).
I am not sure if this creating and running my own threads in AS runtime environment is a good idea or not. Please guide me. There must be a better way for this, I guess!! What are the side effects that I need to watchout for?
not sure if this creating and running my own threads in AS runtime environment is a good idea
If you are using an EJB to spawn this "Thread", then the EJB specification states that EJB's are not supposed to spawn "Thread"s.
I need to keep checking for update in DataBase.
There are probably other ways to solve the problem you think to solve via spawning a "Thread" that polls the database. Perhaps if you described your problem (rather than your intended solution), I would be able to offer you a (better?) alternative.