Hi Matt,
the JTA annotations are not yet supported by Aries JTA.
I raised a Jira about that:
https://issues.apache.org/jira/browse/ARIES-628
I plan to work on it in the following weeks.
Regards
JB
On 05/11/2011 04:56 PM, Matt Madhavan wrote:
Hello,
We are using Aries Blueprint and OpenJPA 2.0. I'm investigating how to
mark my methods transactional using annotational!
Going forward we would like to use Blueprint based annotations instead
of verbose xml files.
I would like to annotate my class as follows:
public class BlogPersistenceServiceImpl**implements BlogPersistenceService {
*@PersistenceContext(unitName="blogExample")*
private EntityManager em;
*@TransactionAttribute=Required *
public void createAuthor(String email, Date dob, String name,
String displayName, String bio) {
AuthorImpl a = new AuthorImpl();
....
}
Is it possible to do @*TransactionAttribute *in Aries? Any help will be
appreciated!
Currently my persistence service class is defined in blueprint.xml as
follows:
<bean id="persistenceImpl"
class="com.xxxxx.jpa.dao.BlogPersistenceServiceImpl">
<tx:transaction method="*" value="Required" />
<jpa:context property="entityManager" unitname="blogExample" />
</bean>
<service id="blogJPAPersistenceService" ref="persistenceImpl"
interface="com.xxxxx.jpa.api.persistence.BlogPersistenceService">
<service-properties>
<entry key="osgi.jndi.service.name <http://osgi.jndi.service.name>"
value="persistence/bpJPAPersistenceService"/>
</service-properties>
</service>
Thanks in advance!
Matt