You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@camel.apache.org by js...@apache.org on 2007/06/28 18:46:23 UTC
svn commit: r551620 - in
/activemq/camel/trunk/tooling/archetypes/camel-jbi-service-engine: ./ src/
src/main/ src/main/resources/ src/main/resources/META-INF/
src/main/resources/META-INF/maven/ src/main/resources/archetype-resources/
src/main/resources...
Author: jstrachan
Date: Thu Jun 28 09:46:21 2007
New Revision: 551620
URL: http://svn.apache.org/viewvc?view=rev&rev=551620
Log:
Added JBI service unit archetype
Added:
activemq/camel/trunk/tooling/archetypes/camel-jbi-service-engine/
activemq/camel/trunk/tooling/archetypes/camel-jbi-service-engine/pom.xml (with props)
activemq/camel/trunk/tooling/archetypes/camel-jbi-service-engine/src/
activemq/camel/trunk/tooling/archetypes/camel-jbi-service-engine/src/main/
activemq/camel/trunk/tooling/archetypes/camel-jbi-service-engine/src/main/resources/
activemq/camel/trunk/tooling/archetypes/camel-jbi-service-engine/src/main/resources/META-INF/
activemq/camel/trunk/tooling/archetypes/camel-jbi-service-engine/src/main/resources/META-INF/maven/
activemq/camel/trunk/tooling/archetypes/camel-jbi-service-engine/src/main/resources/META-INF/maven/archetype.xml (with props)
activemq/camel/trunk/tooling/archetypes/camel-jbi-service-engine/src/main/resources/archetype-resources/
activemq/camel/trunk/tooling/archetypes/camel-jbi-service-engine/src/main/resources/archetype-resources/pom.xml (with props)
activemq/camel/trunk/tooling/archetypes/camel-jbi-service-engine/src/main/resources/archetype-resources/src/
activemq/camel/trunk/tooling/archetypes/camel-jbi-service-engine/src/main/resources/archetype-resources/src/main/
activemq/camel/trunk/tooling/archetypes/camel-jbi-service-engine/src/main/resources/archetype-resources/src/main/java/
activemq/camel/trunk/tooling/archetypes/camel-jbi-service-engine/src/main/resources/archetype-resources/src/main/java/MyRouteBuilder.java (with props)
activemq/camel/trunk/tooling/archetypes/camel-jbi-service-engine/src/main/resources/archetype-resources/src/main/resources/
activemq/camel/trunk/tooling/archetypes/camel-jbi-service-engine/src/main/resources/archetype-resources/src/main/resources/camel-context.xml (with props)
Added: activemq/camel/trunk/tooling/archetypes/camel-jbi-service-engine/pom.xml
URL: http://svn.apache.org/viewvc/activemq/camel/trunk/tooling/archetypes/camel-jbi-service-engine/pom.xml?view=auto&rev=551620
==============================================================================
--- activemq/camel/trunk/tooling/archetypes/camel-jbi-service-engine/pom.xml (added)
+++ activemq/camel/trunk/tooling/archetypes/camel-jbi-service-engine/pom.xml Thu Jun 28 09:46:21 2007
@@ -0,0 +1,34 @@
+<?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>camel-parent</artifactId>
+ <version>1.0-SNAPSHOT</version>
+ </parent>
+
+ <artifactId>camel-jbi-service-unit</artifactId>
+ <name>Camel :: Archetypes :: JBI Service Unit</name>
+
+</project>
Propchange: activemq/camel/trunk/tooling/archetypes/camel-jbi-service-engine/pom.xml
------------------------------------------------------------------------------
svn:eol-style = native
Added: activemq/camel/trunk/tooling/archetypes/camel-jbi-service-engine/src/main/resources/META-INF/maven/archetype.xml
URL: http://svn.apache.org/viewvc/activemq/camel/trunk/tooling/archetypes/camel-jbi-service-engine/src/main/resources/META-INF/maven/archetype.xml?view=auto&rev=551620
==============================================================================
--- activemq/camel/trunk/tooling/archetypes/camel-jbi-service-engine/src/main/resources/META-INF/maven/archetype.xml (added)
+++ activemq/camel/trunk/tooling/archetypes/camel-jbi-service-engine/src/main/resources/META-INF/maven/archetype.xml Thu Jun 28 09:46:21 2007
@@ -0,0 +1,29 @@
+<?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.
+
+-->
+<archetype>
+ <id>camel-jbi-service-unit</id>
+
+ <sources>
+ <source>src/main/java/MyRouteBuilder.java</source>
+ </sources>
+ <resources>
+ <resource>src/main/resources/camel-context.xml</resource>
+ </resources>
+</archetype>
Propchange: activemq/camel/trunk/tooling/archetypes/camel-jbi-service-engine/src/main/resources/META-INF/maven/archetype.xml
------------------------------------------------------------------------------
svn:eol-style = native
Added: activemq/camel/trunk/tooling/archetypes/camel-jbi-service-engine/src/main/resources/archetype-resources/pom.xml
URL: http://svn.apache.org/viewvc/activemq/camel/trunk/tooling/archetypes/camel-jbi-service-engine/src/main/resources/archetype-resources/pom.xml?view=auto&rev=551620
==============================================================================
--- activemq/camel/trunk/tooling/archetypes/camel-jbi-service-engine/src/main/resources/archetype-resources/pom.xml (added)
+++ activemq/camel/trunk/tooling/archetypes/camel-jbi-service-engine/src/main/resources/archetype-resources/pom.xml Thu Jun 28 09:46:21 2007
@@ -0,0 +1,84 @@
+<?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>
+
+ <groupId>${groupId}</groupId>
+ <artifactId>${artifactId}</artifactId>
+ <packaging>jbi-service-unit</packaging>
+ <version>${version}</version>
+
+ <name>A Camel based JBI Service Unit</name>
+
+ <url>http://www.myorganization.org</url>
+
+ <properties>
+ <camel-version>1.0-SNAPSHOT</camel-version>
+ <servicemix-version>3.2-incubating-SNAPSHOT</servicemix-version>
+ </properties>
+
+ <dependencies>
+ <dependency>
+ <groupId>org.apache.camel</groupId>
+ <artifactId>camel-jbi</artifactId>
+ <version>${camel-version}</version>
+ </dependency>
+
+ <dependency>
+ <groupId>org.apache.servicemix</groupId>
+ <artifactId>servicemix-core</artifactId>
+ <version>${servicemix-version}</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>
+ <version>${servicemix-version}</version>
+ <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>
+ <version>${camel-version}</version>
+ </plugin>
+
+ </plugins>
+ </build>
+</project>
Propchange: activemq/camel/trunk/tooling/archetypes/camel-jbi-service-engine/src/main/resources/archetype-resources/pom.xml
------------------------------------------------------------------------------
svn:eol-style = native
Added: activemq/camel/trunk/tooling/archetypes/camel-jbi-service-engine/src/main/resources/archetype-resources/src/main/java/MyRouteBuilder.java
URL: http://svn.apache.org/viewvc/activemq/camel/trunk/tooling/archetypes/camel-jbi-service-engine/src/main/resources/archetype-resources/src/main/java/MyRouteBuilder.java?view=auto&rev=551620
==============================================================================
--- activemq/camel/trunk/tooling/archetypes/camel-jbi-service-engine/src/main/resources/archetype-resources/src/main/java/MyRouteBuilder.java (added)
+++ activemq/camel/trunk/tooling/archetypes/camel-jbi-service-engine/src/main/resources/archetype-resources/src/main/java/MyRouteBuilder.java Thu Jun 28 09:46:21 2007
@@ -0,0 +1,38 @@
+/**
+ *
+ * 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 ${packageName};
+
+import org.apache.camel.Exchange;
+import org.apache.camel.Processor;
+import org.apache.camel.builder.RouteBuilder;
+
+/**
+ * A Camel Router
+ *
+ * @version $Revision: 1.1 $
+ */
+public class MyRouteBuilder extends RouteBuilder {
+
+ public void configure() {
+
+ // TODO create Camel routes here. For example:-
+ //
+ // from("activemq:test.MyQueue").to("file://test");
+
+ }
+}
Propchange: activemq/camel/trunk/tooling/archetypes/camel-jbi-service-engine/src/main/resources/archetype-resources/src/main/java/MyRouteBuilder.java
------------------------------------------------------------------------------
svn:eol-style = native
Added: activemq/camel/trunk/tooling/archetypes/camel-jbi-service-engine/src/main/resources/archetype-resources/src/main/resources/camel-context.xml
URL: http://svn.apache.org/viewvc/activemq/camel/trunk/tooling/archetypes/camel-jbi-service-engine/src/main/resources/archetype-resources/src/main/resources/camel-context.xml?view=auto&rev=551620
==============================================================================
--- activemq/camel/trunk/tooling/archetypes/camel-jbi-service-engine/src/main/resources/archetype-resources/src/main/resources/camel-context.xml (added)
+++ activemq/camel/trunk/tooling/archetypes/camel-jbi-service-engine/src/main/resources/archetype-resources/src/main/resources/camel-context.xml Thu Jun 28 09:46:21 2007
@@ -0,0 +1,39 @@
+<?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.
+
+-->
+<!-- START SNIPPET: camel -->
+<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
+ ">
+
+ <!--
+ from("queue:a").to("queue:b");
+ -->
+ <camelContext id="camel" xmlns="http://activemq.apache.org/camel/schema/spring">
+ <route>
+ <from uri="queue:a"/>
+ <to uri="queue:b"/>
+ </route>
+ </camelContext>
+
+</beans>
+<!-- END SNIPPET: camel -->
Propchange: activemq/camel/trunk/tooling/archetypes/camel-jbi-service-engine/src/main/resources/archetype-resources/src/main/resources/camel-context.xml
------------------------------------------------------------------------------
svn:eol-style = native