發表文章

目前顯示的是 3月, 2016的文章

Setup Scheduler Service on JBoss Application Server

 Step1). Create a directory somewhere in your file system like "/home/username/SchedulerDemo/SchedulerDemo". Step 2). Configure a scheduler mbean in jboss-server.xml or create a "myScheduler-service.xml" inside "/home/username/SchedulerDemo/SchedulerDemo" directory as following: xml version = "1.0" encoding = "UTF-8" ?> < server >      < mbean code = "org.jboss.varia.scheduler.Scheduler" name = "jboss.test:service=MyScheduler" >          < attribute name = "StartAtStartup" >true</ attribute >          < attribute name = "SchedulableClass" >test.MySchedulable</ attribute >          < attribute name = "SchedulableArguments" >MySchedulable,100</ attribute >          < attribute name = "SchedulableArgumentTypes" >java.lang.String,long</ attribute >          < attribute name = "InitialS