Re: What is the proper way to start a secondary process in Wicket 6

2014-11-22 Thread Ernesto Reinaldo Barreiro
Warren, Something like: ExecutorService executorService = new ThreadPoolExecutor(10, 10, 0L, TimeUnit.MILLISECONDS, new LinkedBlockingQueueRunnable()) { @Override protected void beforeExecute(final Thread t, final Runnable r) {

Re: What is the proper way to start a secondary process in Wicket 6

2014-11-22 Thread Ernesto Reinaldo Barreiro
pushed a new version including injecting a Guice managed service class On Sat, Nov 22, 2014 at 8:08 PM, Ernesto Reinaldo Barreiro reier...@gmail.com wrote: Warren, Something like: ExecutorService executorService = new ThreadPoolExecutor(10, 10, 0L, TimeUnit.MILLISECONDS,

Auto-reloading markup during development

2014-11-22 Thread mscoon
Hi all, Is it possible to set wicket to reload markup and other resources during development so that one does not need to redeploy-restart the server in order to see their changes? I have figured out how to do the equivalent for changes in java code using DCEVM but I can't seem to make it work

Re: What is the proper way to start a secondary process in Wicket 6

2014-11-22 Thread Warren Bell
Ernesto, That’s kind of what I ended up doing except with a different ThreadPoolExecutor implementation. ExecutorService executorService = new ScheduledThreadPoolExecutor(20) { @Override protected void beforeExecute(Thread t, Runnable r) {

Re: What is the proper way to start a secondary process in Wicket 6

2014-11-22 Thread Ernesto Reinaldo Barreiro
Warren, ThreadContext.detach(); seems to be more proper than... ThreadContext.setApplication(null); I will update demo. On Sat, Nov 22, 2014 at 10:58 PM, Warren Bell warrenbe...@gmail.com wrote: Ernesto, That’s kind of what I ended up doing except with a different ThreadPoolExecutor