jsr342-experts@javaee-spec.java.net

[jsr342-experts] Fwd: [jsr338-experts] Integration of EntityListeners Classes with CDI (Java EE 7)

From: Werner Keil <werner.keil_at_gmail.com>
Date: Tue, 21 Jun 2011 19:18:54 +0530

Forwarding it to other aliases and Pete (although there must be a CDI 1.1
alias by now, too[?])

---------- Forwarded message ----------
From: Adam Bien <abien_at_adam-bien.com>
Date: Tue, Jun 21, 2011 at 5:48 PM
Subject: [jsr338-experts] Integration of EntityListeners Classes with CDI
(Java EE 7)
To: jsr338-experts_at_jpa-spec.java.net


Hi *

EntityListeners should be integrated with CDI / EJB 3.2. It means: Java EE 7
DI should work in EntityListener classes. An EntityListener could be
annotated with @Singleton / @Stateless / @RequestScoped etc. (everything
what is stateless)

We should extend the sentence: "Entity listeners are stateless. The
lifecycle of an entity listener is unspecified" at the page 95 of the Expert
Group Draft 2. to "The lifecycle of an entity listener is unspecified in
unmanaged environments. An EJB 3.2 @Stateless, @Singleton or CDI managed
bean can also receive callback events",

What do you think?

adam



-- 
 Werner Keil | UOMo Lead | Eclipse Foundation | Agile Coach, Principal
Consultant | *emergn* limited
590 Madison Avenue. New York. NY 10022 | 68 Lombard Street. London EC3V 9LJ
UK
US Toll Free:  +1-877.964.1981 | Worldwide Toll Free:  +800.225.53482
Twitter @wernerkeil | Skype: werner.keil | www.emergn.com | Reshaping IT



347.gif
(image/gif attachment: 347.gif)