We build a project with Java and Mathematica technologies. For this project we have written a bunch of functions in Mathematica and integrated some functions in one JSP file. In this way, we made four JSP files containing Mathematica code. These JSP (in which files Mathematica functions are integrated) files are linked and triggered by Java servlet's.
Note: for every request, Mathematica (four JSP) files should be run. We are using Mathematica for back-end computations purpose.
I have two Mathematica kernels, thus my question is:
How can I use these two kernels efficiently for processing requests?
I've never worked on more kernels than two, if anyone has some experience on that point please let me know.