• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Paul Clapham
  • Tim Cooke
  • Jeanne Boyarsky
  • Liutauras Vilda
Sheriffs:
  • Frank Carver
  • Henry Wong
  • Ron McLeod
Saloon Keepers:
  • Tim Moores
  • Frits Walraven
  • Tim Holloway
  • Stephan van Hulst
  • Carey Brown
Bartenders:
  • Al Hobbs
  • Piet Souris
  • Himai Minh

running a thread in application server

 
Ranch Hand
Posts: 72
Eclipse IDE Firefox Browser Ubuntu
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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?

thanks in advance,
 
Ranch Hand
Posts: 1143
1
Eclipse IDE Oracle Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Ravee,


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.

Good Luck,
Avi.
 
Die Fledermaus does not fear such a tiny ad:
the value of filler advertising in 2021
https://coderanch.com/t/730886/filler-advertising
reply
    Bookmark Topic Watch Topic
  • New Topic