title: long processing jobs in a java web app
body: <p>What is the best way to perform long tasks (triggered by a user and for that user only) in a java web app? I tried using ejb @Asynchronous and jax-ws asynchronous (polling) calls but the Future&lt;?&gt; they are returning is not serializable and could not be stored in HttpSession (to retrieve the result later when it's done). Is there a simple way to use concurrent Future&lt;?&gt; in a java web environment or do I have to go with a full-blown jobs management framework?</p>