0 Replies Latest reply on Feb 17, 2004 5:50 PM by mbutler

    Deploying Scheduled Tasks referencing EJBs in Ear

    mbutler

      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 -->


      true
      your class here
      Schedulable Test,12345
      java.lang.String,int
      01/26/2004 10:05 AM
      86400000
      -1




      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.