users@glassfish.java.net

SessionContext: inherently thread safe? Even in BMC Singleton?

From: Laird Nelson <ljnelson_at_gmail.com>
Date: Sun, 19 Aug 2012 21:38:01 -0700

Suppose I have a @Singleton session bean with a @Resource-injected
SessionContext. Suppose further my @Singleton session bean is annotated
with @ConcurrencyManagement(ConcurrencyManagementType.BEAN).

Must I synchronize access to the injected SessionContext? Or is it
inherently threadsafe?

In case it matters at all (I doubt it) I'm interested in calling the
getBusinessObject(Class) method only.

(For more background feel free to see
http://stackoverflow.com/questions/12028144/is-a-javax-ejb-sessioncontext-injected-into-a-bean-managed-concurrency-singleton,
http://ljnelson.posterous.com/java-ee-compatible-abstractexecutorservice-imand
http://ljnelson.posterous.com/java-ee-compatible-abstractexecutorservice-im-6803
.)

Thanks in advance for any help you can provide.

Best,
Laird

--
http://about.me/lairdnelson