I solve my problem. I find how to do that. I leave here my solution, because 
this could help other people.

1- Create a session bean that implements Schedulable.
2- Implements the method "perform" and put there the code to be executed by 
Scheduler
3- create a jboss-service.xml and put this file in a sar file. One extract of 
Jboss-service.xml:
 <!--
  |      | This example shows how to use a pluggable Schedulable impl
  |      -->
  |   <mbean code="org.jboss.varia.scheduler.Scheduler" 
name=":service=JbossClientCentralServerSendMessagesScheduler">
  |     <attribute name="StartAtStartup">true</attribute>
  |     <attribute 
name="SchedulableClass">pt.link.clientCentralServer.businessLogic.session.CaptureInformationClientFacadeSession</attribute>
  |     <attribute name="InitialStartDate">NOW</attribute>
  |     <attribute name="SchedulePeriod">2000</attribute>
  | <!--    <attribute name="SchedulePeriod">2000</attribute>-->
  |     <attribute name="InitialRepetitions">-1</attribute>
  |   </mbean>



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

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


-------------------------------------------------------
SF.Net email is sponsored by: Discover Easy Linux Migration Strategies
from IBM. Find simple to follow Roadmaps, straightforward articles,
informative Webcasts and more! Get everything you need to get up to
speed, fast. http://ads.osdn.com/?ad_id=7477&alloc_id=16492&op=click
_______________________________________________
JBoss-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/jboss-user

Reply via email to