Can a batch job pass back its completion results to Wicket session?

2013-02-26 Thread Nigel Sheridan-Smith
Hi all, I'm hooking up a data import batch job with Quartz to Wicket and have struck an issue - how do you notify a Wicket page that the batch job is complete? I originally planned to update the Wicket session with the running count of how many items are processed. However, the Wicket request

Re: Can a batch job pass back its completion results to Wicket session?

2013-02-26 Thread Paul Bors
I would look at Observable and Observer class in java to achieve signal sort of behavior. On Tue, Feb 26, 2013 at 5:47 PM, Nigel Sheridan-Smith wtfi...@gmail.comwrote: Hi all, I'm hooking up a data import batch job with Quartz to Wicket and have struck an issue - how do you notify a Wicket

Re: Can a batch job pass back its completion results to Wicket session?

2013-02-26 Thread Ernesto Reinaldo Barreiro
Hi, I remember I have done this by creating a class that serves a progress watching context and sharing an instance of this class between Wicket Session (or a page or component) and the quartz job. This class acted as a wire to pass information between the two threads (e.g. progress, cancel the

Re: Can a batch job pass back its completion results to Wicket session?

2013-02-26 Thread Nigel Sheridan-Smith
Thanks Paul and Ernesto, After much stuffing around, I managed to get this to work: modifying the JobDataMap within the Quartz job. However, you must re-publish the map after it has been changed, as Quartz serializes it and doesn't update it until after the job finishes executing. You might also

Re: Can a batch job pass back its completion results to Wicket session?

2013-02-26 Thread Ernesto Reinaldo Barreiro
Hi, On Wed, Feb 27, 2013 at 7:32 AM, Nigel Sheridan-Smith wtfi...@gmail.comwrote: Thanks Paul and Ernesto, After much stuffing around, I managed to get this to work: modifying the JobDataMap within the Quartz job. However, you must re-publish the map after it has been changed, as Quartz