Win a copy of Functional Reactive Programming this week in the Other Languages forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Schedule a task

 
ray frid
Ranch Hand
Posts: 79
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 9319
10
Linux Mac OS X Windows
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
"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.
 
ray frid
Ranch Hand
Posts: 79
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 9319
10
Linux Mac OS X Windows
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 79
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Do you know anything specific for JBOSS?

10x
 
Jaikiran Pai
Marshal
Pie
Posts: 10447
227
IntelliJ IDE Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Here's one of the previous discussions similar to this, http://www.coderanch.com/t/477104/EJB-JEE/java/Java-EE-timer-service-periodical
 
Jaikiran Pai
Marshal
Pie
Posts: 10447
227
IntelliJ IDE Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
ray frid wrote:Do you know anything specific for JBOSS?

10x

http://www.coderanch.com/t/517755/JBoss/TimerService-JBoss
 
Paul Sturrock
Bartender
Posts: 10336
Eclipse IDE Hibernate Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic