Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
[gemini-dev] Different jpa persistence bundles in same transaction

Hi,

i now, that jpa entities from a persistent bundle must not become used in a entity manager from a different bundle.


So
i try to figure out a way to persist entities from different persistent bundles in the same transaction. Even if they are using different entity manager.
Eg:

txn.begin
modul1.persist(someBean)
module2.persist(someBean)
txn.rollback // will rollback modul1 and module2


1) Would OSGi JTA specification handle that stuff properly?
2) Can i use gemini JPA and apache aries JTA together?


Thanks a lot for your answers.


-- 
Mit besten Grüßen
Florian Pirchner
Fohlenweg 22
2301 Probstdorf
Tel: +43 650 7772338
florian.pirchner@xxxxxxxxx

Back to the top