Here is an extremely high level overview
JavaBeans (all Java) is a high-level program, and really it works more like a scripting language.
You will code a page/program and when the user calls it the Java Server will catch the call, pull the file, comile and process it as needed and then send to the user the finished product.