Spring Batch and other uncharted water

Spring's new module - Spring Batch, a much needed module.

Besides the usual web container, ejb container, there are other ways to deploy apps. Batch, Grid, and JMS, besides a simple main() or an ANT task, are other common options. There are several concerns together, one is the deployment, another is the messaging, and the third one, not the last one, is the error handling.

  • Deployment: There are just so much similarities in batches, and yet, not until now, someone takes the charge on abstracting this out to a container. Good job, Spring. Even just the batch abstraction is surely a big improvement. If Spring guys can unite the front with GRID, it's even better.
  • Messaging: Most of the batch processes have a different way to communicate with callers, could be an asynchronous call, could leave the results in a file, than ordinary API calls. However, from the caller's perspective, it's just a plain call - get the result. This is common for all messagings. How can we abstract the common behaviors? What are they specifically?
  • Error handling: I personally think this is the hardest part because JDK lacks of support on this. The basic scenario is that in certain cases when errors happen, the batch should record the errors somewhere and keeps going. A twist is how we could propagate the record errors  in different threads.

Spring 2.1 is near.
  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值