Results 1 to 2 of 2

Thread: How is the ApplicationContext loaded?

  1. #1

    Default How is the ApplicationContext loaded?

    Hi,

    Just wondering how the ApplicationContext is loaded. Is some code of Spring Batch is doing something like creating an object of ClassPathXmlApplicationContextJobFactory or such to do so?

    Thanks

  2. #2
    Join Date
    Dec 2006
    Posts
    1,061

    Default

    Assuming you're running from the command line, that's exactly what happens:

    http://static.springsource.org/sprin...romCommandLine

    The CommandLineJobRunner will bootstrap the application context you specify as program arguments, get the Job and JobLauncher, and start the job with the parameters you passed in.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •