• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

JBoss script

 
Albis Gistenson
Greenhorn
Posts: 7
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello, sorry for my English.
In my Deploy folder is deployed scheduled script:
<?xml version="1.0" encoding="UTF-8"?>
<server>
<mbean code="org.jboss.varia.scheduler.Scheduler" name=":service=Scheduler, schedule=ScheesProcessor">
<attribute name="StartAtStartup">true</attribute>
<attribute name="SchedulableClass">net.fistal.gd.SendScheduled</attribute>
<attribute name="InitialStartDate">NOW</attribute>
<attribute name="SchedulePeriod">500</attribute>
<attribute name="InitialRepetitions">10</attribute>
</mbean>
</server>
But it not works. In deploy folder are many other scripts and they works. May be I should write script name in some config file? I don’t know…
If I call net.fistal.gd.SendScheduled.perfom() from another class, all works fine.
Thanks you!
 
Jaikiran Pai
Marshal
Pie
Posts: 10447
227
IntelliJ IDE Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
What's that file named? It's name should end with -service.xml. For example my-scheduler-service.xml.
 
Albis Gistenson
Greenhorn
Posts: 7
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Oh, Thanks You!
One more question.
How to write this task that will execute at 1:00 AM on the first day of every month? If it possible..
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic