summaryrefslogtreecommitdiffstats
path: root/sandbox/ant/sample.script.async/src/main/resources
diff options
context:
space:
mode:
Diffstat (limited to 'sandbox/ant/sample.script.async/src/main/resources')
-rw-r--r--sandbox/ant/sample.script.async/src/main/resources/AsyncServiceImpl.componentType8
-rw-r--r--sandbox/ant/sample.script.async/src/main/resources/AsyncServiceImpl.js7
-rw-r--r--sandbox/ant/sample.script.async/src/main/resources/META-INF/sca/default.scdl33
3 files changed, 48 insertions, 0 deletions
diff --git a/sandbox/ant/sample.script.async/src/main/resources/AsyncServiceImpl.componentType b/sandbox/ant/sample.script.async/src/main/resources/AsyncServiceImpl.componentType
new file mode 100644
index 0000000000..f6bf9c7752
--- /dev/null
+++ b/sandbox/ant/sample.script.async/src/main/resources/AsyncServiceImpl.componentType
@@ -0,0 +1,8 @@
+<?xml version="1.0" encoding="ASCII"?>
+<componentType xmlns="http://www.osoa.org/xmlns/sca/1.0" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
+
+ <service name="OneWayService">
+ <interface.java interface="sample.AsyncService"/>
+ </service>
+
+</componentType>
diff --git a/sandbox/ant/sample.script.async/src/main/resources/AsyncServiceImpl.js b/sandbox/ant/sample.script.async/src/main/resources/AsyncServiceImpl.js
new file mode 100644
index 0000000000..fbde7da611
--- /dev/null
+++ b/sandbox/ant/sample.script.async/src/main/resources/AsyncServiceImpl.js
@@ -0,0 +1,7 @@
+function doitOneWay(s) {
+ java.lang.System.out.println(
+ "function doitOneWay received '" + s + "' on thread " + java.lang.Thread.currentThread());
+}
+
+
+
diff --git a/sandbox/ant/sample.script.async/src/main/resources/META-INF/sca/default.scdl b/sandbox/ant/sample.script.async/src/main/resources/META-INF/sca/default.scdl
new file mode 100644
index 0000000000..1797974c75
--- /dev/null
+++ b/sandbox/ant/sample.script.async/src/main/resources/META-INF/sca/default.scdl
@@ -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.
+-->
+<composite xmlns="http://www.osoa.org/xmlns/sca/1.0"
+
+ name="AsyncSampleComposite">
+
+ <component name="ClientComponent">
+ <implementation.java class="sample.ClientComponent"/>
+ <reference name="asyncComponent">AsyncComponent</reference>
+ </component>
+
+ <component name="AsyncComponent">
+ <implementation.script script="AsyncServiceImpl.js"/>
+ </component>
+
+</composite>