typically executing flush on the entitymanager should solve this problem. Have you tried this?
Kind regards, Andreas On Fri, Feb 1, 2013 at 10:24 AM, Charlie Mordant <[email protected]>wrote: > Hi, > > I've just a simple question about the Aries-transaction mecanism. > > I've a bean (subcription bean) who's accessing my Aries dao service (a > spring data jpa repository) with the tx:transaction declaration (else, it > complains that transaction is required): > > <bean id="mUserRepository" factory-ref="userPuJpaRepositoryFactory" > factory-method="getRepository"> > <argument value="net.osgiliath.user.repository.MUserRepository"></argument> > <tx:transaction method="*" value="Required" /> > </bean> > > Out of this bean, I've a camel transformer which must access to my entity > id in order to pass it to the view. > > The problem when persisting is that I'm always in the transaction so that > the id is null. > > How can I stop this transaction just after my dao or my bean(I do not need > it within camel for the moment)? > > Best regards, Charlie > > -- > > Charlie Mordant >
