OGM inside Apache Camel

Hi,

Did anybody of you integrate OGM with Camel?
I got some issues and maybe some of you have a working example…

I use the Wildfly (10.0) Camel extension and applied the OGM patches. When I try to configure a route that uses a jpa endpoint I got some weird return type incompatibility issue.

This is my camel route:

<spring:beans xmlns:spring="http://www.springframework.org/schema/beans"
       xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
       xmlns="http://camel.apache.org/schema/spring"
       xsi:schemaLocation="
       http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans.xsd
       http://camel.apache.org/schema/spring http://camel.apache.org/schema/spring/camel-spring.xsd">

	<spring:bean id="entityManagerFactory" class="org.springframework.orm.jpa.LocalContainerEntityManagerFactoryBean">
        <spring:property name="persistenceUnitName" value="person" />
    </spring:bean>

    <spring:bean id="jpa" class="org.apache.camel.component.jpa.JpaComponent">
        <spring:property name="entityManagerFactory" ref="entityManagerFactory"/>
    </spring:bean>
	
	<camelContext id="mycontext">
		<route>
			<from uri="file:camel/input"/>
			<transform>
				<groovy>
					def person = new com.axxelia.domain.Person();
					person.name = "Rolfi";
					person.twitterName = "rolfitwitter";
				</groovy>
			</transform>
			<log message="Moving ${file:name} to the output directory"/>
			<to uri="jpa:com.axxelia.domain.Person"/>
			<to uri="file:camel/output"/>
		</route>
	</camelContext>

</spring:beans>

Thanks