title: Launching Spring batch job
body: <p>I have a problem where in I need to receive a series of messages from an MQ queue and write this to a file and initiate a spring batch job with the file as input. Right now I'm thinking of launching the job with wired <code>@Autowired JobLauncher jobLauncher and  @Autowired Job job;</code> from the MDB itself.But I feel this is not a good approach as spring batch may create a series of threads and EJB as such doesnt support multi threading. </p>
  
  <p>Is there any other effective way to do this ?  I dont want to use quartz scheduler or anything else since it adds complexity. Is there any interface in spring batch itself which launches a job soon after a file comes in a directory ? Any leads in doing this better would be appreciated.</p>
  
  <p>Thanks.</p>