blueprint entityManagerFactory usage issue

Latest response

This is my persistence.xml

<?xml version="1.0" encoding="UTF-8"?>

<persistence-unit name="camelJpaContainer" transaction-type="JTA">
    <provider>org.hibernate.ejb.HibernatePersistence</provider>
    <jta-data-source>osgi:service/javax.sql.DataSource/(osgi.jndi.service.name=jdbc/connectDB2)</jta-data-source>
    <non-jta-data-source>osgi:service/javax.sql.DataSource/(osgi.jndi.service.name=jdbc/connectDB2)</non-jta-data-source>
    <class>com.ibm.as400.access.AS400JDBCDriver</class>
    <exclude-unlisted-classes>true</exclude-unlisted-classes>
    <properties>
        <property name="hibernate.connection.driver_class" value="com.ibm.as400.access.AS400JDBCDriver"/>
        <property name="hibernate.dialect" value="org.hibernate.dialect.DB2400Dialect"/>
        <property name = "hibernate.show_sql" value = "false" />
    </properties>
</persistence-unit>    

this my blueprint part

<reference id="springJtaTxManager" interface="org.springframework.transaction.PlatformTransactionManager"/>
        <reference id="entityManagerFactory" interface="javax.persistence.EntityManagerFactory" />
<bean activation="lazy"
    class="org.apache.camel.component.jpa.JpaComponent" id="jpa">
    <property name="transactionManager" ref="springJtaTxManager"/>
    <property name="joinTransaction" value="true"/>
    <property name="sharedEntityManager" value="false"/>
                <property name="entityManagerFactory" ref="camelJpaContainer" />
</bean>

the entitManagerFactory I have tried ref and value nothing . issue is that it cannot find camelJpaContainer ref/id and all is done pom xml and persisitence reference etc.

So either the blueprint entry or persistence issue? its something simple or something additional??

Appreciate some guidance in this as cannot find any solution. had this working in fuse 6.3 but not able in the jfuse 7.6.

Responses