experiment with Enterprice Java Beans. It allows to run background job on the back-end side.