-
1. Re: Progressbar not displayed
ilya_shaikovsky Dec 18, 2008 9:39 AM (in response to toomtooms)works just as you designed. Because in your case the request takes all the processing of long running operation inside itself. So after response comes - progress not needed anymore.
request which should activate progress should run the process in separate thread for example. -
2. Re: Progressbar not displayed
dietice Dec 19, 2008 12:43 PM (in response to toomtooms)ilya_shaikovsky, You are correct. It works as designed. But how do you make the progress bar work in a method that takes a long time?
The progress bar waits for the method to return! Once the method returns processing is already completed - then you don't see a progress bar.
Does anyone know how to get this example to work?
J. -
3. Re: Progressbar not displayed
ilya_shaikovsky Dec 20, 2008 6:02 AM (in response to toomtooms)Just run new thread in your method which will perform this operation. Your long running operation should not keeps the request, which was sent to start the operation, all the time. Something like defined in our richfaces demo push example but adopted to your case.
-
4. Re: Progressbar not displayed
dietice Jan 13, 2009 4:06 PM (in response to toomtooms)The solution to the problem was to have the servlet, or backing bean, issue an asynchronous request to the EJB layer via MQ (this is a std pattern). Hence the web request does not wait for the EJB layer to finish processing.
Hope this helps.