• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

spring batch

 
Ranch Hand
Posts: 41
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi,
I have a requirment where I need to monitor few log files. here is the requirment

Create a batch program that
1. Read system.out.logs of websphere server and pull some critical infrastructure specific error information for every fifteen minutes ( which is not logged in application logs)
2. write that information in a seperate file. current day file will be error1 , yesterday's will be error2 like that.
3. keep all the generated files for 2 weeks , if more than 2 weeks old files delete them

I am planning to write Java program using Spring Batch , is this good or do you guys think any aleternative scripting/tool will fit this requirement.
appreciate your help.
 
Ranch Hand
Posts: 124
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
is Spring batch for jdbc batch, you batch should be a shell-like standalone program.
ok I might be wrong, you can use Spring3.0 task-name space and Task annotation to instruct you business method to run everything certain periods.
 
vibeeshan kambli
Ranch Hand
Posts: 41
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
you are right , i am not doing any jdbc stuff here. Scheduler part is i am not worried.
As you said I look into Spring 3.0 but I would appreciate if somebody tells me is there any other direction for this requirement.
 
Consider Paul's rocket mass heater.
reply
    Bookmark Topic Watch Topic
  • New Topic