users@glassfish.java.net

EJB Concept

From: <glassfish_at_javadesktop.org>
Date: Tue, 26 Aug 2008 00:09:57 PDT

I have a simple requirement where:

1)User clicks a link -- servlet is called -- it has to start a process or call a method
      
      This method which is called, it is doing lot of i/o + processing which can span over 1 hr

2)When user refreshes the link -- servlet gets called again and it should show that the previous call is still running.

3) when the method finishes the page should show that the method is over and the link should be available to start the same method again.

I am confused how this method should be made --- Session (Stateless) Bean or Timer Bean of Message Bean.
The method call should be independent of the users.Once someone has called this method.Everyone should see that the method is running in background.
Even if the first user logs out, the method should still keep running.

Please help.

Thanks and Best Regards
Suyog
[Message sent by forum member 'suyogbarve' (suyogbarve)]

http://forums.java.net/jive/thread.jspa?messageID=295276