File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes JBoss/WildFly and the fly likes Mbeans  - Timer Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Java Interview Guide this week in the Jobs Discussion forum!
JavaRanch » Java Forums » Products » JBoss/WildFly
Bookmark "Mbeans  - Timer" Watch "Mbeans  - Timer" New topic

Mbeans - Timer

Ola Daniel
Ranch Hand

Joined: Jul 27, 2005
Posts: 105
Hi, I need a push in the right direction. I have my Web application deployed on a Jboss server. I need my application to carry out some transactions based on the time set in my database. For example: In my database i set a date 1st October 2006, to make some online payments. I am not really sure how to make this happen. I am told I could write an MBean to help me do this.

I need advice, am i on the right track. If yes, a tip on how best to achieve my objective will be apreciated. If I am not on track... kindly give me a push in the right direction.

SCJP 1.4, SCWCD 1.4
"Any fool can write code that a computer can understand. Good programmers write code that humans can understand."
- Martin Fowler et al, Refactoring: Improving the Design of Existing Code, 1999
Jaikiran Pai

Joined: Jul 20, 2005
Posts: 10441

You may use a scheduler for this. Quartz is one such open source scheduler which you can use. Here are the tutorials for the same:
Quartz Tutorials

Also, there's a Timer Service MBean in JBoss which you may use. Here's the link for the same:

Timer and Scheduler Service in JBoss

[My Blog] [JavaRanch Journal]
Ola Daniel
Ranch Hand

Joined: Jul 27, 2005
Posts: 105
Thanks. Ill use quartz... this solves my problem.
I agree. Here's the link:
subject: Mbeans - Timer
It's not a secret anymore!