Hi, You can define the different entityManagerFactory for different jpa component instance like this <bean id="jpa1" class="org.apache.camel.component.jpa.JpaComponent"> <property name="entityManagerFactory" ref="entityManagerFactory1" /> </bean>
<bean id="jpa2" class="org.apache.camel.component.jpa.JpaComponent"> <property name="entityManagerFactory" ref="entityManagerFactory2" /> </bean> <camelContext id="camel" xmlns="http://camel.apache.org/schema/spring"> <route> <from uri="direct:start"/> <to uri="jpa1:xxxx"/> </route> <route> <from uri="jpa2:xxx"/> <to uri="seda<raw> :xxxx"/> </route> </camel:camelContext> Willem -- View this message in context: http://camel.465427.n5.nabble.com/Multiple-persistence-unit-tp4335581p4336313.html Sent from the Camel - Users mailing list archive at Nabble.com.