How To Run Batch Jobs Manually

Run batch jobs using the BatchJobRunner

The BatchJobRunner can be used to run all or individual batch jobs.

To run all Batch Jobs

Add the parameter and value 'runAllBatchJobs', 'true' to the URL of the BatchJobRunner like so:


To run a single batch job, say, 'ApplyHolidayChangesTask', use the following pattern:


Run batch jobs on startup

This patch can be applied to allow batch jobs to run on application startup


To edit this file, look for "How To Run Batch Jobs On Startup" via a graphical WebDAV client, or /developers/wiki/run-batch-jobs-on-startup.patch via a command-line WebDAV client. I don't know why.

Related discussion:

JSP hack to run one or more batch jobs immediately

Save the following as CATALINA_HOME/webapps/mifos/run.jsp, then fetch http://localhost:8080/mifos/run.jsp .

<%@page import="org.mifos.framework.components.batchjobs.*"%>
<%@page import="org.mifos.framework.components.batchjobs.helpers.*"%>
class SimpleJob extends Thread {
    public void run() {
        MifosTask t = new GenerateMeetingsForCustomerAndSavingsTask(); = t.getClass().getName();;
new SimpleJob().start();
Started batch job.

When using the Eclipse WTP, the JSP page should be placed in application/target/mifos-webapp in the Mifos source tree.