On Tue, Apr 21, 2009 at 2:01 PM, Frank Schwarz <[email protected]> wrote: > > Hi Claus, > > thank you for your resourceful remarks. > > I am now facing a new problem. The JPA component creates a > org.springframework.orm.jpa.JpaTransactionManager on its own - which > conflicts quite badly with the JTA environment of an EJB container. Is there > any built-in facility to a more declarative transaction handling here? A > RFE?
Yeah a quick glimpse on the camel-jpa code looks like we need a few more options on the JpaComponent to set a PlatformTransactionManager to use. And apparently there is a org.apache.camel.component.jpa.TransactionStrategy in the loop as well. And it should work with the existing transaction we have in camel-spring, with the new transaced() DSL keyword. So please feel free to create a ticket in JIRA, as we need to improve camel-jpa. > > Kindly appreciate your help, > Frank > > > > > Claus Ibsen-2 wrote: >> >> Yeah sure overload the jpa component and set the entity manager factory. >> >> <bean id="jpa" class="org.apache.camel.component.jpa.JpaComponent"> >> <property name="entityManagerFactory" ref="myEMFactory"/> >> </bean> >> >> > > -- > View this message in context: > http://www.nabble.com/JPA-component-in-a-JEE5-environment-tp23149492p23154576.html > Sent from the Camel - Users mailing list archive at Nabble.com. > > -- Claus Ibsen Apache Camel Committer Open Source Integration: http://fusesource.com Blog: http://davsclaus.blogspot.com/ Twitter: http://twitter.com/davsclaus Apache Camel Reference Card: http://refcardz.dzone.com/refcardz/enterprise-integration
