You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@servicemix.apache.org by lh...@apache.org on 2008/12/08 23:52:30 UTC

svn commit: r724542 - in /servicemix/archetypes/trunk: ./ servicemix-quartz-service-unit/ servicemix-quartz-service-unit/src/ servicemix-quartz-service-unit/src/main/ servicemix-quartz-service-unit/src/main/resources/ servicemix-quartz-service-unit/src...

Author: lhein
Date: Mon Dec  8 14:52:29 2008
New Revision: 724542

URL: http://svn.apache.org/viewvc?rev=724542&view=rev
Log:
added quartz service unit archetype (SM-1371)

Added:
    servicemix/archetypes/trunk/servicemix-quartz-service-unit/   (with props)
    servicemix/archetypes/trunk/servicemix-quartz-service-unit/pom.xml   (with props)
    servicemix/archetypes/trunk/servicemix-quartz-service-unit/src/
    servicemix/archetypes/trunk/servicemix-quartz-service-unit/src/main/
    servicemix/archetypes/trunk/servicemix-quartz-service-unit/src/main/resources/
    servicemix/archetypes/trunk/servicemix-quartz-service-unit/src/main/resources/META-INF/
    servicemix/archetypes/trunk/servicemix-quartz-service-unit/src/main/resources/META-INF/maven/
    servicemix/archetypes/trunk/servicemix-quartz-service-unit/src/main/resources/META-INF/maven/archetype.xml   (with props)
    servicemix/archetypes/trunk/servicemix-quartz-service-unit/src/main/resources/archetype-resources/
    servicemix/archetypes/trunk/servicemix-quartz-service-unit/src/main/resources/archetype-resources/pom.xml   (with props)
    servicemix/archetypes/trunk/servicemix-quartz-service-unit/src/main/resources/archetype-resources/src/
    servicemix/archetypes/trunk/servicemix-quartz-service-unit/src/main/resources/archetype-resources/src/main/
    servicemix/archetypes/trunk/servicemix-quartz-service-unit/src/main/resources/archetype-resources/src/main/resources/
    servicemix/archetypes/trunk/servicemix-quartz-service-unit/src/main/resources/archetype-resources/src/main/resources/xbean.xml   (with props)
Modified:
    servicemix/archetypes/trunk/pom.xml

Modified: servicemix/archetypes/trunk/pom.xml
URL: http://svn.apache.org/viewvc/servicemix/archetypes/trunk/pom.xml?rev=724542&r1=724541&r2=724542&view=diff
==============================================================================
--- servicemix/archetypes/trunk/pom.xml (original)
+++ servicemix/archetypes/trunk/pom.xml Mon Dec  8 14:52:29 2008
@@ -70,6 +70,7 @@
     <module>servicemix-scripting-service-unit</module>
     <module>servicemix-snmp-service-unit</module>
     <module>servicemix-validation-service-unit</module>
+    <module>servicemix-quartz-service-unit</module>
     <module>servicemix-archetype-catalog</module>
     <module>servicemix-osgi-camel-archetype</module>
     <module>servicemix-osgi-cxf-code-first-archetype</module>

Propchange: servicemix/archetypes/trunk/servicemix-quartz-service-unit/
------------------------------------------------------------------------------
--- svn:ignore (added)
+++ svn:ignore Mon Dec  8 14:52:29 2008
@@ -0,0 +1 @@
+target

Added: servicemix/archetypes/trunk/servicemix-quartz-service-unit/pom.xml
URL: http://svn.apache.org/viewvc/servicemix/archetypes/trunk/servicemix-quartz-service-unit/pom.xml?rev=724542&view=auto
==============================================================================
--- servicemix/archetypes/trunk/servicemix-quartz-service-unit/pom.xml (added)
+++ servicemix/archetypes/trunk/servicemix-quartz-service-unit/pom.xml Mon Dec  8 14:52:29 2008
@@ -0,0 +1,33 @@
+<?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</groupId>
+    <artifactId>archetypes</artifactId>
+    <version>2008.01-SNAPSHOT</version>
+  </parent>
+
+  <groupId>org.apache.servicemix.tooling</groupId>
+  <artifactId>servicemix-quartz-service-unit</artifactId>
+  <name>ServiceMix :: Archetypes :: QuartzServiceUnit</name>
+
+</project>

Propchange: servicemix/archetypes/trunk/servicemix-quartz-service-unit/pom.xml
------------------------------------------------------------------------------
    svn:executable = *

Propchange: servicemix/archetypes/trunk/servicemix-quartz-service-unit/pom.xml
------------------------------------------------------------------------------
    svn:mime-type = text/plain

Added: servicemix/archetypes/trunk/servicemix-quartz-service-unit/src/main/resources/META-INF/maven/archetype.xml
URL: http://svn.apache.org/viewvc/servicemix/archetypes/trunk/servicemix-quartz-service-unit/src/main/resources/META-INF/maven/archetype.xml?rev=724542&view=auto
==============================================================================
--- servicemix/archetypes/trunk/servicemix-quartz-service-unit/src/main/resources/META-INF/maven/archetype.xml (added)
+++ servicemix/archetypes/trunk/servicemix-quartz-service-unit/src/main/resources/META-INF/maven/archetype.xml Mon Dec  8 14:52:29 2008
@@ -0,0 +1,25 @@
+<?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>servicemix-su</id>
+  <resources>
+    <resource>src/main/resources/xbean.xml</resource>   
+  </resources>
+</archetype>

Propchange: servicemix/archetypes/trunk/servicemix-quartz-service-unit/src/main/resources/META-INF/maven/archetype.xml
------------------------------------------------------------------------------
    svn:executable = *

Propchange: servicemix/archetypes/trunk/servicemix-quartz-service-unit/src/main/resources/META-INF/maven/archetype.xml
------------------------------------------------------------------------------
    svn:mime-type = text/plain

Added: servicemix/archetypes/trunk/servicemix-quartz-service-unit/src/main/resources/archetype-resources/pom.xml
URL: http://svn.apache.org/viewvc/servicemix/archetypes/trunk/servicemix-quartz-service-unit/src/main/resources/archetype-resources/pom.xml?rev=724542&view=auto
==============================================================================
--- servicemix/archetypes/trunk/servicemix-quartz-service-unit/src/main/resources/archetype-resources/pom.xml (added)
+++ servicemix/archetypes/trunk/servicemix-quartz-service-unit/src/main/resources/archetype-resources/pom.xml Mon Dec  8 14:52:29 2008
@@ -0,0 +1,57 @@
+<?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 quartz service unit</name>
+  <url>http://www.myorganization.org</url>
+
+  @{repositories}
+
+  <properties>
+    <componentName>servicemix-quartz</componentName>
+  </properties>
+  
+  <build>
+    <resources>
+      <resource>
+        <directory>src/main/resources</directory>
+        <includes>
+          <include>**/*</include>
+        </includes>
+      </resource>
+    </resources>
+    <plugins>
+      <plugin>
+        <groupId>org.apache.servicemix.tooling</groupId>
+        <artifactId>jbi-maven-plugin</artifactId>
+        <version>@{jbi-maven-plugin-version}</version>
+        <extensions>true</extensions>
+        <configuration>
+          <type>service-unit</type>
+        </configuration>
+      </plugin>
+    </plugins>
+  </build>
+</project>

Propchange: servicemix/archetypes/trunk/servicemix-quartz-service-unit/src/main/resources/archetype-resources/pom.xml
------------------------------------------------------------------------------
    svn:executable = *

Propchange: servicemix/archetypes/trunk/servicemix-quartz-service-unit/src/main/resources/archetype-resources/pom.xml
------------------------------------------------------------------------------
    svn:mime-type = text/plain

Added: servicemix/archetypes/trunk/servicemix-quartz-service-unit/src/main/resources/archetype-resources/src/main/resources/xbean.xml
URL: http://svn.apache.org/viewvc/servicemix/archetypes/trunk/servicemix-quartz-service-unit/src/main/resources/archetype-resources/src/main/resources/xbean.xml?rev=724542&view=auto
==============================================================================
--- servicemix/archetypes/trunk/servicemix-quartz-service-unit/src/main/resources/archetype-resources/src/main/resources/xbean.xml (added)
+++ servicemix/archetypes/trunk/servicemix-quartz-service-unit/src/main/resources/archetype-resources/src/main/resources/xbean.xml Mon Dec  8 14:52:29 2008
@@ -0,0 +1,65 @@
+<?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:scripting="http://servicemix.apache.org/quartz/1.0"
+       xmlns:replaceMe="http://servicemix.apache.org/replaceMe"
+       xmlns="http://www.springframework.org/schema/beans"
+       xmlns:xsi="http://http://www.w3.org/2001/XMLSchema-instance"
+       xsi:schemaLocation="http://servicemix.apache.org/quartz/1.0 http://servicemix.apache.org/schema/servicemix-quartz-@{servicemix-version}.xsd
+       http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-2.0.xsd">
+
+    <!-- Cron trigger endpoint -->
+	<quartz:endpoint service="replaceMe:service" endpoint="endpoint1" targetService="replaceMe:receiver1">
+	  <quartz:trigger>
+	    <quartz:cron cronExpression="0/5 * * * * ?" />
+	  </quartz:trigger>
+	</quartz:endpoint>
+	
+	<!-- Simple trigger endpoint -->
+	<quartz:endpoint service="replaceMe:service" endpoint="endpoint2" targetService="replaceMe:receiver2">
+	  <quartz:trigger>
+	    <quartz:simple repeatCount="0" repeatInterval="1000" />
+	  </quartz:trigger>
+	</quartz:endpoint>
+
+    <!-- Custom marshaler -->
+    <quartz:endpoint service="replaceMe:service" endpoint="endpoint3" targetService="replaceMe:receiver3">
+	  <quartz:jobDetail>
+	    <quartz:jobDetail>
+	      <quartz:jobDataAsMap>
+	        <quartz:property key="xml"><![CDATA[
+	          <hello>world</hello>
+	        ]]></quartz:property>
+	      </quartz:jobDataAsMap>
+	    </quartz:jobDetail>
+	  </quartz:jobDetail>
+	  
+	  <quartz:triggers>
+	    <quartz:simple repeatCount="0" repeatInterval="1000" />
+	    <quartz:cron cronExpression="0 * 1 * * ?" />
+	  </quartz:triggers>
+	  
+	  <quartz:marshaler>
+	    <bean class="org.apache.servicemix.quartz.CustomMarshaler" />
+	  </quartz:marshaler>
+	  
+	</quartz:endpoint>
+	
+</beans>

Propchange: servicemix/archetypes/trunk/servicemix-quartz-service-unit/src/main/resources/archetype-resources/src/main/resources/xbean.xml
------------------------------------------------------------------------------
    svn:executable = *

Propchange: servicemix/archetypes/trunk/servicemix-quartz-service-unit/src/main/resources/archetype-resources/src/main/resources/xbean.xml
------------------------------------------------------------------------------
    svn:mime-type = text/plain