It does help and gives me some Ideas. I was thinking about rolling my own, but I just wanted to know if there was an existing solution out there without writing my own hacky code. Thanks.
p.s. I wasn't going to use myBatis, just their @Transactional tag, but I had some weird build errors with Maven when trying that, so am back to the regular old guice-persist @Transactional. On Sun, Mar 4, 2012 at 12:48 AM, scl <[email protected]> wrote: > 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 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. > > -- You received this message because you are subscribed to the Google Groups "google-guice" group. 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.
