(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.


How to read this? Site locks me out by requesting a "registered reader" email address ...


Posted by Jan on July 13, 2012 at 03:07 PM CEST #

Thank you for the article, very informative and objective.

Posted by Melissa Villela on July 26, 2012 at 07: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.



Posted by John Prekezes on March 29, 2013 at 07:34 PM CET #

The article is not available. Could you post a copy?

Posted by Aleksandr on November 13, 2016 at 08:18 PM CET #

Post a Comment:
  • HTML Syntax: NOT allowed
...the last 150 posts
...the last 10 comments