Hmmm, I already did a similar thing for Infinispan 2LC a while back:
https://github.com/galderz/hibernate-core/blob/master/hibernate-infinispa...
I take Hibernate's TM and hook it into Infinispan. The way I did it is create a
HibernateTransactionManagerLookup class that implements
org.infinispan.transaction.lookup.TransactionManagerLookup and looks up the transaction
manager with Settings.getTransactionManagerLookup().getTransactionManager(properties)
Maybe we should look into consolidating this code?
Cheers,
On Feb 1, 2011, at 8:17 PM, Sanne Grinovero wrote:
As discussed, I have been playing with Infinispan's
configuration
options to have it startup using hibernate's TransactionManagerLookup.
It wasn't working initially because of ISPN-883, but this is now
solved (thanks Mircea!).
I'm not sure yet if this should be pushed to Hibernate Search, but it
might be useful to have a look for OGM:
https://github.com/Sanne/hibernate-search/commits/InfinispanTransactionMa...
it's quite verbose, if you have suggestions I can try pushing some of
the complexity into Infinispan, assuming they are fine with it.
Sanne
_______________________________________________
hibernate-dev mailing list
hibernate-dev(a)lists.jboss.org
https://lists.jboss.org/mailman/listinfo/hibernate-dev
--
Galder ZamarreƱo
Sr. Software Engineer
Infinispan, JBoss Cache