Hi All,
I got the solution for problem, I have included content of persistence.xml
inside camel-context.xml as follows

        <bean id="entityManagerFactory"
class="org.springframework.orm.jpa.LocalEntityManagerFactoryBean">
                <property name="persistenceUnitName" value="com.baselogic.jpa" 
/>
                <property name="jpaVendorAdapter" ref="jpaAdapter" />
                <property name="jpaProperties">
                        <props>
                        <prop
key="openjpa.ConnectionURL">jdbc:sqlserver://10.10.10.11:1433;databaseName=XYZ;instanceName=SQLEXPRESS;</prop>
                        <prop
key="openjpa.jdbc.DBDictionary">org.apache.openjpa.jdbc.sql.SQLServerDictionary</prop>
                        <prop
key="openjpa.ConnectionDriverName">com.microsoft.sqlserver.jdbc.SQLServerDriver</prop>
                        <prop key="openjpa.ConnectionUserName">username</prop>
                        <prop key="openjpa.ConnectionPassword">hellooo</prop>
                         <prop key="openjpa.Log">Enhance=TRACE,SQL=TRACE</prop>
                        <prop key="openjpa.jdbc.SynchronizeMappings">true</prop>
                        </props>
                </property>
        </bean>

Thanks,
Abhi



--
View this message in context: 
http://camel.465427.n5.nabble.com/Issue-with-persisting-data-using-openJPA-tp5734379p5734741.html
Sent from the Camel - Users mailing list archive at Nabble.com.

Reply via email to