# Defining a Job A Job Class
    public class PrintPropsJob implements Job {

    	public PrintPropsJob() {
    	}

    	public void execute(JobExecutionContext context)
    			throws JobExecutionException {

    		JobDataMap data = context.getJobDetail().getJobDataMap();
    		System.out.println("someProp = " + data.getString("someProp"));
    		System.out.println("someObjectProp = " + data.getObject("someObjectProp"));
    	}

    }
Defining a Job Instance
    // Define job instance
    JobDetail job = new JobDetail("job1", "group1", MyJobClass.class);
    job.getDataMap("someProp", "someValue");
    job.getDataMap("someObjectProp", someObjectValue);