aspose file tools*
The moose likes EJB and other Java EE Technologies and the fly likes Schedule a task Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » EJB and other Java EE Technologies
Bookmark "Schedule a task" Watch "Schedule a task" New topic
Author

Schedule a task

ray frid
Ranch Hand

Joined: Dec 23, 2010
Posts: 79
Hi all, Iam using jboss5.1.x, EJB3.0

I need to schedule a task in my application. which way would you recommend me to do it according to version I am using below?

I heard about SAR, but i am not sure if there is a way which is more appropriate or updated to do it nowdays

thanks,

ray.
Joe Ess
Bartender

Joined: Oct 29, 2001
Posts: 8908
    
    8

"updated way to do it"? I use cron for my apps.
I've seen Quartz recommended on the forums. I don't know if there's something built into JBoss.


"blabbing like a narcissistic fool with a superiority complex" ~ N.A.
[How To Ask Questions On JavaRanch]
ray frid
Ranch Hand

Joined: Dec 23, 2010
Posts: 79
cron? but this is a linux command. i need something to run from the inside of my application. something that my container(EJB) will run
Joe Ess
Bartender

Joined: Oct 29, 2001
Posts: 8908
    
    8

Unix command. Linux <> Unix. You can write stand-alone EJB clients, ya know.
Again, Quartz may be what you are looking for. There are probably many other options.
ray frid
Ranch Hand

Joined: Dec 23, 2010
Posts: 79
Do you know anything specific for JBOSS?

10x
Jaikiran Pai
Marshal

Joined: Jul 20, 2005
Posts: 10102
    
165

Here's one of the previous discussions similar to this, http://www.coderanch.com/t/477104/EJB-JEE/java/Java-EE-timer-service-periodical

[My Blog] [JavaRanch Journal]
Jaikiran Pai
Marshal

Joined: Jul 20, 2005
Posts: 10102
    
165

ray frid wrote:Do you know anything specific for JBOSS?

10x

http://www.coderanch.com/t/517755/JBoss/TimerService-JBoss
Paul Sturrock
Bartender

Joined: Apr 14, 2004
Posts: 10336

Depends what you mean by schedule, but if its a task that recurs with a specific frequency EJB timers are available. Or a simple timer task if you don;t need any container provided services.


JavaRanch FAQ HowToAskQuestionsOnJavaRanch
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Schedule a task