Hi Craig,
Great!! Thanks again for the follow-up.
-Linda
On 7/25/2011 10:49 PM, Craig Ringer wrote:
> Hi all
>
> I've had a chance to go through this in more detail and write some standalone test code to make sure the proposed
> injection support will fit the needs of CDI apps. I haven't tried to modify EclipseLink or Hibernate to support
> injection yet; instead I've just written a simple standalone webapp that uses the CDI SPI to manually instantiate,
> inject, use and destroy beans to make sure the manually created beans can correctly see contextual instances of beans
> created by the container.
>
> It all works as expected. A bean manually instantiated using Bean.create(...) with a private CreationalContext may
> contain contextual references and those will be resolved as expected.
>
> A JPA entity listener created by the persistence provider using the same method will have access to managed beans in the
> invoking request and session scopes, which is what I think is needed. So I see no problem with using the CDI SPI to
> create and destroy listeners manually (as described by the proposal).
>
> The proposal sounds good to me. I'll see if I can persuade some more people to have a look.
>
> --
> Craig Ringer
>
>
>
> POST Newspapers
> 276 Onslow Rd, Shenton Park
> Ph: 08 9381 3088 Fax: 08 9388 2258
> ABN: 50 008 917 717
> http://www.postnewspapers.com.au/