[weld-dev] ARQ-518 - Support @PersistenceContext injection in weld-ee mock container

Aslak Knutsen aslak at 4fs.no
Mon Jul 18 07:01:11 EDT 2011


Heya

Michal has a branch of the Arquillian Weld EE Mock Containers where he
has implemented a v. of JPAInjectionService that can handle simple
creation of PersistenceContext using
Persistence.createEntityManagerFactory()

https://github.com/arquillian/arquillian-container-weld/pull/1

This could open up for some easy / lightweight cdi + jpa testing.

Simply using @PersistenceContext in your CDI Beans.

Is this useful as is, or is it to 'risky' without
TransactionManagement support etc etc etc..

wdyt?

-aslak-


More information about the weld-dev mailing list