Adam Bien's Weblog
(Easy) Threading and Concurrency In Java EE 6 -- A Free Article
The article "Threading and Concurrency" discusses asynchronous processing and parallelization in Java EE with EJB 3.1 (@Asynchronous and timers), Servlets and even with a JCA connector implementation.
Posted at 11:11AM Jul 13, 2012 by Adam Bien in Real World Java EE Patterns - Rethinking Best Practices | Comments[3] | Views/Hits: 6046
NEW Workshop: "JPA, NoSQL, Caching, Grids and Distributed Caches with Java EE 7", May 7th, 2013, Airport Munich
A book about rethinking Java EE Patterns
Tweet Follow @AdamBien

How to read this? Site locks me out by requesting a "registered reader" email address ...
thanks!
Posted by Jan on July 13, 2012 at 01:07 PM CEST #
Thank you for the article, very informative and objective.
Posted by Melissa Villela on July 26, 2012 at 05:27 PM CEST #
Adam, thanks for the article. I'm new to CDI and I'm puzzled with concurrency issues that maybe (or maybe not) arise with the introduction of CDI in the EE container.
Had search the Google without finding any answer, so I'm bothering you with the following questions.
1. According to the servlet spec and literature, only the request object (HttpRequest) is thread-safe and operations on application scoped or session scoped objects should be synchronized. I was wondering if the same need arises from the use @SessionScope or @ApplicationScopedr beans in servlets.
2. The introduction of Singleton Session Beans introduced the Concurrency management in the container but I cannot see any provisions for concurrency in the CDI spec for @ApplicationScoped or @SessionScoped beans.
3. Seam documentation describes a @Synchronized annotation but I don't know if it's portable or recommended for use.
Thanks
John
Posted by John Prekezes on March 29, 2013 at 06:34 PM CET #