Hi Charlie, We don't have any annotation-driven configuration for transactions, but it has been on our to-do list for some time. We would be unlikely to tie ourselves to spring-specific annotation classes, but we would definitely like to provide similar function, preferrably with an OSGi specification and some org.osgi annotations.
I can give you some better news about the Spring data framework. Some blueprint like the following should work nicely: <bean id="repositoryFactory" class="org.springframework.data.jpa.repository.support.JpaRepositoryFactory"> <jpa:context index="0" unitname="myUnit"/> </bean> <bean id="myRepository" factory-ref="repositoryFactory" factory-method="getRepository"> <argument value="your.repository.class.Name"> </bean> You can inject myRepository into any beans that require it. The only warning is that you will need an active transaction when you access the repository. Regards, Tim Ward ------------------- Apache Aries PMC member & Enterprise OSGi advocate Enterprise OSGi in Action (http://www.manning.com/cummins) ------------------- From: [email protected] To: [email protected] Subject: Aries JTA/JPA entityManager and Spring Date: Thu, 2 Feb 2012 12:45:11 +0100 Hi, Is there a way to integrate Aries jta resolver with spring annotation (@transactionnal) ? Same for Aries entityManager with any Spring data framework (Spring data-jpa for example)? I want to thank you for the Aries project that is a very nice job (I tried to make the same by my own (Atomikos+EclipseLink+Equinox-Aspect+Spring) and it was a brainbreaker). Best Regards, Charlie MORDANT
