Encoded scheduler-service.xml....

<?xml version="1.0" encoding="UTF-8"?>
  | <!-- $Id: scheduler-service.xml,v 1.4.2.2 2003/10/13 12:31:03 starksm Exp $ 
-->
  | 
  | <server>
  | 
  |   <!-- ==================================================================== 
-->
  |   <!-- Scheduler Service                                                    
-->
  |   <!-- ==================================================================== 
-->
  | 
  |   <classpath codebase="lib" archives="SchedClient.jar"/>
  | 
  |   <mbean code="org.jboss.varia.scheduler.Scheduler" 
name="jboss.util:service=Scheduler,type=ScheduleClient">
  |         <attribute name="StartAtStartup">true</attribute>
  |         <attribute 
name="SchedulableClass">schedclient.SchedulerClient</attribute>
  |         <attribute name="SchedulableArguments" />
  |         <attribute name="SchedulableArgumentTypes" />
  |         <attribute name="InitialStartDate">NOW</attribute>
  |         <attribute name="SchedulePeriod">3600000</attribute>
  |         <attribute name="InitialRepetitions">-1</attribute>
  |         
<depends>jboss.j2ee:jndiName=comp/env/ejb/availabilityEngine,service=EJB</depends>
  |   </mbean>
  | 
  |   <!--
  |      | This example shows how to use a pluggable Schedulable impl
  | 
  |   <mbean code="org.jboss.varia.scheduler.Scheduler"
  |          name=":service=Scheduler">
  |     <attribute name="StartAtStartup">true</attribute>
  |     <attribute 
name="SchedulableClass">org.jboss.varia.scheduler.example.SchedulableExample</attribute>
  |     <attribute name="SchedulableArguments">Schedulabe Test,12345</attribute>
  |     <attribute 
name="SchedulableArgumentTypes">java.lang.String,int</attribute>
  |     <attribute name="InitialStartDate">0</attribute>
  |     <attribute name="SchedulePeriod">10000</attribute>
  |     <attribute name="InitialRepetitions">-1</attribute>
  |   </mbean>
  | 
  |   -->
  | 
  |   <!--
  |      | This example shows how to use a target MBean
  | 
  |   <mbean code="org.jboss.varia.scheduler.example.SchedulableMBeanExample"
  |          name=":name=SchedulableMBeanExample">
  |   </mbean>
  |   <mbean code="org.jboss.varia.scheduler.Scheduler"
  |          name=":service=Scheduler,name=SchedulableMBeanExample">
  |     <attribute name="StartAtStartup">true</attribute>
  |     <attribute 
name="SchedulableMBean">:name=SchedulableMBeanExample</attribute>
  |     <attribute name="SchedulableMBeanMethod">hit( NOTIFICATION, DATE, 
REPETITIONS, SCHEDULER_NAME, java.lang.String )</attribute>
  |     <attribute name="InitialStartDate">NOW</attribute>
  |     <attribute name="SchedulePeriod">10000</attribute>
  |     <attribute name="InitialRepetitions">10</attribute>
  |   </mbean>
  | 
  |   -->
  | 
  | </server>

View the original post : 
http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3859724#3859724

Reply to the post : 
http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3859724


-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now. 
http://productguide.itmanagersjournal.com/
_______________________________________________
JBoss-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/jboss-user

Reply via email to