Author: davsclaus
Date: Tue Apr 16 13:41:08 2013
New Revision: 1468412
URL: http://svn.apache.org/r1468412
Log:
Polished example
Modified:
camel/trunk/examples/camel-example-bam/README.txt
camel/trunk/examples/camel-example-bam/pom.xml
camel/trunk/examples/camel-example-bam/src/main/java/org/apache/camel/example/bam/Main.java
camel/trunk/examples/camel-example-bam/src/main/resources/META-INF/persistence.xml
Modified: camel/trunk/examples/camel-example-bam/README.txt
URL:
http://svn.apache.org/viewvc/camel/trunk/examples/camel-example-bam/README.txt?rev=1468412&r1=1468411&r2=1468412&view=diff
==============================================================================
--- camel/trunk/examples/camel-example-bam/README.txt (original)
+++ camel/trunk/examples/camel-example-bam/README.txt Tue Apr 16 13:41:08 2013
@@ -16,11 +16,6 @@ To run the example with Maven, type
You can see the BAM activies defined in
src/main/java/org/apache/camel/example/bam/MyActivites.java
-In the HSQL Database Explorer type
- select * from camel_activitystate
-to see the states of the activities. Notice that one activity never receives
-its expected message and when it's overdue Camel reports this as an error.
-
To stop the example hit ctrl + c
This example is documented at
Modified: camel/trunk/examples/camel-example-bam/pom.xml
URL:
http://svn.apache.org/viewvc/camel/trunk/examples/camel-example-bam/pom.xml?rev=1468412&r1=1468411&r2=1468412&view=diff
==============================================================================
--- camel/trunk/examples/camel-example-bam/pom.xml (original)
+++ camel/trunk/examples/camel-example-bam/pom.xml Tue Apr 16 13:41:08 2013
@@ -54,10 +54,6 @@
<groupId>org.apache.camel</groupId>
<artifactId>camel-juel</artifactId>
</dependency>
- <dependency>
- <groupId>org.springframework</groupId>
- <artifactId>spring-aop</artifactId>
- </dependency>
<!-- lets use log4j -->
<dependency>
@@ -65,11 +61,6 @@
<artifactId>slf4j-log4j12</artifactId>
</dependency>
- <dependency>
- <groupId>xalan</groupId>
- <artifactId>xalan</artifactId>
- </dependency>
-
<!-- lets use hibernate by default -->
<dependency>
<groupId>org.hibernate</groupId>
@@ -84,8 +75,8 @@
<artifactId>geronimo-jta_1.1_spec</artifactId>
</dependency>
<dependency>
- <groupId>commons-dbcp</groupId>
- <artifactId>commons-dbcp</artifactId>
+ <groupId>commons-dbcp</groupId>
+ <artifactId>commons-dbcp</artifactId>
</dependency>
<!-- testing -->
Modified:
camel/trunk/examples/camel-example-bam/src/main/java/org/apache/camel/example/bam/Main.java
URL:
http://svn.apache.org/viewvc/camel/trunk/examples/camel-example-bam/src/main/java/org/apache/camel/example/bam/Main.java?rev=1468412&r1=1468411&r2=1468412&view=diff
==============================================================================
---
camel/trunk/examples/camel-example-bam/src/main/java/org/apache/camel/example/bam/Main.java
(original)
+++
camel/trunk/examples/camel-example-bam/src/main/java/org/apache/camel/example/bam/Main.java
Tue Apr 16 13:41:08 2013
@@ -17,12 +17,16 @@
package org.apache.camel.example.bam;
/**
+ * Main class to make it easy to run this example.
+ *
* @version
*/
public final class Main {
+
private Main() {
// do nothing here
}
+
public static void main(String[] args) throws Exception {
org.apache.camel.spring.Main.main(args);
}
Modified:
camel/trunk/examples/camel-example-bam/src/main/resources/META-INF/persistence.xml
URL:
http://svn.apache.org/viewvc/camel/trunk/examples/camel-example-bam/src/main/resources/META-INF/persistence.xml?rev=1468412&r1=1468411&r2=1468412&view=diff
==============================================================================
---
camel/trunk/examples/camel-example-bam/src/main/resources/META-INF/persistence.xml
(original)
+++
camel/trunk/examples/camel-example-bam/src/main/resources/META-INF/persistence.xml
Tue Apr 16 13:41:08 2013
@@ -1,18 +1,19 @@
<?xml version="1.0" encoding="UTF-8"?>
<!--
- Copyright 2006 The Apache Software Foundation.
+ 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
- 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
- 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.
+ 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"