jsr342-experts@javaee-spec.java.net

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

From: Linda DeMichiel <linda.demichiel_at_oracle.com>
Date: Tue, 21 Jun 2011 08:23:39 -0700

Please see Pete's response on the users list.

While this is an alignment issue we should consider, I'd like to first
get further input from the JPA expert group.

thanks,

-Linda


On 6/21/2011 6:48 AM, Werner Keil wrote:
> 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 <mailto: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 <mailto: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 <http://www.emergn.com/> | Reshaping IT
>
>