Hi,
On Thu, Apr 4, 2013 at 4:39 AM, Bruno Moura <brunormo...@gmail.com> wrote: > I'm implementing an application to register the duration of different tasks > that could be happen in parallel. Each of them can be launched by an user > using a web application/interface and for each one there is a javascript > counter that allow user to see the time progress for the task launched by > him/her. For me it's important to store only the start and the end of each > task in the database in timestamp format. > > User view > > [image: UserView] > > I need to discover the best approach to keep all tasks timers counters in > the back end and display all of them for a specific user with admin > privileges in a view like a grid or dashboard with the progress for all > tasks of all users that have started one in real time. > > Admin view > > [image: enter image description here] > > I'm using scala and wicket mainly for development. Considering this > information, someone knows a way or libraries that could help to implement > this feature? > You can implement your own data structure of tasks per user (http session) and keep it in the application metadata, i.e. application scope. E.g. a Map[String, Seq[Task]] - a map with key the session id and value a sequence of tasks. A task can use a Promise/Future to do the work and check whether it is finished or not. > > Thanks! > > Bruno Moura > -- Martin Grigorov jWeekend Training, Consulting, Development http://jWeekend.com <http://jweekend.com/>