Hi there, 

I'm trying to use two databases in my project too. I was trying with:
http://code.google.com/p/google-guice/wiki/GuicePersistMultiModules
until I found your more complete snippet (great):
https://groups.google.com/d/topic/google-guice/2VK-bdsnjZc/discussion<http://../d/topic/google-guice/2VK-bdsnjZc/discussion>

Now I'm in a point where I can access to both databases (thanks) but, 
cannot persist nothing. I was trying to create several custom persist 
objects and annotations without luck.

Can you share this part also? Do you have a public repo?

TIA,

Vicente

El domingo 4 de marzo de 2012 09:48:15 UTC+1, scl escribió:
>
> I used guice in a project with 2 databases. in order to be able to 
> have a transaction only on one database I wrote my own 
> @TransactionalDB1 and @TransactionalDB2 annotation. 
> Then I copied the class JpaLocalTxnInterceptor and adapted it to be 
> able to handle two different databases. 
> Finally I bind the the modified transaction interceptor to my new 
> annotations. 
>
> Worked out like a charm. 
> Hope this answer helps even if I didn't usemybatis.

-- 
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/-/Jf8cyB2iNYgJ.
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