We are considering use of Spring Batch for an application that consists of two parts: web application and batch processing. There are some services common to both. Batch jobs can be triggered by korn scripts.
Web application will be a standard component. I think that both parts should run in separate JVMs. In that case, how to share services between these two applications? Exposing as a web service or an EJB - is that correct? Or is there a better way? I am very new to Spring Batch framework..