[weld-dev] persistence and transactions outside Java EE

Pete Muir pmuir at redhat.com
Mon Nov 30 07:42:23 EST 2009


On 26 Nov 2009, at 17:10, Dan Allen wrote:

> On Wed, Nov 25, 2009 at 8:04 AM, Pete Muir <pmuir at redhat.com> wrote:
> 
> On 24 Nov 2009, at 20:47, Gavin King wrote:
> 
> > Dan, managed beans already support PC injection. I have to check, but I think they can even inject a UT. The only thing they don't have is declarative tx management.
> 
> This certainly works in JBoss AS right now.
> 
> Yes. But I think what we were discussion is whether this can be done outside of Java EE (which is the topic of this thread). Or, should Java EE support a lighter-weight option that does not require EJB lite (in the same way that JPA does not require a container).

It's is also trivial to support injecting the UT in another container, assuming Weld knows how to get hold of the UT / TM in some fashion (e.g. a JNDI lookup, some static singleton, some container specific hook into the ServletContext etc.)

The hard part is not making Weld do the injection, but actually getting the TX support into the container in the first place.


More information about the weld-dev mailing list