You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@camel.apache.org by ni...@apache.org on 2009/12/08 14:02:48 UTC

svn commit: r888384 - in /camel/trunk/examples/camel-example-etl: ./ src/main/java/org/apache/camel/example/etl/ src/main/resources/META-INF/ src/main/resources/META-INF/spring/ src/profiles/ src/profiles/openjpa/ src/profiles/openjpa/META-INF/ src/pro...

Author: ningjiang
Date: Tue Dec  8 13:02:47 2009
New Revision: 888384

URL: http://svn.apache.org/viewvc?rev=888384&view=rev
Log:
CAMEL-2267 Get camel-example-etl to work with OSGi 

Added:
    camel/trunk/examples/camel-example-etl/src/profiles/
    camel/trunk/examples/camel-example-etl/src/profiles/openjpa/
    camel/trunk/examples/camel-example-etl/src/profiles/openjpa/META-INF/
    camel/trunk/examples/camel-example-etl/src/profiles/openjpa/META-INF/persistence.xml   (with props)
    camel/trunk/examples/camel-example-etl/src/profiles/openjpa/META-INF/spring/
    camel/trunk/examples/camel-example-etl/src/profiles/openjpa/META-INF/spring/camel-context.xml   (with props)
Modified:
    camel/trunk/examples/camel-example-etl/pom.xml
    camel/trunk/examples/camel-example-etl/src/main/java/org/apache/camel/example/etl/CustomerTransformer.java
    camel/trunk/examples/camel-example-etl/src/main/resources/META-INF/persistence.xml
    camel/trunk/examples/camel-example-etl/src/main/resources/META-INF/spring/camel-context.xml

Modified: camel/trunk/examples/camel-example-etl/pom.xml
URL: http://svn.apache.org/viewvc/camel/trunk/examples/camel-example-etl/pom.xml?rev=888384&r1=888383&r2=888384&view=diff
==============================================================================
--- camel/trunk/examples/camel-example-etl/pom.xml (original)
+++ camel/trunk/examples/camel-example-etl/pom.xml Tue Dec  8 13:02:47 2009
@@ -1,139 +1,214 @@
 <?xml version="1.0" encoding="UTF-8"?>
 
-<!--
-  Licensed to the Apache Software Foundation (ASF) under one or more
-  contributor license agreements.  See the NOTICE file distributed with
-  this work for additional information regarding copyright ownership.
-  The ASF licenses this file to You under the Apache License, Version 2.0
-  (the "License"); you may not use this file except in compliance with
-  the License.  You may obtain a copy of the License at
-  
-  http://www.apache.org/licenses/LICENSE-2.0
-  
-  Unless required by applicable law or agreed to in writing, software
-  distributed under the License is distributed on an "AS IS" BASIS,
-  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-  See the License for the specific language governing permissions and
-  limitations under the License.
--->
-
-<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
-
-  <modelVersion>4.0.0</modelVersion>
-
-  <parent>
-    <groupId>org.apache.camel</groupId>
-    <artifactId>examples</artifactId>
-    <version>2.2-SNAPSHOT</version>
-  </parent>
-
-  <artifactId>camel-example-etl</artifactId>
-  <packaging>bundle</packaging>
-  <name>Camel :: Example :: ETL</name>
-  <description>An example showing how to use Camel as an Extract Transform and Load (ETL) tool</description>
-
-  <properties>
-     <camel.osgi.export.pkg>
-     	org.apache.camel.example.etl.*
+	<!--
+		Licensed to the Apache Software Foundation (ASF) under one or more
+		contributor license agreements. See the NOTICE file distributed with
+		this work for additional information regarding copyright ownership.
+		The ASF licenses this file to You under the Apache License, Version
+		2.0 (the "License"); you may not use this file except in compliance
+		with the License. You may obtain a copy of the License at
+
+		http://www.apache.org/licenses/LICENSE-2.0 Unless required by
+		applicable law or agreed to in writing, software distributed under the
+		License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR
+		CONDITIONS OF ANY KIND, either express or implied. See the License for
+		the specific language governing permissions and limitations under the
+		License.
+	-->
+
+<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+	xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
+
+	<modelVersion>4.0.0</modelVersion>
+
+	<parent>
+		<groupId>org.apache.camel</groupId>
+		<artifactId>examples</artifactId>
+		<version>2.2-SNAPSHOT</version>
+	</parent>
+
+	<artifactId>camel-example-etl</artifactId>
+	<packaging>bundle</packaging>
+	<name>Camel :: Example :: ETL</name>
+	<description>An example showing how to use Camel as an Extract Transform and Load (ETL) tool</description>
+
+	<properties>
+		<camel.osgi.export.pkg>
+			org.apache.camel.example.etl.*
      </camel.osgi.export.pkg>
-  </properties>
-
-  <dependencies>
-    <dependency>
-      <groupId>org.apache.camel</groupId>
-      <artifactId>camel-spring</artifactId>
-    </dependency>
-    <dependency>
-      <groupId>org.apache.camel</groupId>
-      <artifactId>camel-jpa</artifactId>
-    </dependency>
-    <dependency>
-      <groupId>org.apache.camel</groupId>
-      <artifactId>camel-jaxb</artifactId>
-    </dependency>
-    <dependency>
-      <groupId>org.apache.camel</groupId>
-      <artifactId>camel-juel</artifactId>
-    </dependency>
-
-    <!-- lets use log4j -->
-    <dependency>
-      <groupId>commons-logging</groupId>
-      <artifactId>commons-logging</artifactId>
-    </dependency>
-    <dependency>
-      <groupId>log4j</groupId>
-      <artifactId>log4j</artifactId>
-    </dependency>
-
-    <!-- lets use hibernate by default -->
-    <dependency>
-      <groupId>org.hibernate</groupId>
-      <artifactId>hibernate-entitymanager</artifactId>
-    </dependency>
-    <dependency>
-      <groupId>org.hibernate</groupId>
-      <artifactId>hibernate</artifactId>
-    </dependency>
-    <dependency>
-      <groupId>hsqldb</groupId>
-      <artifactId>hsqldb</artifactId>
-    </dependency>
-    <dependency>
-      <groupId>org.apache.geronimo.specs</groupId>
-      <artifactId>geronimo-jta_1.1_spec</artifactId>
-    </dependency>
-
-    <!-- testing -->
-    <dependency>
-      <groupId>junit</groupId>
-      <artifactId>junit</artifactId>
-      <scope>test</scope>
-    </dependency>
-  </dependencies>
-
-  <build>
-    <plugins>
-
-      <!-- Allows the example to be run via 'mvn camel:run' -->
-      <plugin>
-        <groupId>org.apache.camel</groupId>
-        <artifactId>camel-maven-plugin</artifactId>
-        <version>${project.version}</version>
-      </plugin>
-
-      <!-- Allows the example to be run via 'mvn compile exec:java' -->
-      <plugin>
-        <groupId>org.codehaus.mojo</groupId>
-        <artifactId>exec-maven-plugin</artifactId>
-        <configuration>
-          <mainClass>org.apache.camel.example.etl.Main</mainClass>
-          <includePluginDependencies>false</includePluginDependencies>
-        </configuration>
-      </plugin>
-
-      <plugin>
-        <artifactId>maven-surefire-plugin</artifactId>
-        <configuration>
-          <childDelegation>false</childDelegation>
-          <useFile>true</useFile>
-          <excludes>
-            <exclude>**/RunTest.*</exclude>
-          </excludes>
-        </configuration>
-      </plugin>
-
-    </plugins>
-  </build>
-  
-  <reporting>
-    <plugins>
-      <!-- let's generate nice PNG / SVG diagrams from our routes -->
-      <plugin>
-        <groupId>org.apache.camel</groupId>
-        <artifactId>camel-maven-plugin</artifactId>
-        <version>${project.version}</version>
-      </plugin>
-    </plugins>
-  </reporting>
+		<camel.osgi.import.additional>
+			org.hsqldb,org.hsqldb.util,org.hsqldb.jdbc,org.hibernate.ejb
+     </camel.osgi.import.additional>
+		<!-- to avoid us import bunch other package -->
+		<camel.osgi.dynamic>
+			*
+     </camel.osgi.dynamic>
+	</properties>
+
+	<dependencies>
+		<dependency>
+			<groupId>org.apache.camel</groupId>
+			<artifactId>camel-spring</artifactId>
+		</dependency>
+		<dependency>
+			<groupId>org.apache.camel</groupId>
+			<artifactId>camel-jpa</artifactId>
+		</dependency>
+		<dependency>
+			<groupId>org.apache.camel</groupId>
+			<artifactId>camel-jaxb</artifactId>
+		</dependency>
+		<dependency>
+			<groupId>org.apache.camel</groupId>
+			<artifactId>camel-juel</artifactId>
+		</dependency>
+		<dependency>
+			<groupId>org.springframework</groupId>
+			<artifactId>spring-aop</artifactId>
+		</dependency>
+
+		<!-- lets use log4j -->
+		<dependency>
+			<groupId>commons-logging</groupId>
+			<artifactId>commons-logging</artifactId>
+		</dependency>
+		<dependency>
+			<groupId>log4j</groupId>
+			<artifactId>log4j</artifactId>
+		</dependency>
+		<dependency>
+			<groupId>hsqldb</groupId>
+			<artifactId>hsqldb</artifactId>
+		</dependency>
+		<dependency>
+			<groupId>org.apache.geronimo.specs</groupId>
+			<artifactId>geronimo-jta_1.1_spec</artifactId>
+		</dependency>
+		<dependency>
+			<groupId>commons-dbcp</groupId>
+			<artifactId>commons-dbcp</artifactId>
+		</dependency>
+
+		<!-- testing -->
+		<dependency>
+			<groupId>junit</groupId>
+			<artifactId>junit</artifactId>
+			<scope>test</scope>
+		</dependency>
+
+	</dependencies>
+
+	<build>
+		<plugins>
+			<!-- Allows the example to be run via 'mvn camel:run' -->
+			<plugin>
+				<groupId>org.apache.camel</groupId>
+				<artifactId>camel-maven-plugin</artifactId>
+				<version>${project.version}</version>
+			</plugin>
+
+			<!-- Allows the example to be run via 'mvn compile exec:java' -->
+			<plugin>
+				<groupId>org.codehaus.mojo</groupId>
+				<artifactId>exec-maven-plugin</artifactId>
+				<configuration>
+					<mainClass>org.apache.camel.example.etl.Main</mainClass>
+					<includePluginDependencies>false</includePluginDependencies>
+				</configuration>
+			</plugin>
+
+			<plugin>
+				<artifactId>maven-surefire-plugin</artifactId>
+				<configuration>
+					<childDelegation>false</childDelegation>
+					<useFile>true</useFile>
+					<excludes>
+						<exclude>**/RunTest.*</exclude>
+					</excludes>
+				</configuration>
+			</plugin>
+
+		</plugins>
+	</build>
+
+	<profiles>
+		<profile>
+			<id>hibernate</id>
+			<activation>
+				<activeByDefault>true</activeByDefault>
+			</activation>
+			<dependencies>
+				<dependency>
+					<groupId>org.hibernate</groupId>
+					<artifactId>hibernate-entitymanager</artifactId>
+				</dependency>
+				<dependency>
+					<groupId>org.hibernate</groupId>
+					<artifactId>hibernate</artifactId>
+				</dependency>
+			</dependencies>
+		</profile>
+		<profile>
+			<id>openjpa</id>
+			<build>
+				<resources>
+					<resource>
+						<directory>${basedir}/src/profiles/openjpa</directory>
+					</resource>
+					<resource>
+						<directory>${basedir}/src/main/resources</directory>
+						<excludes>
+							<exclude>**/persistence.xml</exclude>
+							<exclude>**/camel-context.xml</exclude>
+						</excludes>
+					</resource>
+				</resources>
+				<!--  Will enhance classes as we run in a non J2EE 5 env -->
+				<plugins>
+					<plugin>
+						<groupId>org.codehaus.mojo</groupId>
+						<artifactId>openjpa-maven-plugin</artifactId>
+						<executions>
+							<execution>
+								<id>JPA Enhance</id>
+								<phase>process-classes</phase>
+								<goals>
+									<goal>enhance</goal>
+								</goals>
+							</execution>
+						</executions>
+						<configuration>
+							<includes>org/apache/camel/example/etl/*Entity.class</includes>
+							<toolProperties>
+								<property>
+									<name>addDefaultConstructor</name>
+									<value>true</value>
+								</property>
+								<property>
+									<name>enforcePropertyRestrictions</name>
+									<value>true</value>
+								</property>
+							</toolProperties>
+						</configuration>
+					</plugin>
+				</plugins>
+			</build>
+			<dependencies>
+				<dependency>
+					<groupId>org.apache.openjpa</groupId>
+					<artifactId>openjpa-persistence-jdbc</artifactId>
+				</dependency>
+			</dependencies>
+		</profile>
+	</profiles>
+	<reporting>
+		<plugins>
+			<!-- let's generate nice PNG / SVG diagrams from our routes -->
+			<plugin>
+				<groupId>org.apache.camel</groupId>
+				<artifactId>camel-maven-plugin</artifactId>
+				<version>${project.version}</version>
+			</plugin>
+		</plugins>
+	</reporting>
 </project>

Modified: camel/trunk/examples/camel-example-etl/src/main/java/org/apache/camel/example/etl/CustomerTransformer.java
URL: http://svn.apache.org/viewvc/camel/trunk/examples/camel-example-etl/src/main/java/org/apache/camel/example/etl/CustomerTransformer.java?rev=888384&r1=888383&r2=888384&view=diff
==============================================================================
--- camel/trunk/examples/camel-example-etl/src/main/java/org/apache/camel/example/etl/CustomerTransformer.java (original)
+++ camel/trunk/examples/camel-example-etl/src/main/java/org/apache/camel/example/etl/CustomerTransformer.java Tue Dec  8 13:02:47 2009
@@ -64,7 +64,6 @@
         if (list.isEmpty()) {
             CustomerEntity answer = new CustomerEntity();
             answer.setUserName(user);
-            template.persist(answer);
             return answer;
         } else {
             return list.get(0);

Modified: camel/trunk/examples/camel-example-etl/src/main/resources/META-INF/persistence.xml
URL: http://svn.apache.org/viewvc/camel/trunk/examples/camel-example-etl/src/main/resources/META-INF/persistence.xml?rev=888384&r1=888383&r2=888384&view=diff
==============================================================================
--- camel/trunk/examples/camel-example-etl/src/main/resources/META-INF/persistence.xml (original)
+++ camel/trunk/examples/camel-example-etl/src/main/resources/META-INF/persistence.xml Tue Dec  8 13:02:47 2009
@@ -23,10 +23,6 @@
 
     <properties>
       <property name="hibernate.dialect" value="org.hibernate.dialect.HSQLDialect"/>
-      <property name="hibernate.connection.driver_class" value="org.hsqldb.jdbcDriver"/>
-      <property name="hibernate.connection.username" value="sa"/>
-      <property name="hibernate.connection.password" value=""/>
-      <property name="hibernate.connection.url" value="jdbc:hsqldb:mem:camel_etl"/>
       <property name="hibernate.hbm2ddl.auto" value="create"/>
     </properties>
 

Modified: camel/trunk/examples/camel-example-etl/src/main/resources/META-INF/spring/camel-context.xml
URL: http://svn.apache.org/viewvc/camel/trunk/examples/camel-example-etl/src/main/resources/META-INF/spring/camel-context.xml?rev=888384&r1=888383&r2=888384&view=diff
==============================================================================
--- camel/trunk/examples/camel-example-etl/src/main/resources/META-INF/spring/camel-context.xml (original)
+++ camel/trunk/examples/camel-example-etl/src/main/resources/META-INF/spring/camel-context.xml Tue Dec  8 13:02:47 2009
@@ -33,6 +33,10 @@
     <package>org.apache.camel.example.etl</package>
   </camelContext>
 
+   <!--  Added for OSGI platform to allow -->
+  <bean id="jpa" class="org.apache.camel.component.jpa.JpaComponent">
+       <property name="entityManagerFactory" ref="entityManagerFactory"/>
+  </bean>
 
   <bean id="transactionTemplate" class="org.springframework.transaction.support.TransactionTemplate">
     <property name="transactionManager">
@@ -46,19 +50,36 @@
     <property name="entityManagerFactory" ref="entityManagerFactory"/>
   </bean>
 
-  <bean id="entityManagerFactory" class="org.springframework.orm.jpa.LocalEntityManagerFactoryBean">
+   <bean id="entityManagerFactory" class="org.springframework.orm.jpa.LocalContainerEntityManagerFactoryBean">
     <property name="persistenceUnitName" value="camel"/>
+    <property name="jpaVendorAdapter" ref="jpaAdapter"/>
+    <property name="dataSource" ref="dataSource" />
+  </bean>
+  
+  <bean id="jpaAdapter"
+        class="org.springframework.orm.jpa.vendor.HibernateJpaVendorAdapter">
+        <property name="databasePlatform" value="org.hibernate.dialect.HSQLDialect" />
+  </bean>
+  
+  <!--  DataSource Definition -->
+  <bean id="dataSource" class="org.apache.commons.dbcp.BasicDataSource" destroy-method="close">
+        <property name="driverClassName" value="org.hsqldb.jdbcDriver" />
+        <property name="url" value="jdbc:hsqldb:mem:camel_etl" />
+        <property name="username" value="sa" />
+        <property name="password" value="" />
   </bean>
 
   <!-- lets show a simple UI to browse the database -->
+  <!-- This bean will cause OSGi server exit , so we disable it here
   <bean id="databaseExplorer" class="org.apache.camel.spring.util.MainRunner" lazy-init="false">
     <property name="main" value="org.hsqldb.util.DatabaseManagerSwing"/>
     <property name="args">
       <list>
-        <value>--url</value>
+        <value>url</value>
         <value>jdbc:hsqldb:mem:camel_etl</value>
       </list>
     </property>
     <property name="delay" value="1000"/>
   </bean>
+   -->
 </beans>

Added: camel/trunk/examples/camel-example-etl/src/profiles/openjpa/META-INF/persistence.xml
URL: http://svn.apache.org/viewvc/camel/trunk/examples/camel-example-etl/src/profiles/openjpa/META-INF/persistence.xml?rev=888384&view=auto
==============================================================================
--- camel/trunk/examples/camel-example-etl/src/profiles/openjpa/META-INF/persistence.xml (added)
+++ camel/trunk/examples/camel-example-etl/src/profiles/openjpa/META-INF/persistence.xml Tue Dec  8 13:02:47 2009
@@ -0,0 +1,44 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+ Copyright 2006 The Apache Software Foundation.
+
+ Licensed under the Apache License, Version 2.0 (the "License");
+ you may not use this file except in compliance with the License.
+ You may obtain a copy of the License at
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+ Unless required by applicable law or agreed to in writing, software
+ distributed under the License is distributed on an "AS IS" BASIS,
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ See the License for the specific language governing permissions and
+ limitations under the License.
+-->
+<persistence xmlns="http://java.sun.com/xml/ns/persistence"
+             xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+             version="1.0">
+
+  <persistence-unit name="camel" transaction-type="RESOURCE_LOCAL">
+    <class>org.apache.camel.example.etl.CustomerEntity</class>
+    <properties>
+      <property name="openjpa.ConnectionURL" value="jdbc:hsqldb:mem:camel_etl"/>
+      <property name="openjpa.ConnectionDriverName" value="org.hsqldb.jdbcDriver"/>
+      <property name="openjpa.ConnectionUserName" value="sa" />
+	  <property name="openjpa.ConnectionPassword" value="" />
+      <property name="openjpa.jdbc.SynchronizeMappings" value="buildSchema"/>
+      <property name="openjpa.ConnectionFactoryProperties" value="PrettyPrint=true, PrettyPrintLineLength=72" />
+    </properties>
+
+	<!-- properties>
+		<property name="openjpa.ConnectionURL" value="jdbc:derby:target/derby;create=true" />
+		<property name="openjpa.ConnectionDriverName" value="org.apache.derby.jdbc.EmbeddedDriver" />
+		<property name="openjpa.jdbc.SynchronizeMappings" value="buildSchema" />
+		<property name="openjpa.Log"
+			value="DefaultLevel=INFO, Runtime=TRACE, Tool=INFO, SQL=TRACE" />
+		<property name="openjpa.ConnectionFactoryProperties" value="PrettyPrint=true, PrettyPrintLineLength=72" />
+	</properties-->
+      
+    
+
+  </persistence-unit>
+</persistence>

Propchange: camel/trunk/examples/camel-example-etl/src/profiles/openjpa/META-INF/persistence.xml
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: camel/trunk/examples/camel-example-etl/src/profiles/openjpa/META-INF/persistence.xml
------------------------------------------------------------------------------
    svn:keywords = Rev Date

Propchange: camel/trunk/examples/camel-example-etl/src/profiles/openjpa/META-INF/persistence.xml
------------------------------------------------------------------------------
    svn:mime-type = text/xml

Added: camel/trunk/examples/camel-example-etl/src/profiles/openjpa/META-INF/spring/camel-context.xml
URL: http://svn.apache.org/viewvc/camel/trunk/examples/camel-example-etl/src/profiles/openjpa/META-INF/spring/camel-context.xml?rev=888384&view=auto
==============================================================================
--- camel/trunk/examples/camel-example-etl/src/profiles/openjpa/META-INF/spring/camel-context.xml (added)
+++ camel/trunk/examples/camel-example-etl/src/profiles/openjpa/META-INF/spring/camel-context.xml Tue Dec  8 13:02:47 2009
@@ -0,0 +1,71 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+    Licensed to the Apache Software Foundation (ASF) under one or more
+    contributor license agreements.  See the NOTICE file distributed with
+    this work for additional information regarding copyright ownership.
+    The ASF licenses this file to You under the Apache License, Version 2.0
+    (the "License"); you may not use this file except in compliance with
+    the License.  You may obtain a copy of the License at
+
+    http://www.apache.org/licenses/LICENSE-2.0
+
+    Unless required by applicable law or agreed to in writing, software
+    distributed under the License is distributed on an "AS IS" BASIS,
+    WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+    See the License for the specific language governing permissions and
+    limitations under the License.
+-->
+
+<!--
+
+  The default Application Context used by the org.apache.camel.spring.Main if there
+  is no /META-INF/sprint.xml
+
+ -->
+
+<beans xmlns="http://www.springframework.org/schema/beans"
+	xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+	xsi:schemaLocation="
+       http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-2.5.xsd
+       http://camel.apache.org/schema/spring http://camel.apache.org/schema/spring/camel-spring.xsd">
+
+	<camelContext id="camel" xmlns="http://camel.apache.org/schema/spring">
+		<package>org.apache.camel.example.etl</package>
+	</camelContext>
+	
+	 <!--  Added for OSGI platform to allow -->
+    <bean id="jpa" class="org.apache.camel.component.jpa.JpaComponent">
+       <property name="entityManagerFactory" ref="entityManagerFactory"/>
+    </bean>
+
+	<bean id="transactionTemplate"
+		class="org.springframework.transaction.support.TransactionTemplate">
+		<property name="transactionManager">
+			<bean class="org.springframework.orm.jpa.JpaTransactionManager">
+				<property name="entityManagerFactory" ref="entityManagerFactory" />
+			</bean>
+		</property>
+	</bean>
+
+	<bean id="jpaTemplate" class="org.springframework.orm.jpa.JpaTemplate">
+		<property name="entityManagerFactory" ref="entityManagerFactory" />
+	</bean>
+
+	<bean id="entityManagerFactory"
+		class="org.springframework.orm.jpa.LocalEntityManagerFactoryBean">
+		<property name="persistenceUnitName" value="camel" />
+	</bean>
+
+
+  <!-- lets show a simple UI to browse the database 
+  <bean id="databaseExplorer" class="org.apache.camel.spring.util.MainRunner" lazy-init="false">
+    <property name="main" value="org.hsqldb.util.DatabaseManagerSwing"/>
+    <property name="args">
+      <list>
+        <value>url</value>
+        <value>jdbc:hsqldb:mem:camel_etl</value>
+      </list>
+    </property>
+    <property name="delay" value="1000"/>
+  </bean-->
+</beans>

Propchange: camel/trunk/examples/camel-example-etl/src/profiles/openjpa/META-INF/spring/camel-context.xml
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: camel/trunk/examples/camel-example-etl/src/profiles/openjpa/META-INF/spring/camel-context.xml
------------------------------------------------------------------------------
    svn:keywords = Rev Date

Propchange: camel/trunk/examples/camel-example-etl/src/profiles/openjpa/META-INF/spring/camel-context.xml
------------------------------------------------------------------------------
    svn:mime-type = text/xml