camel-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From abhi <>
Subject Issue with persisting data using openJPA
Date Wed, 19 Jun 2013 11:33:48 GMT
I am persisting data into SQL Server using openJPA in camel route.
I have defined my configuration in persistence.xml as below

	<persistence-unit name="camel" transaction-type="RESOURCE_LOCAL">
		<property name="openjpa.ConnectionURL"
        	<property name="openjpa.jdbc.DBDictionary"
  		<property name="openjpa.ConnectionDriverName"
  		<property name="openjpa.ConnectionUserName" value="user1"/>
  		<property name="openjpa.ConnectionPassword" value="test123"/>
        	<property name="openjpa.Log" value="Enhance=TRACE,SQL=TRACE"/> 
    		<property name="openjpa.jdbc.SynchronizeMappings" value="true"/>

I am putting this persistence.xml inside META-INF folder and bundling it
into one JAR file.

I am putting my camel-cotext.xml directly into deploy folder of ServiceMix
(it is not part of JAR file). In my camel-context.xml, I am refering this
But when I am trying to persist data, I am getting following error

Could not open JPA EntityManager for transaction; nested exception is
&lt;openjpa-2.2.0-r422266:1244990 fatal user error>
org.apache.openjpa.persistence.ArgumentException: A JDBC Driver or
DataSource class name must be specified in the ConnectionDriverName
property. Available properties in configuration are

Can someone help me on this.

Thanks & regards,

View this message in context:
Sent from the Camel - Users mailing list archive at

View raw message