Thanks for the advice CubaBean! I'm going to take a couple of steps back and re-evaluate the problem. Try not to make things so complicated.

But I think I'm going to go with your first idea, and invoke the process in java throught the URL(www.website.com?Action=Start). That way I don't have to recode the modules in Website.