If you look in your server/default/deploy/scheduler-service.xml you'll see the two 
ways in which you can set up a scheduled task.

The quickest way is to implement the first method. In the declaration you'll notice 
that it references org.jboss.varia.scheduler.example.SchedulableExample - if you look 
at the source code for that class you'll see how to do yours.

This method will lock you in to JBoss so if you really need portability then this may 
not help you. The second method will make your code more portable but requires writing 
your own MBean - this is how I prefer to do them. (I think portability is the only 
difference between the two)

<a 
href="http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3826118#3826118";>View 
the original post</a>

<a 
href="http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3826118>Reply 
to the post</a>


-------------------------------------------------------
This SF.Net email is sponsored by: IBM Linux Tutorials
Free Linux tutorial presented by Daniel Robbins, President and CEO of
GenToo technologies. Learn everything from fundamentals to system
administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click
_______________________________________________
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user

Reply via email to