File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
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

JBoss script

Albis Gistenson

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"?>
<mbean code="org.jboss.varia.scheduler.Scheduler" name=":service=Scheduler, schedule=ScheesProcessor">
<attribute name="StartAtStartup">true</attribute>
<attribute name="SchedulableClass"></attribute>
<attribute name="InitialStartDate">NOW</attribute>
<attribute name="SchedulePeriod">500</attribute>
<attribute name="InitialRepetitions">10</attribute>
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 from another class, all works fine.
Thanks you!
Jaikiran Pai

Joined: Jul 20, 2005
Posts: 10441

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

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..
I agree. Here's the link:
subject: JBoss script
jQuery in Action, 3rd edition