[webbeans-dev] @PersistenceContext

Pete Muir pmuir at redhat.com
Mon Jan 5 13:32:29 EST 2009


I added http://anonsvn.jboss.org/repos/webbeans/ri/trunk/webbeans-ri-spi/src/main/java/org/jboss/webbeans/ejb/spi/EjbResolver.java 
  and http://anonsvn.jboss.org/repos/webbeans/ri/trunk/webbeans-ri-spi/src/main/java/org/jboss/webbeans/ejb/spi/JpaResolver.java 
  as a first stab at such an SPI.

On 5 Jan 2009, at 03:56, Andrew Lee Rubinger wrote:

> I believe you want:
>
> http://anonsvn.jboss.org/repos/jbossas/projects/jpa/trunk/deployers/src/main/java/org/jboss/jpa/resolvers/PersistenceUnitDependencyResolver.java
>
> ?
>
> For @EJB I install the resolver impl instance into MC, so it can be  
> injected.  Probably you want to do something similar here?
>
> S,
> ALR
>
> Pete Muir wrote:
>> Add ALR to the discussion.
>> Andy, is this possible today with JBoss EJB3? I'll ping you about  
>> this sometime this week if possible. We will need a similar  
>> abstraction as EjbDescriptor does for listing out Ejbs in the  
>> application so we don't depend on a JBoss API - we can base it on  
>> whatever API you expose.
>> On 27 Dec 2008, at 13:15, Gavin King wrote:
>>> One thing I've noticed is that it's pretty hard for people to start
>>> using web beans to build applications without the  
>>> @PersistenceContext
>>> annotation.
>>>
>>> So I guess we should get onto the AS team about exposing an API to
>>> perform injection via @PersistenceContext, @Resource and @EJB. (Of
>>> these, @PersistenceContext is easily the most important.)
>>>
>>> -- 
>>> Gavin King
>>> gavin.king at gmail.com
>>> http://in.relation.to/Bloggers/Gavin
>>> http://hibernate.org
>>> http://seamframework.org
>>> _______________________________________________
>>> webbeans-dev mailing list
>>> webbeans-dev at lists.jboss.org
>>> https://lists.jboss.org/mailman/listinfo/webbeans-dev
>
> -- 
> Andrew Lee Rubinger
> Sr. Software Engineer
> JBoss, a division of Red Hat, Inc.
> http://exitcondition.alrubinger.com




More information about the weld-dev mailing list