I need some help in determining the best way to accomplish a task.
There is an existing jar application that was designed and meant to run as a batch process daily. Now we need to run this process when certain changes are made from within an existing GUI (WAR).
I have changed the jar main method to simply accept the args[] and pass them to another method, thinking that I could import this jar into the GUI WAR and call this second method directly from a servlet.
When I try this in debug, the GUI cannot find the method from the jar even though the jar has been added to the libraries using the build path (in Eclipse).
I have used methods from jars before but never one that I have set up myself. Am I doing the right thing here? Can you help me get this to work or design a better solution?