Issue 705 in google-guice: guice-persist: @Transactional does not work with multiple Persistence Units

20 views
Skip to first unread message

google...@googlecode.com

unread,
May 16, 2012, 8:32:26 PM5/16/12
to google-g...@googlegroups.com
Status: New
Owner: ----

New issue 705 by michael....@gmail.com: guice-persist: @Transactional does
not work with multiple Persistence Units
http://code.google.com/p/google-guice/issues/detail?id=705

When using multiple persistence units where you cannot make the
@Transactional annotation work without a n elaborate workaround involving
copying verbatim core source (JpaLocalTxnInterceptor) from guice-persist
into your project and then doing some very special bindings in your module.

The thread at
https://groups.google.com/forum/?fromgroups#!searchin/google-guice/@Transactional$20guice-persist$20not/google-guice/kbXr4k0N2QE/W_6VAvo5Mn0J
discusses the problem and workaround.

Reproduce by following the procedure described in
http://code.google.com/p/google-guice/wiki/GuicePersistMultiModules, then
applying the @Transaction annotation to a method that persists entities as
described in http://code.google.com/p/google-guice/wiki/Transactions

The intereceptor will not be called and the entity will not be saved.






google...@googlecode.com

unread,
Jun 14, 2013, 3:53:24 AM6/14/13
to google-g...@googlegroups.com

Comment #1 on issue 705 by bogdan.f...@3pillarglobal.com: guice-persist:
@Transactional does not work with multiple Persistence Units
http://code.google.com/p/google-guice/issues/detail?id=705

Is there any simple workaround?

--
You received this message because this project is configured to send all
issue notifications to this address.
You may adjust your notification preferences at:
https://code.google.com/hosting/settings

google...@googlecode.com

unread,
Jun 14, 2013, 10:37:40 AM6/14/13
to google-g...@googlegroups.com

Comment #2 on issue 705 by michael....@gmail.com: guice-persist:
@Transactional does not work with multiple Persistence Units
http://code.google.com/p/google-guice/issues/detail?id=705

The solution is to have one persistence unit per guice module.

google...@googlecode.com

unread,
Dec 20, 2013, 9:24:38 AM12/20/13
to google-g...@googlegroups.com
Updates:
Labels: Component-Persist

Comment #3 on issue 705 by sberlin: guice-persist: @Transactional does not
(No comment was entered for this change.)
Reply all
Reply to author
Forward
0 new messages