Hi all,
I've a problem deployng e scheduler jar.
I've build an EAR with a JAR inside with a Class descending from org.jboss.varia.scheduler.Schedulable.
I've put a jboss-service.xml file under the META-INF folder og the jar.
When I copy the EAR file to the deploy folder of the Server nothing happens, the scheduler class doesn't deploy.
Following the EAR file structure:
SCNJobManager.jar
SCNHibernate.jar
...
...
META-INF
MANIFEST.MF
jboss-app.xml
application.xml
Following the jboss-app.xml:
[module]
[service]SCNJobManager.jar[/service]
[/module]
Following the SCNJobManager.jar structure:
META-INF
MANIFEST.MF
jboss-service.xml
it/siav/scn/service/jobmanager/
JobManager.class
Following the jboss-service.xml file
[?xml version="1.0" encoding="UTF-8"?]
[server]
[mbean code="org.jboss.varia.scheduler.Scheduler"
name="SCNService:service=Scheduler,name=SCNJobManager"]
[attribute name="SchedulableMBean"]SCNService:name=SCNJobManager[/attribute]
[attribute name="StartAtStartup"]true[/attribute]
[attribute name="SchedulableClass"]it.siav.scn.service.jobmanager.JobManager[/attribute]
[attribute name="InitialStartDate"]NOW[/attribute]
[attribute name="SchedulePeriod"]10000[/attribute]
[attribute name="InitialRepetitions"]-1[/attribute]
[attribute name="FixedRate"]true[/attribute]
[/mbean]
[/server]
Please Help.