Hi,
I am trying to use the scheduler.
I look into the Timer/Scheduler howto and created two files : a class that hold the job to do in a perform() method and a scheduler-service.xml that containts the following text :
<?xml version="1.0" encoding="UTF-8"?> <!DOCTYPE server> <!-- $Id: scheduler-service.xml,v 1.4 2002/06/01 02:06:46 starksm Exp $ -->
<server> <classpath codebase="lib" archives="scheduler-plugin.jar, scheduler-plugin-example.jar"/>
<!-- ==================================================================== -->
<!-- Scheduler Service -->
<!-- ==================================================================== -->
<mbean code="org.jboss.varia.scheduler.Scheduler" name=":service=Scheduler"> <attribute name="StartAtStartup">true</attribute> <attribute name="SchedulableClass">scheduler.struts.Notifier</attribute> <attribute name="SchedulableArguments"></attribute> <attribute name="SchedulableArgumentTypes"></attribute> <attribute name="InitialStartDate">06/11/2003 00:10</attribute> <attribute name="SchedulePeriod">86400000</attribute> <attribute name="InitialRepetitions">-1</attribute> </mbean>
</server>
I package the whole in a file with the following structue : - scheduler ---- struts --------Notifier.class - META-INF ---- scheduler-service.xml
If I pack it in a SAR file, JBoss complains that it did not finf a jboss-service.xml file
If I pack it in a JAR file, I got a bunch of exception like :
Try to rename your xml decriptor to jboss-service.xml.
-marek
------------------------------------------------------- This SF.net email is sponsored by: Etnus, makers of TotalView, The best thread debugger on the planet. Designed with thread debugging features you've never dreamed of, try TotalView 6 free at www.etnus.com. _______________________________________________ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
