On Dec 8, 2007, at 6:25 AM, Jacek Laskowski wrote:

On Dec 8, 2007 9:14 AM, David Blevins <[EMAIL PROTECTED]> wrote:

It shows a Stateful bean using an EntityManager with EXTENDED
persistence type so the entities won't detach between calls to the
Stateful bean as they would if when using TRANSACTION (i.e. jta
scoped) persistence.

...or if using @Stateless. EXTENDED is applicable to @Stateful only.
One of the reasons @Stateful's so handy.

Exactly. Last night I added a validation JIRA on this exact thought too:

[OPENEJB-730] Validation: Attempted use of PersistenceContextType.EXTENDED by non-Stateful bean

Currently, we aren't checking that people are trying to use EXTENDED with Stateless. I tried it last night and the app totally deployed without a peep and just failed silently at runtime.

-David

Reply via email to