Have a look at https://github.com/sclassen/ stop tomcat, 
guice-jpa/wiki<https://github.com/sclassen/guice-jpa/wiki>
>

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?

-- 
You received this message because you are subscribed to the Google Groups 
"google-guice" group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/google-guice/-/UjITNm4B7zEJ.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/google-guice?hl=en.

Reply via email to