users@ejb-spec.java.net

[ejb-spec users] Question reg Singleton Session Bean Concurrency

From: Abhishek Gupta <abhirockzz_at_gmail.com>
Date: Mon, 5 Jan 2015 20:30:53 +0530

Hello !

I have a question regarding the contents of
*Section 4.8.5 - Singleton Session Bean Concurrency *
The first couple of lines state that -
*[quote] From the client’s perspective, a singleton session bean always
supports concurrent access. In general, the client of a singleton session
bean does not have to concern itself with whether other clients might be
accessing the singleton session bean at the same time. [/quote] *
As a bean provider, one might choose to prevent concurrent access
altogether by using a combination of Container Managed Concurrency (
*ConcurrencyManagementType.CONTAINER*) and Write lock (*LockType.WRITE*).
The methods might continue to block until the client receives a
ConcurrentAccessTimeoutException.

*Question *- Is it correct to state that *[quote] From the client’s
perspective, a singleton session bean always supports concurrent
access[/quote]* when its obvious that there are valid ways of preventing
this at the bean provider level ?

Sorry if this sounds like a noob question, but the statement did not seem
very obvious at first glance - hence the query.

Regards
Abhishek