I'm a guice-persist newbie (a guice newbie in general to be
honest) and I need two datasources in my webapp. After following
this guide
http://blog.pandurangpatil.com/2012/10/mulitple-persistence-unit-with-guice.html
or, for sake of completeness, after trying those suggestions
myself and then copying and pasting the code from included
example, only to struggle against obsure guice exceptions, I
feel like fed up enough with guice-persist (heck it complains
about something in a PrivateModule I even deleted from the
project, then cleaned and rebuilt all, searched for that PM
.java and .class files on the filesystem, deleted them,
clean&build, stop tomcat, reboot, and so on, and it still
pretends that that no-more-existing PM is doing something
wrong).
I'm willing to try guice-jpa, because from the sample code in
the wiki it seems simpler than guice-persist, but I fail to
understand how to integrate it in a simple wicket webapp in
tomcat (I don't know what parts are JBoss specific in that
guide).
Can you provide a minimal tomcat + guice-jpa + 2datasources
example please?
--