Am 07.03.2012 16:54, schrieb jerome moliere:
c) using bytecode weaving it's (in theory at least) possible to make
this work without any blueprint and aries; though, the problem right
now will be (AFAIK) that there are no annotations for injecting the
entity manager and for transactions in aries right now which will make
this approach (at least for now) impossible.

yes , I just mentionned this point because JPA uses bytecode injection
massively....
I don't have other technical requirements for bytecode injection
You should be able to use the build time weaving instead. At least that works for me.

If you use jpa "by hand" I think it should work without blueprint.

Like this:
EntityManagerFactory emf = Persistence.createEntityManagerFactory("dispatcher");
        EntityManager em = emf.createEntityManager();
        EntityTransaction trans = em.getTransaction();
        trans.begin();

That means of course you have no nice abstractions for transaction management.

Christian

--
Christian Schneider
http://www.liquid-reality.de

Open Source Architect
Talend Application Integration Division http://www.talend.com


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to