Hi Matt, I'm afraid there is currently no support for annotation-based configuration in aries blueprint. We are prototyping annotation configuration for blueprint, but this doesn't currently include support for custom namespaces like transactions. If you have anything you'd like to contribute in this area you'd be more than welcome!
Regards, Tim ________________________________ > Date: Wed, 11 May 2011 09:56:29 -0500 > Subject: Blueprint JTA Annotations? > From: [email protected] > To: [email protected] > > 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: > > > class="com.xxxxx.jpa.dao.BlogPersistenceServiceImpl"> > > > > > > interface="com.xxxxx.jpa.api.persistence.BlogPersistenceService"> > > > key="osgi.jndi.service.name" > value="persistence/bpJPAPersistenceService"/> > > > > Thanks in advance! > Matt >
