• Post Reply Bookmark Topic Watch Topic
  • New Topic

Perpetual Execution at Intervals ???

 
Kumar Navin
Ranch Hand
Posts: 52
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi! friends,
I have a bean which sends an email using JavaMail on 9iAS. Requirement is as such that this bean should get invoked at regular intervals or at a specified time, interact with the database (Oracle) pick the information and send the mail automatically. Or there can be a Sevlet/Bean/JSP which does the task. How can I achieve this ???
Thanks,

-Navin.
 
Jeanne Boyarsky
author & internet detective
Marshal
Posts: 35716
412
Eclipse IDE Java VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Kumar,
You could call the bean from within a thread.

This doesn't seem to be specific to oracle. I'm going to move it to the threads forum.
 
Kumar Navin
Ranch Hand
Posts: 52
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Sorry Jeanne, but I thought it to be a part of 9iAS and hence posted it there. Am using 9i AS and hence want the code to be executed by the Application Server.
Will take care in future.
-Navin.
 
Steven Bell
Ranch Hand
Posts: 1071
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I think you would need a scheduling package. Don't think you will find that in what you have. Maybe take a look at quartz.
 
David Harkness
Ranch Hand
Posts: 1646
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Also, EJB 2.1 introduced a minimal Timer Service. You might also try searching in the EJB forum as it was just discussed a few days ago.
 
Jeanne Boyarsky
author & internet detective
Marshal
Posts: 35716
412
Eclipse IDE Java VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Navin,
No problem. As a rule of thumb, technology questions generally go in their respective forums (EJB, Threads, Servlets, ...) while tool questions go in Oracle (how do I deploy, where do I click for the JNDI name, ...)
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!