gillo (1) [Avatar] Offline
#1
Please i want to know whether it's possible to integrate Spring Batch in an application Server like JBoss for example.

Thanks
arnaud.cogoluegnes (73) [Avatar] Offline
#2
Re: Spring Batch in an application server
It is possible, as Spring Batch can run wherever Spring runs. So you can embed Spring Batch in a web application and deploy it in any application server or web container. The book covers this topic.

BTW, this forum is dedicated to the Spring Batch in Action book. You should ask this kind of questions on the community forum: http://forum.springsource.org/forumdisplay.php?41-Batch

thanks for your interest in the book!

Arnaud
rapt (2) [Avatar] Offline
#3
Re: Spring Batch in an application server
I look at the book, 4.4 Launching from a web application -

You talk about three files there:

batch-infrastructure.xml
batch-jobs.xml
scheduling.xml

but where is the code for these files? I can neither see it in the book nor the source code for chapter 4.
arnaud.cogoluegnes (73) [Avatar] Offline
#4
Re: Spring Batch in an application server
rapt (2) [Avatar] Offline
#5
Re: Spring Batch in an application server
Thank you!
rmma (1) [Avatar] Offline
#6
Re: Spring Batch in an application server
Hi, Im trying to embed Spring Batch inside a web application so jobs can be triggered trough http requests. Watching the book's code I notice there's a parent project and children projects (a child per chapter).

So to do what Im intending to do, do i need to create a parent project to my batch project or just do something similar like ch04 child project?

Sorry for the beginner question.
arnaud.cogoluegnes (73) [Avatar] Offline
#7
Re: Spring Batch in an application server
Using modules/sub-projects isn't a requirement. We chose this in the code samples to centralize dependencies, versions, etc, in the POM of the parent module. This is up to you to choose whether you use modules or not in your own projects.