This forum is now a read-only archive. All commenting, posting, registration services have been turned off. Those needing community support and/or wanting to ask questions should refer to the Tag/Forum map, and to http://spring.io/questions for a curated list of stackoverflow tags that Pivotal engineers, and the community, monitor.

starting point

Oct 16th, 2007, 01:18 PM

Hello batch people,
I need a little help to get really started, please bear with me as I am a complete beginner. I am using the maven 2 webApp archetype to build a skeleton. I have added the 3 dependencies that was specified on the batch site.

Now what I want to do is as follows:
1.) a application that runs a small task(eg, ping an IP) every 1h

Comment

I don't think pinging an IP address makes much sense as batch job (no need for transactions or restartability). If the purpose is to get familiar with the framework on a simple example I would suggest to start with the sample jobs. Good first step towards real use is to create the schema in your database and configure samples to use the 'real' database instead of in-memory HSQL. This will allow you to see what is actually happening when you run a job.

Concerning Quartz integration, Spring offers good support so it is straightforward to do scheduling. You can use the BatchCommandLineLauncher to launch a batch job.

Comment

Robert,
thanks for the reply.
My aim is indeed to get more acquainted with the framework.
I believe your help will help me progress a little bit. I will post my new questions on the forum as they arise.

p.s I apologize if my questions sound silly, but I am just getting started and there are no books on Spring-Batch(as far as I know). They will get smarter as I learn more.