• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

ConcurrentAccessException thrown from a singleton bean?

 
Himai Minh
Ranch Hand
Posts: 1359
7
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
On Frit's notes p. 58 or the Java API,
ConcurrentAccessException indicates that the client has attempted an invocation on a stateful session bean or singleton session bean while another invocation is in progress and such concurrent access is not allowed
.

According to the Oracle J2EE tutorial , https://docs.oracle.com/cd/E19798-01/821-1841/gipsz/index.html

Singleton session beans are designed for concurrent access, situations in which many clients need to access a single instance of a session bean at the same time. A singleton’s client needs only a reference to a singleton in order to invoke any business methods exposed by the singleton and doesn’t need to worry about any other clients that may be simultaneously invoking business methods on the same singleton.


Why concurrent access is not allowed and throws ConcurrentAccessException ?
 
Himai Minh
Ranch Hand
Posts: 1359
7
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic