aspose file tools*
The moose likes JBoss/WildFly and the fly likes JBoss script Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Products » JBoss/WildFly
Bookmark "JBoss script" Watch "JBoss script" New topic
Author

JBoss script

Albis Gistenson
Greenhorn

Joined: Jun 10, 2013
Posts: 7
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

Joined: Jul 20, 2005
Posts: 10266
    
168

What's that file named? It's name should end with -service.xml. For example my-scheduler-service.xml.

[My Blog] [JavaRanch Journal]
Albis Gistenson
Greenhorn

Joined: Jun 10, 2013
Posts: 7
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..
 
Don't get me started about those stupid light bulbs.
 
subject: JBoss script