I am using appengine with Objectify to access my data source. I use Spring for my business level. To play with data, I use objectify-appengine-spring factory .
I would like to use local transactions based on annotations. Do you know about an existing implementation that I could connect directly as a Spring bean?
I would really like to avoid the pain of implementing my own transaction provider with thread locations.
Check LushLife ObjectifyTransactionManager here or here .
ObjectifyTransactionManager
Spring XML ( ):
<!-- ObjectifyManager --> <bean id="objectifyManager" class="ex.objectify.spring.ObjectifyManager"> <property name="basePackage" value="gso.model" /> </bean> <!-- ObjectifyFactoryBean --> <bean id="objectifyFactory" class="ex.objectify.spring.ObjectifyFactoryBean"> <property name="manager" ref="objectifyManager" /> </bean> <!-- Custom TransactionManager implementation --> <bean id="transactionManager" class="ex.objectify.spring.ObjectifyTransactionManager"> <property name="manager" ref="objectifyManager" /> </bean> <!-- Necesary to enable use of @Transactional in your services --> <tx:annotation-driven />
@Transactional.
.
, Objectify3.
, (, ..) Spring AOP + Objectify4 - XML ?
, API Objectify4 - ObjectifyFactory beginTransaction(), , , . . , , . , .