diff options
author | fmoga <fmoga@13f79535-47bb-0310-9956-ffa450edef68> | 2011-07-08 02:23:33 +0000 |
---|---|---|
committer | fmoga <fmoga@13f79535-47bb-0310-9956-ffa450edef68> | 2011-07-08 02:23:33 +0000 |
commit | 5e52a072abe41981e2baa9a8237b87b00cf7090b (patch) | |
tree | 523f548bff0e983d82a708df5a3e0aa2333f5a1e /sca-java-2.x/contrib/modules/binding-websocket/src/test/java/sample/HelloService.java | |
parent | 4eeb2712ea34a2c661cc35cc15a1541dcac1970a (diff) |
Update sample to demonstrate that runtime uses the same server for services with the same uri.
git-svn-id: http://svn.us.apache.org/repos/asf/tuscany@1144128 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'sca-java-2.x/contrib/modules/binding-websocket/src/test/java/sample/HelloService.java')
-rw-r--r-- | sca-java-2.x/contrib/modules/binding-websocket/src/test/java/sample/HelloService.java | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/sca-java-2.x/contrib/modules/binding-websocket/src/test/java/sample/HelloService.java b/sca-java-2.x/contrib/modules/binding-websocket/src/test/java/sample/HelloService.java new file mode 100644 index 0000000000..a1c6efe870 --- /dev/null +++ b/sca-java-2.x/contrib/modules/binding-websocket/src/test/java/sample/HelloService.java @@ -0,0 +1,28 @@ +/*
+ * 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 sample;
+
+import org.oasisopen.sca.annotation.Remotable;
+
+@Remotable
+public interface HelloService {
+
+ String sayHello(String name);
+
+}
|