• Post Reply Bookmark Topic Watch Topic
  • New Topic

Batch Processes  RSS feed

 
Thara Visu
Ranch Hand
Posts: 87
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi all,
There is a requirement to run a java batch program in the same container as the application. What are the ways to do this?

I am not sure if this is the correct forum to place this question.

All your inputs will be of great help. Thanks in advance.
 
Jeroen T Wenting
Ranch Hand
Posts: 1847
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
One way is to implement a servlet that starts a background thread which in turn runs the application code.
That works well, and could be made pluggable so you can configure it to run different programs at different times.

Another way might be an EJB which runs the program in-process, but that will work only if the program you want to run is singlethreaded (as EJB doesn't allow for multithreading).
 
Thara Visu
Ranch Hand
Posts: 87
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks Jeroen. Actually the problem is scheduling such a batch process. We need to use a scheduler called the Control-M. Does this have a facility of scheduling EJBs? If yes, how?
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!