servicemix-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jstrac...@apache.org
Subject svn commit: r573225 - in /incubator/servicemix/trunk/samples/camel: ./ camel-sa/ camel-simple-su/ camel-simple-su/src/ camel-simple-su/src/main/ camel-simple-su/src/main/java/ camel-simple-su/src/main/java/org/ camel-simple-su/src/main/java/org/apache/...
Date Thu, 06 Sep 2007 11:45:22 GMT
Author: jstrachan
Date: Thu Sep  6 04:45:21 2007
New Revision: 573225

URL: http://svn.apache.org/viewvc?rev=573225&view=rev
Log:
Added a Camel example SU, SA

Added:
    incubator/servicemix/trunk/samples/camel/
    incubator/servicemix/trunk/samples/camel/README.txt   (with props)
    incubator/servicemix/trunk/samples/camel/camel-sa/
    incubator/servicemix/trunk/samples/camel/camel-sa/pom.xml   (with props)
    incubator/servicemix/trunk/samples/camel/camel-simple-su/
    incubator/servicemix/trunk/samples/camel/camel-simple-su/pom.xml   (with props)
    incubator/servicemix/trunk/samples/camel/camel-simple-su/src/
    incubator/servicemix/trunk/samples/camel/camel-simple-su/src/main/
    incubator/servicemix/trunk/samples/camel/camel-simple-su/src/main/java/
    incubator/servicemix/trunk/samples/camel/camel-simple-su/src/main/java/org/
    incubator/servicemix/trunk/samples/camel/camel-simple-su/src/main/java/org/apache/
    incubator/servicemix/trunk/samples/camel/camel-simple-su/src/main/java/org/apache/servicemix/
    incubator/servicemix/trunk/samples/camel/camel-simple-su/src/main/java/org/apache/servicemix/samples/
    incubator/servicemix/trunk/samples/camel/camel-simple-su/src/main/java/org/apache/servicemix/samples/MyRouteBuilder.java
  (with props)
    incubator/servicemix/trunk/samples/camel/camel-simple-su/src/main/resources/
    incubator/servicemix/trunk/samples/camel/camel-simple-su/src/main/resources/camel-context.xml
  (with props)
    incubator/servicemix/trunk/samples/camel/pom.xml   (with props)

Added: incubator/servicemix/trunk/samples/camel/README.txt
URL: http://svn.apache.org/viewvc/incubator/servicemix/trunk/samples/camel/README.txt?rev=573225&view=auto
==============================================================================
--- incubator/servicemix/trunk/samples/camel/README.txt (added)
+++ incubator/servicemix/trunk/samples/camel/README.txt Thu Sep  6 04:45:21 2007
@@ -0,0 +1,36 @@
+/*
+ * 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.
+ */
+
+Welcome to the ServiceMix Camel Example
+=======================================
+
+This example shows how to use Apache Camel to deploy EIP routes
+
+You can run this example using an embedded ServiceMix install via
+  cd camel-sa
+  mvn jbi:servicemix
+
+Or if you prefer you can start a ServiceMix server (if not already started) by running
+  bin/servicemix
+in the root dir of this ditribution.
+
+To start this sample, run:
+  mvn install jbi:projectDeploy
+  
+For more information on running this example please see:
+  http://incubator.apache.org/servicemix/camel-example.html
+

Propchange: incubator/servicemix/trunk/samples/camel/README.txt
------------------------------------------------------------------------------
    svn:eol-style = native

Added: incubator/servicemix/trunk/samples/camel/camel-sa/pom.xml
URL: http://svn.apache.org/viewvc/incubator/servicemix/trunk/samples/camel/camel-sa/pom.xml?rev=573225&view=auto
==============================================================================
--- incubator/servicemix/trunk/samples/camel/camel-sa/pom.xml (added)
+++ incubator/servicemix/trunk/samples/camel/camel-sa/pom.xml Thu Sep  6 04:45:21 2007
@@ -0,0 +1,55 @@
+<?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.servicemix.samples</groupId>
+	  <artifactId>camel</artifactId>
+	  <version>3.2-incubating-SNAPSHOT</version>
+  </parent>
+
+  <groupId>org.apache.servicemix.samples</groupId>
+  <artifactId>camel-sa</artifactId>
+  <packaging>jbi-service-assembly</packaging>
+  <name>ServiceMix :: Samples :: Camel :: SA</name>
+
+  <dependencies>
+    <dependency>
+		  <groupId>org.apache.servicemix.samples</groupId>
+		  <artifactId>camel-simple-su</artifactId>
+      <version>3.2-incubating-SNAPSHOT</version>
+    </dependency>
+  </dependencies>
+  <build>
+    <plugins>
+      <plugin>
+        <groupId>org.apache.servicemix.tooling</groupId>
+        <artifactId>jbi-maven-plugin</artifactId>
+        <extensions>true</extensions>
+        <configuration>
+          <type>service-assembly</type>         
+        </configuration>
+      </plugin>
+    </plugins>
+  </build>
+</project>

Propchange: incubator/servicemix/trunk/samples/camel/camel-sa/pom.xml
------------------------------------------------------------------------------
    svn:eol-style = native

Added: incubator/servicemix/trunk/samples/camel/camel-simple-su/pom.xml
URL: http://svn.apache.org/viewvc/incubator/servicemix/trunk/samples/camel/camel-simple-su/pom.xml?rev=573225&view=auto
==============================================================================
--- incubator/servicemix/trunk/samples/camel/camel-simple-su/pom.xml (added)
+++ incubator/servicemix/trunk/samples/camel/camel-simple-su/pom.xml Thu Sep  6 04:45:21 2007
@@ -0,0 +1,74 @@
+<?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.servicemix.samples</groupId>
+	  <artifactId>camel</artifactId>
+	  <version>3.2-incubating-SNAPSHOT</version>
+  </parent>
+
+  <groupId>org.apache.servicemix.samples</groupId>
+  <artifactId>camel-simple-su</artifactId>
+  <packaging>jbi-service-unit</packaging>
+  <name>ServiceMix :: Samples :: Camel :: Simple SU</name>
+
+  <dependencies>
+    <dependency>
+      <groupId>org.apache.servicemix</groupId>
+      <artifactId>servicemix-camel</artifactId>
+		  <version>3.2-incubating-SNAPSHOT</version>
+    </dependency>
+    <dependency>
+      <groupId>org.apache.servicemix</groupId>
+      <artifactId>servicemix-core</artifactId>
+		  <version>3.2-incubating-SNAPSHOT</version>
+      <scope>provided</scope>
+    </dependency>
+  </dependencies>
+
+  <build>
+    <defaultGoal>install</defaultGoal>
+    <plugins>
+      <plugin>
+        <groupId>org.apache.maven.plugins</groupId>
+        <artifactId>maven-compiler-plugin</artifactId>
+        <configuration>
+          <source>1.5</source>
+          <target>1.5</target>
+        </configuration>
+      </plugin>
+      <!-- creates the JBI deployment unit -->
+      <plugin>
+        <groupId>org.apache.servicemix.tooling</groupId>
+        <artifactId>jbi-maven-plugin</artifactId>
+        <extensions>true</extensions>
+      </plugin>
+      <!-- allows the route to be ran via 'mvn camel:run' -->
+      <plugin>
+        <groupId>org.apache.camel</groupId>
+        <artifactId>camel-maven-plugin</artifactId>
+      </plugin>
+    </plugins>
+  </build>
+</project>

Propchange: incubator/servicemix/trunk/samples/camel/camel-simple-su/pom.xml
------------------------------------------------------------------------------
    svn:eol-style = native

Added: incubator/servicemix/trunk/samples/camel/camel-simple-su/src/main/java/org/apache/servicemix/samples/MyRouteBuilder.java
URL: http://svn.apache.org/viewvc/incubator/servicemix/trunk/samples/camel/camel-simple-su/src/main/java/org/apache/servicemix/samples/MyRouteBuilder.java?rev=573225&view=auto
==============================================================================
--- incubator/servicemix/trunk/samples/camel/camel-simple-su/src/main/java/org/apache/servicemix/samples/MyRouteBuilder.java
(added)
+++ incubator/servicemix/trunk/samples/camel/camel-simple-su/src/main/java/org/apache/servicemix/samples/MyRouteBuilder.java
Thu Sep  6 04:45:21 2007
@@ -0,0 +1,32 @@
+/**
+ * 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.
+ */
+package org.apache.servicemix.samples;
+
+import org.apache.camel.builder.RouteBuilder;
+
+/**
+ * A Camel Router
+ *
+ * @version $Revision: 1.1 $
+ */
+public class MyRouteBuilder extends RouteBuilder {
+    public void configure() throws Exception {
+
+	    from("timer:myTimerEvent?fixedRate=true")
+			.setBody(constant("Hello World!")).to("log:org.apache.servicemix.samples.camel.ExampleCamelRoute");
+    }
+}

Propchange: incubator/servicemix/trunk/samples/camel/camel-simple-su/src/main/java/org/apache/servicemix/samples/MyRouteBuilder.java
------------------------------------------------------------------------------
    svn:eol-style = native

Added: incubator/servicemix/trunk/samples/camel/camel-simple-su/src/main/resources/camel-context.xml
URL: http://svn.apache.org/viewvc/incubator/servicemix/trunk/samples/camel/camel-simple-su/src/main/resources/camel-context.xml?rev=573225&view=auto
==============================================================================
--- incubator/servicemix/trunk/samples/camel/camel-simple-su/src/main/resources/camel-context.xml
(added)
+++ incubator/servicemix/trunk/samples/camel/camel-simple-su/src/main/resources/camel-context.xml
Thu Sep  6 04:45:21 2007
@@ -0,0 +1,31 @@
+<?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.
+
+-->
+<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.0.xsd
+       http://activemq.apache.org/camel/schema/spring http://activemq.apache.org/camel/schema/spring/camel-spring.xsd
+    ">
+
+	  <camelContext xmlns="http://activemq.apache.org/camel/schema/spring">
+	    <package>org.apache.servicemix.samples</package>
+	  </camelContext>
+
+</beans>

Propchange: incubator/servicemix/trunk/samples/camel/camel-simple-su/src/main/resources/camel-context.xml
------------------------------------------------------------------------------
    svn:eol-style = native

Added: incubator/servicemix/trunk/samples/camel/pom.xml
URL: http://svn.apache.org/viewvc/incubator/servicemix/trunk/samples/camel/pom.xml?rev=573225&view=auto
==============================================================================
--- incubator/servicemix/trunk/samples/camel/pom.xml (added)
+++ incubator/servicemix/trunk/samples/camel/pom.xml Thu Sep  6 04:45:21 2007
@@ -0,0 +1,100 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<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">
+
+<!--
+
+    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.
+-->
+
+    <modelVersion>4.0.0</modelVersion>
+
+    <parent>
+        <groupId>org.apache.servicemix</groupId>
+        <artifactId>samples</artifactId>
+        <version>3.2-incubating-SNAPSHOT</version>
+    </parent>
+
+    <groupId>org.apache.servicemix.samples</groupId>
+    <artifactId>camel</artifactId>
+    <name>ServiceMix :: Samples :: Camel</name>
+    <packaging>pom</packaging>
+    
+    <modules>
+      <module>camel-simple-su</module>
+      <module>camel-sa</module>
+    </modules>
+
+    <!-- Add ServiceMix repositories for snaphots and releases -->
+    <pluginRepositories>
+      <pluginRepository>
+        <id>apache.snapshots</id>
+        <name>Apache Snapshots Repository</name>
+        <url>http://people.apache.org/repo/m2-snapshot-repository</url>
+        <snapshots>
+          <enabled>true</enabled>
+        </snapshots>
+        <releases>
+           <enabled>false</enabled>
+        </releases>
+      </pluginRepository>
+      <pluginRepository>
+        <id>apache.incubating</id>
+        <name>Apache Incubating Repository</name>
+        <url>http://people.apache.org/repo/m2-incubating-repository</url>
+        <snapshots>
+          <enabled>false</enabled>
+        </snapshots>
+        <releases>
+           <enabled>true</enabled>
+        </releases>
+      </pluginRepository>
+    </pluginRepositories>
+    <repositories>
+      <repository>
+        <id>apache.snapshots</id>
+        <name>Apache Snapshots Repository</name>
+        <url>http://people.apache.org/repo/m2-snapshot-repository</url>
+        <snapshots>
+          <enabled>true</enabled>
+        </snapshots>
+        <releases>
+           <enabled>false</enabled>
+        </releases>
+      </repository>
+      <repository>
+        <id>apache.incubating</id>
+        <name>Apache Incubating Repository</name>
+        <url>http://people.apache.org/repo/m2-incubating-repository</url>
+        <snapshots>
+          <enabled>false</enabled>
+        </snapshots>
+        <releases>
+           <enabled>true</enabled>
+        </releases>
+      </repository>
+    </repositories>
+
+    <build>
+        <plugins>
+            <plugin>
+                <groupId>org.apache.servicemix.tooling</groupId>
+                <artifactId>jbi-maven-plugin</artifactId>
+                <extensions>true</extensions>
+            </plugin>
+        </plugins>
+    </build>
+</project>
+

Propchange: incubator/servicemix/trunk/samples/camel/pom.xml
------------------------------------------------------------------------------
    svn:eol-style = native



Mime
View raw message