View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3821895#3821895
Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3821895 To deploy a scheduled task in an ear in JBoss 3.2.1 Â 3.2.3 do the following 1) Create a sar file (for example timer.sar) which contains your jboss-service.xml file in its meta-inf directory. The sar is an archive file. <!-- Timer --> <mbean code="org.jboss.varia.scheduler.Scheduler" name=":service=SchedulerStart"> true your class here Schedulable Test,12345 java.lang.String,int 01/26/2004 10:05 AM 86400000 -1 <mbean code="org.jboss.varia.scheduler.Scheduler" name=":service=SchedulerContinue"> true your class here Schedulable Test,12345 java.lang.String,int 01/26/2004 03:30 PM 86400000 -1 2) Include the sar into the root level of your ear. 3) Include a file called jboss-app.xml into the meta-inf directory of the ear. It should look like this <jboss-app> timer.sar </jboss-app> Your scheduled tasks will now deploy with ear and after any EJBs that may need them. ------------------------------------------------------- SF.Net is sponsored by: Speed Start Your Linux Apps Now. Build and deploy apps & Web services for Linux with a free DVD software kit from IBM. Click Now! http://ads.osdn.com/?ad_id56&alloc_id438&op=click _______________________________________________ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
