• 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
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Perpetual Execution at Intervals ???

 
Ranch Hand
Posts: 52
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
author & internet detective
Posts: 41860
908
Eclipse IDE VI Editor Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
Ranch Hand
Posts: 1071
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
Ranch Hand
Posts: 1646
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
Posts: 41860
908
Eclipse IDE VI Editor Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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, ...)
 
Willie Smits can speak 40 languages. This tiny ad can speak only one:
a bit of art, as a gift, that will fit in a stocking
https://gardener-gift.com
reply
    Bookmark Topic Watch Topic
  • New Topic