wood burning stoves 2.0*
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: 9963
    
163

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..
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
 
subject: JBoss script
 
Similar Threads
Jboss scheduler deploy is giving NullPointerException in Linux, works fine in Windows
How do I schedule a JBoss task?
Monitoring jboss
Schedular service
How do I run multiple schedules in JBoss 4.0.5?