The idea is to provide more sphistications in the demo web application for the J2EE connector.
We could make the code of the tasks more dynamic, and modifiable by the user. This could be done by having the tasks execute a dynamic script (Groovy, JavaScript, etc...), and providing an editor so they can modify the script before submtting the job.

In fact, this can also be done with actual java code, which can be compiled
on the fly using the javax.tools APIs (Java 6.0 and later).
I implemented an API to use this easily, see SVN trunk revision 2014