Hi

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>




On Tue, Apr 21, 2009 at 7:39 AM, Frank Schwarz <f...@gmx.net> wrote:
>
> Hi,
>
> I tried to make use of the jpa component. It seems to be, however, that this
> component tries to create an EntityManagerFactory for its own - not a good
> idea in a JEE5 environment.
>
> Is there any way to let Spring do the resource-configuration / -lookup
> stuff?
>
> Cheers,
> Frank
>
> (Camel 2.0M1, JBoss 5, Hibernate, configuration in Spring XML)
> --
> View this message in context: 
> http://www.nabble.com/JPA-component-in-a-JEE5-environment-tp23149492p23149492.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

Reply via email to