streams-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From letourn...@apache.org
Subject svn commit: r1420432 - in /incubator/streams/trunk: streams-eip-routes/ streams-eip-routes/src/ streams-eip-routes/src/data/ streams-eip-routes/src/main/ streams-eip-routes/src/main/resources/ streams-eip-routes/src/main/webapp/ streams-eip-routes/src/...
Date Tue, 11 Dec 2012 21:40:03 GMT
Author: letourneau
Date: Tue Dec 11 21:40:01 2012
New Revision: 1420432

URL: http://svn.apache.org/viewvc?rev=1420432&view=rev
Log:
Adding web project for simple war deployment (using Camel archetype).  Depends on:

streams-eip-routes: WAR deployment of Camel routes - for hot deploy to service mix or for
Camel web app
streams-components-all: JAR packaging of all streams-osgi-components

Added:
    incubator/streams/trunk/streams-eip-routes/
    incubator/streams/trunk/streams-eip-routes/ReadMe.txt
    incubator/streams/trunk/streams-eip-routes/pom.xml
    incubator/streams/trunk/streams-eip-routes/src/
    incubator/streams/trunk/streams-eip-routes/src/data/
    incubator/streams/trunk/streams-eip-routes/src/data/message1.xml
    incubator/streams/trunk/streams-eip-routes/src/data/message2.xml
    incubator/streams/trunk/streams-eip-routes/src/data/message3.xml
    incubator/streams/trunk/streams-eip-routes/src/main/
    incubator/streams/trunk/streams-eip-routes/src/main/resources/
    incubator/streams/trunk/streams-eip-routes/src/main/webapp/
    incubator/streams/trunk/streams-eip-routes/src/main/webapp/WEB-INF/
    incubator/streams/trunk/streams-eip-routes/src/main/webapp/WEB-INF/applicationContext.xml
    incubator/streams/trunk/streams-osgi-components/streams-components-all/
    incubator/streams/trunk/streams-osgi-components/streams-components-all/pom.xml
    incubator/streams/trunk/streams-web/
    incubator/streams/trunk/streams-web/pom.xml
    incubator/streams/trunk/streams-web/src/
    incubator/streams/trunk/streams-web/src/main/
    incubator/streams/trunk/streams-web/src/main/resources/
    incubator/streams/trunk/streams-web/src/main/webapp/
    incubator/streams/trunk/streams-web/src/main/webapp/WEB-INF/
    incubator/streams/trunk/streams-web/src/main/webapp/WEB-INF/web.xml
    incubator/streams/trunk/streams-web/src/main/webapp/index.jsp
Modified:
    incubator/streams/trunk/streams-osgi-components/pom.xml

Added: incubator/streams/trunk/streams-eip-routes/ReadMe.txt
URL: http://svn.apache.org/viewvc/incubator/streams/trunk/streams-eip-routes/ReadMe.txt?rev=1420432&view=auto
==============================================================================
--- incubator/streams/trunk/streams-eip-routes/ReadMe.txt (added)
+++ incubator/streams/trunk/streams-eip-routes/ReadMe.txt Tue Dec 11 21:40:01 2012
@@ -0,0 +1,32 @@
+Camel Router WAR Project with Web Console and REST Support
+==========================================================
+
+This project bundles the Camel Web Console, REST API, and some
+sample routes as a WAR. You can build the WAR by running
+
+mvn install
+
+You can then run the project by dropping the WAR into your 
+favorite web container or just run
+
+mvn jetty:run
+
+to start up and deploy to Jetty.
+
+
+Web Console
+===========
+
+You can view the Web Console by pointing your browser to http://localhost:8080/
+
+You should be able to do things like
+
+    * browse the available endpoints
+    * browse the messages on an endpoint if it is a BrowsableEndpoint
+    * send a message to an endpoint
+    * create new endpoints
+
+For more help see the Apache Camel documentation
+
+    http://camel.apache.org/
+    

Added: incubator/streams/trunk/streams-eip-routes/pom.xml
URL: http://svn.apache.org/viewvc/incubator/streams/trunk/streams-eip-routes/pom.xml?rev=1420432&view=auto
==============================================================================
--- incubator/streams/trunk/streams-eip-routes/pom.xml (added)
+++ incubator/streams/trunk/streams-eip-routes/pom.xml Tue Dec 11 21:40:01 2012
@@ -0,0 +1,87 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<project xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"
xmlns="http://maven.apache.org/POM/4.0.0"
+    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
+  <modelVersion>4.0.0</modelVersion>
+  <parent>
+    <artifactId>streams-project</artifactId>
+    <groupId>org.apache.streams</groupId>
+    <version>0.1-SNAPSHOT</version>
+  </parent>
+  <groupId>org.apache.streams</groupId>
+  <artifactId>streams-eip-routes</artifactId>
+  <version>0.1-SNAPSHOT</version>
+  <packaging>war</packaging>
+  <name>Streams Enterprise Integration Patterns WAR</name>
+  <description>Camel project that deploys the Camel Web Console, REST API, and your
routes as a WAR</description>
+  <url>http://www.myorganization.org</url>
+  <properties>
+    <activemq-version>5.4.2</activemq-version>
+    <camel-version>2.6.0</camel-version>
+    <jetty-version>7.2.2.v20101205</jetty-version>
+    <xbean-spring-version>3.5</xbean-spring-version>
+  </properties>
+  <dependencies>
+    <dependency>
+      <groupId>org.apache.camel</groupId>
+      <artifactId>camel-web</artifactId>
+      <version>${camel-version}</version>
+      <type>war</type>
+      <scope>runtime</scope>
+    </dependency>
+    <dependency>
+      <groupId>org.apache.activemq</groupId>
+      <artifactId>activemq-camel</artifactId>
+      <version>${activemq-version}</version>
+    </dependency>
+    <dependency>
+      <groupId>org.apache.xbean</groupId>
+      <artifactId>xbean-spring</artifactId>
+      <version>${xbean-spring-version}</version>
+    </dependency>
+    <dependency>
+      <groupId>org.apache.camel</groupId>
+      <artifactId>camel-jms</artifactId>
+      <version>${camel-version}</version>
+    </dependency>
+    <dependency>
+      <groupId>org.apache.camel</groupId>
+      <artifactId>camel-stream</artifactId>
+      <version>${camel-version}</version>
+    </dependency>
+  </dependencies>
+  <build>
+    <defaultGoal>install</defaultGoal>
+    <plugins>
+      <plugin>
+        <artifactId>maven-compiler-plugin</artifactId>
+        <version>2.3.2</version>
+        <configuration>
+          <source>1.5</source>
+          <target>1.5</target>
+        </configuration>
+      </plugin>
+      <plugin>
+        <groupId>org.apache.camel</groupId>
+        <artifactId>camel-maven-plugin</artifactId>
+        <version>${camel-version}</version>
+      </plugin>
+      <plugin>
+        <groupId>org.mortbay.jetty</groupId>
+        <artifactId>jetty-maven-plugin</artifactId>
+        <version>${jetty-version}</version>
+        <configuration>
+          <webAppConfig>
+            <contextPath>/</contextPath>
+          </webAppConfig>
+          <systemProperties>
+            <systemProperty>
+              <name>com.sun.management.jmxremote</name>
+              <value />
+            </systemProperty>
+          </systemProperties>
+          <scanIntervalSeconds>10</scanIntervalSeconds>
+        </configuration>
+      </plugin>
+    </plugins>
+  </build>
+</project>

Added: incubator/streams/trunk/streams-eip-routes/src/data/message1.xml
URL: http://svn.apache.org/viewvc/incubator/streams/trunk/streams-eip-routes/src/data/message1.xml?rev=1420432&view=auto
==============================================================================
--- incubator/streams/trunk/streams-eip-routes/src/data/message1.xml (added)
+++ incubator/streams/trunk/streams-eip-routes/src/data/message1.xml Tue Dec 11 21:40:01 2012
@@ -0,0 +1,22 @@
+<?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.
+-->
+<person user="james">
+  <firstName>James</firstName>
+  <lastName>Strachan</lastName>
+  <city>London</city>
+</person>
\ No newline at end of file

Added: incubator/streams/trunk/streams-eip-routes/src/data/message2.xml
URL: http://svn.apache.org/viewvc/incubator/streams/trunk/streams-eip-routes/src/data/message2.xml?rev=1420432&view=auto
==============================================================================
--- incubator/streams/trunk/streams-eip-routes/src/data/message2.xml (added)
+++ incubator/streams/trunk/streams-eip-routes/src/data/message2.xml Tue Dec 11 21:40:01 2012
@@ -0,0 +1,22 @@
+<?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.
+-->
+<person user="hiram">
+  <firstName>Hiram</firstName>
+  <lastName>Chirino</lastName>
+  <city>Tampa</city>
+</person>
\ No newline at end of file

Added: incubator/streams/trunk/streams-eip-routes/src/data/message3.xml
URL: http://svn.apache.org/viewvc/incubator/streams/trunk/streams-eip-routes/src/data/message3.xml?rev=1420432&view=auto
==============================================================================
--- incubator/streams/trunk/streams-eip-routes/src/data/message3.xml (added)
+++ incubator/streams/trunk/streams-eip-routes/src/data/message3.xml Tue Dec 11 21:40:01 2012
@@ -0,0 +1,22 @@
+<?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.
+-->
+<person user="jon">
+  <firstName>Jonathan</firstName>
+  <lastName>Anstey</lastName>
+  <city>St. John's</city>
+</person>

Added: incubator/streams/trunk/streams-eip-routes/src/main/webapp/WEB-INF/applicationContext.xml
URL: http://svn.apache.org/viewvc/incubator/streams/trunk/streams-eip-routes/src/main/webapp/WEB-INF/applicationContext.xml?rev=1420432&view=auto
==============================================================================
--- incubator/streams/trunk/streams-eip-routes/src/main/webapp/WEB-INF/applicationContext.xml
(added)
+++ incubator/streams/trunk/streams-eip-routes/src/main/webapp/WEB-INF/applicationContext.xml
Tue Dec 11 21:40:01 2012
@@ -0,0 +1,99 @@
+<?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" xmlns:context="http://www.springframework.org/schema/context"
+    xmlns:amq="http://activemq.apache.org/schema/core" xmlns:camel="http://camel.apache.org/schema/spring"
+    xmlns:p="http://www.springframework.org/schema/p"
+    xsi:schemaLocation="
+       http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans.xsd
+       http://www.springframework.org/schema/context http://www.springframework.org/schema/context/spring-context.xsd
+       http://activemq.apache.org/schema/core http://activemq.apache.org/schema/core/activemq-core.xsd
+       http://camel.apache.org/schema/spring http://camel.apache.org/schema/spring/camel-spring.xsd
+    ">
+
+    <amq:broker>
+        <amq:persistenceAdapter>
+            <amq:amqPersistenceAdapter syncOnWrite="false"
+                directory="${activemq.base}/data" maxFileLength="20 mb" />
+        </amq:persistenceAdapter>
+        <!--
+            The maximum about of space the broker will use before slowing down
+            producers
+        -->
+        <amq:systemUsage>
+            <amq:systemUsage>
+                <amq:memoryUsage>
+                    <amq:memoryUsage limit="20 mb" />
+                </amq:memoryUsage>
+                <amq:storeUsage>
+                    <amq:storeUsage limit="1 gb" name="foo" />
+                </amq:storeUsage>
+                <amq:tempUsage>
+                    <amq:tempUsage limit="100 mb" />
+                </amq:tempUsage>
+            </amq:systemUsage>
+        </amq:systemUsage>
+
+        <!-- The transport connectors ActiveMQ will listen to -->
+        <amq:transportConnectors>
+            <amq:transportConnector name="openwire"
+                uri="tcp://localhost:61616" />
+            <amq:transportConnector name="stomp"
+                uri="stomp://localhost:61613" />
+        </amq:transportConnectors>
+    </amq:broker>
+
+    <!--
+        configure the camel activemq component to use the current broker
+    -->
+        <!-- create the activemq component so that we can use the activemq uri -->
+    <bean id="activemq" class="org.apache.activemq.camel.component.ActiveMQComponent"
+        p:brokerURL="vm://localhost?create=false&amp;waitForStart=10000" />
+
+    <!--
+        Here is a sample which processes the input files (leaving them in
+        place - see the 'noop' flag), and sends them on a JMS queue. This
+        queue is watched by another route which then performs content based
+        routing on the messages using XPath.
+    -->
+    <camel:camelContext>
+        <camel:package>org.apache.streams</camel:package>
+        <camel:route>
+            <camel:from uri="file:src/data?noop=true" />
+            <!-- Print the message to standard out, just as a test -->
+            <camel:convertBodyTo type="java.lang.String" />
+            <camel:to uri="stream:out" />
+            <camel:to uri="activemq:personnel.records" />
+        </camel:route>
+
+        <camel:route>
+            <camel:from uri="activemq:personnel.records" />
+            <camel:choice>
+                <camel:when>
+                    <camel:xpath>/person/city = 'London'</camel:xpath>
+                    <camel:to uri="file:target/messages/uk" />
+                </camel:when>
+                <camel:otherwise>
+                    <camel:to uri="file:target/messages/others" />
+                </camel:otherwise>
+            </camel:choice>
+        </camel:route>
+    </camel:camelContext>
+
+</beans>

Modified: incubator/streams/trunk/streams-osgi-components/pom.xml
URL: http://svn.apache.org/viewvc/incubator/streams/trunk/streams-osgi-components/pom.xml?rev=1420432&r1=1420431&r2=1420432&view=diff
==============================================================================
--- incubator/streams/trunk/streams-osgi-components/pom.xml (original)
+++ incubator/streams/trunk/streams-osgi-components/pom.xml Tue Dec 11 21:40:01 2012
@@ -19,6 +19,7 @@
 
   <modules>
     <module>activity-publisher-registration</module>
+    <module>streams-components-all</module>
   </modules>
 
 </project>
\ No newline at end of file

Added: incubator/streams/trunk/streams-osgi-components/streams-components-all/pom.xml
URL: http://svn.apache.org/viewvc/incubator/streams/trunk/streams-osgi-components/streams-components-all/pom.xml?rev=1420432&view=auto
==============================================================================
--- incubator/streams/trunk/streams-osgi-components/streams-components-all/pom.xml (added)
+++ incubator/streams/trunk/streams-osgi-components/streams-components-all/pom.xml Tue Dec
11 21:40:01 2012
@@ -0,0 +1,45 @@
+<?xml version="1.0" encoding="MACROMAN"?>
+<project xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://maven.apache.org/POM/4.0.0"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
+
+  <parent>
+    <groupId>org.apache.streams.osgi-components</groupId>
+    <artifactId>streams-osgi-components</artifactId>
+    <version>0.1-SNAPSHOT</version>
+  </parent>
+
+  <modelVersion>4.0.0</modelVersion>
+  <groupId>org.apache.streams</groupId>
+  <artifactId>streams-components-all</artifactId>
+  <version>0.1-SNAPSHOT</version>
+
+  <name>Apache Streams Components</name>
+
+    <dependencies>
+        <dependency>
+            <groupId>org.apache.streams.osgi-components</groupId>
+            <artifactId>activity-publisher-registration</artifactId>
+            <version>0.1-SNAPSHOT</version>
+        </dependency>
+    </dependencies>
+
+  <packaging>jar</packaging>
+
+    <build>
+     <plugins>
+      <plugin>
+        <groupId>org.apache.maven.plugins</groupId>
+        <artifactId>maven-shade-plugin</artifactId>
+        <version>2.0</version>
+        <executions>
+            <execution>
+                <phase>package</phase>
+                <goals>
+                    <goal>shade</goal>
+                </goals>
+            </execution>
+        </executions>
+      </plugin>
+     </plugins>
+    </build>
+
+</project>
\ No newline at end of file

Added: incubator/streams/trunk/streams-web/pom.xml
URL: http://svn.apache.org/viewvc/incubator/streams/trunk/streams-web/pom.xml?rev=1420432&view=auto
==============================================================================
--- incubator/streams/trunk/streams-web/pom.xml (added)
+++ incubator/streams/trunk/streams-web/pom.xml Tue Dec 11 21:40:01 2012
@@ -0,0 +1,42 @@
+<?xml version="1.0"?>
+<project xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"
xmlns="http://maven.apache.org/POM/4.0.0"
+    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
+  <modelVersion>4.0.0</modelVersion>
+  <parent>
+    <artifactId>streams-project</artifactId>
+    <groupId>org.apache.streams</groupId>
+    <version>0.1-SNAPSHOT</version>
+  </parent>
+  <groupId>org.apache.streams</groupId>
+  <artifactId>streams-web</artifactId>
+  <version>0.1-SNAPSHOT</version>
+  <packaging>war</packaging>
+  <name>streams-web Maven Webapp</name>
+  <url>http://maven.apache.org</url>
+  <dependencies>
+    <dependency>
+      <groupId>junit</groupId>
+      <artifactId>junit</artifactId>
+      <version>3.8.1</version>
+      <scope>test</scope>
+    </dependency>
+
+     <dependency>
+         <groupId>org.apache.streams</groupId>
+         <artifactId>streams-eip-routes</artifactId>
+         <version>0.1-SNAPSHOT</version>
+         <type>war</type>
+         <scope>runtime</scope>
+     </dependency>
+
+      <dependency>
+          <groupId>org.apache.streams</groupId>
+          <artifactId>streams-components-all</artifactId>
+          <version>0.1-SNAPSHOT</version>
+      </dependency>
+
+  </dependencies>
+  <build>
+    <finalName>streams-web</finalName>
+  </build>
+</project>

Added: incubator/streams/trunk/streams-web/src/main/webapp/WEB-INF/web.xml
URL: http://svn.apache.org/viewvc/incubator/streams/trunk/streams-web/src/main/webapp/WEB-INF/web.xml?rev=1420432&view=auto
==============================================================================
--- incubator/streams/trunk/streams-web/src/main/webapp/WEB-INF/web.xml (added)
+++ incubator/streams/trunk/streams-web/src/main/webapp/WEB-INF/web.xml Tue Dec 11 21:40:01
2012
@@ -0,0 +1,7 @@
+<!DOCTYPE web-app PUBLIC
+ "-//Sun Microsystems, Inc.//DTD Web Application 2.3//EN"
+ "http://java.sun.com/dtd/web-app_2_3.dtd" >
+
+<web-app>
+  <display-name>Archetype Created Web Application</display-name>
+</web-app>

Added: incubator/streams/trunk/streams-web/src/main/webapp/index.jsp
URL: http://svn.apache.org/viewvc/incubator/streams/trunk/streams-web/src/main/webapp/index.jsp?rev=1420432&view=auto
==============================================================================
--- incubator/streams/trunk/streams-web/src/main/webapp/index.jsp (added)
+++ incubator/streams/trunk/streams-web/src/main/webapp/index.jsp Tue Dec 11 21:40:01 2012
@@ -0,0 +1,5 @@
+<html>
+<body>
+<h2>Hello World!</h2>
+</body>
+</html>



Mime
View raw message