This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan on-line!
See this thread for details.
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 Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Products » JBoss/WildFly
Bookmark "Mbeans  - Timer" Watch "Mbeans  - Timer" New topic
Author

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
Marshal

Joined: Jul 20, 2005
Posts: 9953
    
163

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.
 
wood burning stoves
 
subject: Mbeans - Timer
 
Similar Threads
Connection in servlets
Inheritance problem
Embedding MS Word in Java
Using an int to hold a four digit date
Application failover