Posts tagged server push
ADF Faces: Handle task in background process and show real time progress indicator for asynchronous job using Server Push in ADF6
Recently I received an email from Peru. An ADF developer from Peru was facing a challenge with ADF. In short: ‘the upload of a (large) file should be followed by a potentially long running job. Ideally, the browser would not freeze while the uploaded file is processed and on top of that it would be great to report the progress of the job to the user’.
I like this kind of challenge, especially since I consider both asynchronous processing and server push two of my areas of interest. So I took on the challenge and tried a quickly put together an application that demonstrates this behavior.
This article discusses how I used standard Java concurrency functionality to take the job off line (in a scheduled, background job) and how I leveraged Active Data Service in ADF Faces to have the background job report its progress through an active bean and server push to the browser.
After the user kicks off the job by pushing a button:
the user will be in control again (synchronous but background parrtial request completes) and and will also be informed on the job’s progress through the server push:
In this example, the job progress in steps of 10% that take between 2 and 4 seconds. As soon More >