I need to run a heavy task and the time span may vary from 10 mins to 4 hours.
I am using jboss-5.1.0.GA with JDK 6. I found in the net that org.jboss.ejb3.asynchronous.Asynch.getAsynchronousProxy is a good way to call methods asynchronously.
While writing the code, I could easily import org.jboss.ejb3.asynchronous.Asynch in the developer studio, but while running the server after deployment the server is throwing NoClassDefFoundError.
Where can I get this class and where to put that?
Need help urgently
That was a JBoss specific extension to EJB3.0 and that class has been moved. Here's a tutorial on how it is done in JBoss AS-5.1.0 http://www.jboss.org/file-access/default/members/jbossejb3/freezone/docs/tutorial/1.0.7/html/Asynchronous_Invocations.html
The entire docs/tutorial and the source code for the tutorial is available here http://www.jboss.org/ejb3/docs/