I am very happy with jbatch aka batchee. 

Skickat från min iPhone

> 18 apr 2015 kl. 16:36 skrev Lars-Fredrik Smedberg <itsme...@gmail.com>:
> 
> Hi
> 
> I need to run a background task that will poll messages from a
> BlockingQueue, aggregate data (to some degree) and at regular intervals
> write the data to a file (append to a file).
> 
> Each appserver instance will write to its own file so there is no need to
> sync within a cluster or similar...
> 
> I guess I could at startup create my own thread and peek the queue etc...
> but if I would keep it more strict Java EE 6 and also need access to
> @ApplicationScoped beans then I guess I could either use a one-off
> programmatic EJB timer or calling an @Asynchronous EJB methos
> (started/called from a @Singleton @Startup... EJB).
> 
> What is the preferred approach you would use?
> 
> Regards
> LF

Reply via email to