Domanda

I know that a Stateful EJB can be accessed concurrently by a particular client. The container is serializing the requests and execute them one after another.

The question is - can you set the EJB container to let the concurrent access to the SFSB?

I know that I have a @AccessTimeout which allows me to configure that the SFSB may be accessed at the same time more than once by the particular client. However, it allows me to specify that the concurrent access is not allowed at all or let the container serialize the requests.

Does the EJB specification forbids such thing? I know I can achieve concurrent access with the Singleton EJB using @ConcurrencyManagement, but I'm just curious if it's possible to set some vendor-specific configuration property to allow such behavior for SFSBs.

Thanks in advance!

È stato utile?

Soluzione

Just last month a JIRA issues was filed that proposes exactly this: http://java.net/jira/browse/EJB_SPEC-24

Altri suggerimenti

The EJB specification does not forbid vendor extensions, so in theory, a vendor could implement an extension to allow stateful session beans to be accessed concurrently. In practice, I'm not aware of any that allow that.

Autorizzato sotto: CC-BY-SA insieme a attribuzione
Non affiliato a StackOverflow
scroll top