summaryrefslogtreecommitdiffstats
path: root/tags/java-M1-20060518/java/samples/sca
diff options
context:
space:
mode:
Diffstat (limited to 'tags/java-M1-20060518/java/samples/sca')
-rw-r--r--tags/java-M1-20060518/java/samples/sca/build.xml50
-rw-r--r--tags/java-M1-20060518/java/samples/sca/calculator/LICENSE.txt202
-rw-r--r--tags/java-M1-20060518/java/samples/sca/calculator/README.txt35
-rw-r--r--tags/java-M1-20060518/java/samples/sca/calculator/build.xml52
-rw-r--r--tags/java-M1-20060518/java/samples/sca/calculator/pom.xml51
-rw-r--r--tags/java-M1-20060518/java/samples/sca/calculator/readme.htm53
-rw-r--r--tags/java-M1-20060518/java/samples/sca/calculator/src/main/java/calculator/AddService.java23
-rw-r--r--tags/java-M1-20060518/java/samples/sca/calculator/src/main/java/calculator/AddServiceImpl.java31
-rw-r--r--tags/java-M1-20060518/java/samples/sca/calculator/src/main/java/calculator/CalculatorClient.java68
-rw-r--r--tags/java-M1-20060518/java/samples/sca/calculator/src/main/java/calculator/CalculatorService.java33
-rw-r--r--tags/java-M1-20060518/java/samples/sca/calculator/src/main/java/calculator/CalculatorServiceImpl.java70
-rw-r--r--tags/java-M1-20060518/java/samples/sca/calculator/src/main/java/calculator/DivideService.java23
-rw-r--r--tags/java-M1-20060518/java/samples/sca/calculator/src/main/java/calculator/DivideServiceImpl.java31
-rw-r--r--tags/java-M1-20060518/java/samples/sca/calculator/src/main/java/calculator/MultiplyService.java23
-rw-r--r--tags/java-M1-20060518/java/samples/sca/calculator/src/main/java/calculator/MultiplyServiceImpl.java31
-rw-r--r--tags/java-M1-20060518/java/samples/sca/calculator/src/main/java/calculator/SubtractService.java23
-rw-r--r--tags/java-M1-20060518/java/samples/sca/calculator/src/main/java/calculator/SubtractServiceImpl.java31
-rw-r--r--tags/java-M1-20060518/java/samples/sca/calculator/src/main/resources/logging.properties27
-rw-r--r--tags/java-M1-20060518/java/samples/sca/calculator/src/main/resources/sca.module46
-rw-r--r--tags/java-M1-20060518/java/samples/sca/calculator/src/test/java/calculator/CalculatorTestCase.java65
-rw-r--r--tags/java-M1-20060518/java/samples/sca/customerinfo/LICENSE.txt202
-rw-r--r--tags/java-M1-20060518/java/samples/sca/customerinfo/README.txt35
-rw-r--r--tags/java-M1-20060518/java/samples/sca/customerinfo/build.xml58
-rw-r--r--tags/java-M1-20060518/java/samples/sca/customerinfo/pom.xml52
-rw-r--r--tags/java-M1-20060518/java/samples/sca/customerinfo/readme.htm61
-rw-r--r--tags/java-M1-20060518/java/samples/sca/customerinfo/src/main/java/customerinfo/CustomerInfoClient.java72
-rw-r--r--tags/java-M1-20060518/java/samples/sca/customerinfo/src/main/java/customerinfo/CustomerInfoServiceImpl.java41
-rw-r--r--tags/java-M1-20060518/java/samples/sca/customerinfo/src/main/resources/logging.properties27
-rw-r--r--tags/java-M1-20060518/java/samples/sca/customerinfo/src/main/resources/sca.module27
-rw-r--r--tags/java-M1-20060518/java/samples/sca/customerinfo/src/main/resources/wsdl/customer.xsd26
-rw-r--r--tags/java-M1-20060518/java/samples/sca/customerinfo/src/main/resources/wsdl/customerinfo.wsdl76
-rw-r--r--tags/java-M1-20060518/java/samples/sca/customerinfo/src/test/java/customerinfo/CustomerInfoTestCase.java74
-rw-r--r--tags/java-M1-20060518/java/samples/sca/helloworld-jms/client/LICENSE.txt202
-rw-r--r--tags/java-M1-20060518/java/samples/sca/helloworld-jms/client/README.txt35
-rw-r--r--tags/java-M1-20060518/java/samples/sca/helloworld-jms/client/build.xml58
-rw-r--r--tags/java-M1-20060518/java/samples/sca/helloworld-jms/client/pom.xml58
-rw-r--r--tags/java-M1-20060518/java/samples/sca/helloworld-jms/client/readme.htm100
-rw-r--r--tags/java-M1-20060518/java/samples/sca/helloworld-jms/client/src/main/java/helloworld/HelloWorldClient.java67
-rw-r--r--tags/java-M1-20060518/java/samples/sca/helloworld-jms/client/src/main/java/helloworld/HelloWorldService.java26
-rw-r--r--tags/java-M1-20060518/java/samples/sca/helloworld-jms/client/src/main/resources/logging.properties27
-rw-r--r--tags/java-M1-20060518/java/samples/sca/helloworld-jms/client/src/main/resources/sca.module28
-rw-r--r--tags/java-M1-20060518/java/samples/sca/helloworld-jms/client/src/main/resources/wsdl/helloworld.wsdl83
-rw-r--r--tags/java-M1-20060518/java/samples/sca/helloworld-jms/pom.xml35
-rw-r--r--tags/java-M1-20060518/java/samples/sca/helloworld-jms/server/LICENSE.txt202
-rw-r--r--tags/java-M1-20060518/java/samples/sca/helloworld-jms/server/README.txt35
-rw-r--r--tags/java-M1-20060518/java/samples/sca/helloworld-jms/server/activemq.xml100
-rw-r--r--tags/java-M1-20060518/java/samples/sca/helloworld-jms/server/build.xml58
-rw-r--r--tags/java-M1-20060518/java/samples/sca/helloworld-jms/server/pom.xml52
-rw-r--r--tags/java-M1-20060518/java/samples/sca/helloworld-jms/server/readme.htm108
-rw-r--r--tags/java-M1-20060518/java/samples/sca/helloworld-jms/server/src/main/java/helloworld/HelloWorldImpl.java31
-rw-r--r--tags/java-M1-20060518/java/samples/sca/helloworld-jms/server/src/main/java/helloworld/HelloWorldServer.java49
-rw-r--r--tags/java-M1-20060518/java/samples/sca/helloworld-jms/server/src/main/java/helloworld/HelloWorldService.java26
-rw-r--r--tags/java-M1-20060518/java/samples/sca/helloworld-jms/server/src/main/resources/sca.module38
-rw-r--r--tags/java-M1-20060518/java/samples/sca/helloworld-jms/server/src/main/resources/wsdl/helloworld.wsdl99
-rw-r--r--tags/java-M1-20060518/java/samples/sca/helloworld/LICENSE.txt202
-rw-r--r--tags/java-M1-20060518/java/samples/sca/helloworld/README.txt35
-rw-r--r--tags/java-M1-20060518/java/samples/sca/helloworld/build.xml52
-rw-r--r--tags/java-M1-20060518/java/samples/sca/helloworld/pom.xml51
-rw-r--r--tags/java-M1-20060518/java/samples/sca/helloworld/readme.htm54
-rw-r--r--tags/java-M1-20060518/java/samples/sca/helloworld/src/main/java/helloworld/HelloWorldClient.java55
-rw-r--r--tags/java-M1-20060518/java/samples/sca/helloworld/src/main/java/helloworld/HelloWorldImpl.java31
-rw-r--r--tags/java-M1-20060518/java/samples/sca/helloworld/src/main/java/helloworld/HelloWorldService.java26
-rw-r--r--tags/java-M1-20060518/java/samples/sca/helloworld/src/main/resources/sca.module24
-rw-r--r--tags/java-M1-20060518/java/samples/sca/helloworld/src/test/java/helloworld/HelloWorldTestCase.java67
-rw-r--r--tags/java-M1-20060518/java/samples/sca/helloworlde4xws/LICENSE.txt202
-rw-r--r--tags/java-M1-20060518/java/samples/sca/helloworlde4xws/README.txt35
-rw-r--r--tags/java-M1-20060518/java/samples/sca/helloworlde4xws/build.xml49
-rw-r--r--tags/java-M1-20060518/java/samples/sca/helloworlde4xws/pom.xml49
-rw-r--r--tags/java-M1-20060518/java/samples/sca/helloworlde4xws/readme.htm110
-rw-r--r--tags/java-M1-20060518/java/samples/sca/helloworlde4xws/src/main/resources/helloworld/HelloWorldImpl.componentType9
-rw-r--r--tags/java-M1-20060518/java/samples/sca/helloworlde4xws/src/main/resources/helloworld/HelloWorldImpl.js28
-rw-r--r--tags/java-M1-20060518/java/samples/sca/helloworlde4xws/src/main/resources/sca.module34
-rw-r--r--tags/java-M1-20060518/java/samples/sca/helloworlde4xws/src/main/resources/wsdl/helloworld.wsdl75
-rw-r--r--tags/java-M1-20060518/java/samples/sca/helloworlde4xws/src/main/webapp/WEB-INF/web.xml24
-rw-r--r--tags/java-M1-20060518/java/samples/sca/helloworldjsclient/LICENSE.txt202
-rw-r--r--tags/java-M1-20060518/java/samples/sca/helloworldjsclient/README.txt35
-rw-r--r--tags/java-M1-20060518/java/samples/sca/helloworldjsclient/build.xml49
-rw-r--r--tags/java-M1-20060518/java/samples/sca/helloworldjsclient/pom.xml56
-rw-r--r--tags/java-M1-20060518/java/samples/sca/helloworldjsclient/readme.htm110
-rw-r--r--tags/java-M1-20060518/java/samples/sca/helloworldjsclient/src/main/resources/sca.module49
-rw-r--r--tags/java-M1-20060518/java/samples/sca/helloworldjsclient/src/main/resources/wsdl/helloworld.wsdl75
-rw-r--r--tags/java-M1-20060518/java/samples/sca/helloworldjsclient/src/main/webapp/HelloWorldClient.html50
-rw-r--r--tags/java-M1-20060518/java/samples/sca/helloworldjsclient/src/main/webapp/WEB-INF/web.xml27
-rw-r--r--tags/java-M1-20060518/java/samples/sca/helloworldjsonrpc/LICENSE.txt202
-rw-r--r--tags/java-M1-20060518/java/samples/sca/helloworldjsonrpc/README.txt35
-rw-r--r--tags/java-M1-20060518/java/samples/sca/helloworldjsonrpc/build.xml52
-rw-r--r--tags/java-M1-20060518/java/samples/sca/helloworldjsonrpc/pom.xml57
-rw-r--r--tags/java-M1-20060518/java/samples/sca/helloworldjsonrpc/readme.htm139
-rw-r--r--tags/java-M1-20060518/java/samples/sca/helloworldjsonrpc/src/main/java/org/apache/tuscany/samples/helloworldjsonrpc/HelloWorldService.java26
-rw-r--r--tags/java-M1-20060518/java/samples/sca/helloworldjsonrpc/src/main/java/org/apache/tuscany/samples/helloworldjsonrpc/HelloWorldServiceComponentImpl.java34
-rw-r--r--tags/java-M1-20060518/java/samples/sca/helloworldjsonrpc/src/main/resources/sca.module32
-rw-r--r--tags/java-M1-20060518/java/samples/sca/helloworldjsonrpc/src/main/webapp/HelloWorldJSONRPC.html48
-rw-r--r--tags/java-M1-20060518/java/samples/sca/helloworldjsonrpc/src/main/webapp/WEB-INF/web.xml27
-rw-r--r--tags/java-M1-20060518/java/samples/sca/helloworldweb/LICENSE.txt202
-rw-r--r--tags/java-M1-20060518/java/samples/sca/helloworldweb/README.txt35
-rw-r--r--tags/java-M1-20060518/java/samples/sca/helloworldweb/build.xml52
-rw-r--r--tags/java-M1-20060518/java/samples/sca/helloworldweb/pom.xml51
-rw-r--r--tags/java-M1-20060518/java/samples/sca/helloworldweb/readme.htm248
-rw-r--r--tags/java-M1-20060518/java/samples/sca/helloworldweb/src/main/java/helloworld/HelloWorldImpl.java31
-rw-r--r--tags/java-M1-20060518/java/samples/sca/helloworldweb/src/main/java/helloworld/HelloWorldService.java26
-rw-r--r--tags/java-M1-20060518/java/samples/sca/helloworldweb/src/main/resources/sca.module24
-rw-r--r--tags/java-M1-20060518/java/samples/sca/helloworldweb/src/main/webapp/HelloWorldWeb.jsp79
-rw-r--r--tags/java-M1-20060518/java/samples/sca/helloworldweb/src/main/webapp/WEB-INF/web.xml27
-rw-r--r--tags/java-M1-20060518/java/samples/sca/helloworldweb/src/test/java/helloworld/HelloWorldTestCase.java64
-rw-r--r--tags/java-M1-20060518/java/samples/sca/helloworldws-celtix/LICENSE.txt202
-rw-r--r--tags/java-M1-20060518/java/samples/sca/helloworldws-celtix/README.txt35
-rw-r--r--tags/java-M1-20060518/java/samples/sca/helloworldws-celtix/build.xml58
-rw-r--r--tags/java-M1-20060518/java/samples/sca/helloworldws-celtix/pom.xml53
-rw-r--r--tags/java-M1-20060518/java/samples/sca/helloworldws-celtix/readme.htm92
-rw-r--r--tags/java-M1-20060518/java/samples/sca/helloworldws-celtix/src/main/java/helloworld/HelloWorldImpl.java31
-rw-r--r--tags/java-M1-20060518/java/samples/sca/helloworldws-celtix/src/main/java/helloworld/HelloWorldServer.java49
-rw-r--r--tags/java-M1-20060518/java/samples/sca/helloworldws-celtix/src/main/java/helloworld/HelloWorldService.java26
-rw-r--r--tags/java-M1-20060518/java/samples/sca/helloworldws-celtix/src/main/resources/sca.module33
-rw-r--r--tags/java-M1-20060518/java/samples/sca/helloworldws-celtix/src/main/resources/wsdl/helloworld.wsdl75
-rw-r--r--tags/java-M1-20060518/java/samples/sca/helloworldws/LICENSE.txt202
-rw-r--r--tags/java-M1-20060518/java/samples/sca/helloworldws/README.txt35
-rw-r--r--tags/java-M1-20060518/java/samples/sca/helloworldws/build.xml52
-rw-r--r--tags/java-M1-20060518/java/samples/sca/helloworldws/pom.xml57
-rw-r--r--tags/java-M1-20060518/java/samples/sca/helloworldws/readme.htm48
-rw-r--r--tags/java-M1-20060518/java/samples/sca/helloworldws/src/main/java/helloworld/HelloWorldImpl.java31
-rw-r--r--tags/java-M1-20060518/java/samples/sca/helloworldws/src/main/java/helloworld/HelloWorldService.java26
-rw-r--r--tags/java-M1-20060518/java/samples/sca/helloworldws/src/main/resources/sca.module33
-rw-r--r--tags/java-M1-20060518/java/samples/sca/helloworldws/src/main/resources/wsdl/helloworld.wsdl75
-rw-r--r--tags/java-M1-20060518/java/samples/sca/helloworldws/src/main/webapp/WEB-INF/web.xml23
-rw-r--r--tags/java-M1-20060518/java/samples/sca/helloworldwsclient/LICENSE.txt202
-rw-r--r--tags/java-M1-20060518/java/samples/sca/helloworldwsclient/README.txt35
-rw-r--r--tags/java-M1-20060518/java/samples/sca/helloworldwsclient/build.xml58
-rw-r--r--tags/java-M1-20060518/java/samples/sca/helloworldwsclient/pom.xml61
-rw-r--r--tags/java-M1-20060518/java/samples/sca/helloworldwsclient/readme.htm64
-rw-r--r--tags/java-M1-20060518/java/samples/sca/helloworldwsclient/src/main/java/helloworld/HelloWorldClient.java67
-rw-r--r--tags/java-M1-20060518/java/samples/sca/helloworldwsclient/src/main/java/helloworld/HelloWorldService.java26
-rw-r--r--tags/java-M1-20060518/java/samples/sca/helloworldwsclient/src/main/resources/logging.properties27
-rw-r--r--tags/java-M1-20060518/java/samples/sca/helloworldwsclient/src/main/resources/sca.module28
-rw-r--r--tags/java-M1-20060518/java/samples/sca/helloworldwsclient/src/main/resources/wsdl/helloworld.wsdl75
-rw-r--r--tags/java-M1-20060518/java/samples/sca/pom.xml45
-rw-r--r--tags/java-M1-20060518/java/samples/sca/readme.htm95
-rw-r--r--tags/java-M1-20060518/java/samples/sca/supplychain/LICENSE.txt202
-rw-r--r--tags/java-M1-20060518/java/samples/sca/supplychain/README.txt35
-rw-r--r--tags/java-M1-20060518/java/samples/sca/supplychain/build.xml52
-rw-r--r--tags/java-M1-20060518/java/samples/sca/supplychain/pom.xml52
-rw-r--r--tags/java-M1-20060518/java/samples/sca/supplychain/readme.htm71
-rw-r--r--tags/java-M1-20060518/java/samples/sca/supplychain/src/main/java/supplychain/Customer.java31
-rw-r--r--tags/java-M1-20060518/java/samples/sca/supplychain/src/main/java/supplychain/CustomerComponentImpl.java44
-rw-r--r--tags/java-M1-20060518/java/samples/sca/supplychain/src/main/java/supplychain/Retailer.java26
-rw-r--r--tags/java-M1-20060518/java/samples/sca/supplychain/src/main/java/supplychain/RetailerComponentImpl.java39
-rw-r--r--tags/java-M1-20060518/java/samples/sca/supplychain/src/main/java/supplychain/Shipper.java26
-rw-r--r--tags/java-M1-20060518/java/samples/sca/supplychain/src/main/java/supplychain/ShipperComponentImpl.java39
-rw-r--r--tags/java-M1-20060518/java/samples/sca/supplychain/src/main/java/supplychain/SupplyChainClient.java57
-rw-r--r--tags/java-M1-20060518/java/samples/sca/supplychain/src/main/java/supplychain/Warehouse.java26
-rw-r--r--tags/java-M1-20060518/java/samples/sca/supplychain/src/main/java/supplychain/WarehouseComponentImpl.java39
-rw-r--r--tags/java-M1-20060518/java/samples/sca/supplychain/src/main/resources/logging.properties27
-rw-r--r--tags/java-M1-20060518/java/samples/sca/supplychain/src/main/resources/sca.module48
-rw-r--r--tags/java-M1-20060518/java/samples/sca/supplychain/src/test/java/supplychain/SupplyChainClientTestCase.java51
153 files changed, 0 insertions, 9476 deletions
diff --git a/tags/java-M1-20060518/java/samples/sca/build.xml b/tags/java-M1-20060518/java/samples/sca/build.xml
deleted file mode 100644
index 3df88aeeeb..0000000000
--- a/tags/java-M1-20060518/java/samples/sca/build.xml
+++ /dev/null
@@ -1,50 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<!--
- * Copyright (c) 2005-2006 The Apache Software Foundation or its licensors, as applicable.
- *
- * Licensed 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 name="samples" default="compile">
-
- <target name="compile">
- <ant dir="calculator"/>
- <ant dir="customerinfo"/>
- <ant dir="helloworld"/>
- <ant dir="helloworlde4xws"/>
- <ant dir="helloworld-jms/client"/>
- <ant dir="helloworld-jms/server"/>
- <ant dir="helloworldjsclient"/>
- <ant dir="helloworldjsonrpc"/>
- <ant dir="helloworldweb"/>
- <ant dir="helloworldws"/>
- <ant dir="helloworldws-celtix"/>
- <ant dir="helloworldwsclient"/>
- <ant dir="supplychain"/>
- </target>
-
- <target name="clean">
- <ant dir="calculator" target="clean"/>
- <ant dir="customerinfo" target="clean"/>
- <ant dir="helloworld" target="clean"/>
- <ant dir="helloworlde4xws" target="clean"/>
- <ant dir="helloworld-jms/client" target="clean"/>
- <ant dir="helloworld-jms/server" target="clean"/>
- <ant dir="helloworldjsclient" target="clean"/>
- <ant dir="helloworldjsonrpc" target="clean"/>
- <ant dir="helloworldweb" target="clean"/>
- <ant dir="helloworldws" target="clean"/>
- <ant dir="helloworldws-celtix" target="clean"/>
- <ant dir="helloworldwsclient" target="clean"/>
- <ant dir="supplychain" target="clean"/>
- </target>
-</project>
diff --git a/tags/java-M1-20060518/java/samples/sca/calculator/LICENSE.txt b/tags/java-M1-20060518/java/samples/sca/calculator/LICENSE.txt
deleted file mode 100644
index d645695673..0000000000
--- a/tags/java-M1-20060518/java/samples/sca/calculator/LICENSE.txt
+++ /dev/null
@@ -1,202 +0,0 @@
-
- Apache License
- Version 2.0, January 2004
- http://www.apache.org/licenses/
-
- TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
-
- 1. Definitions.
-
- "License" shall mean the terms and conditions for use, reproduction,
- and distribution as defined by Sections 1 through 9 of this document.
-
- "Licensor" shall mean the copyright owner or entity authorized by
- the copyright owner that is granting the License.
-
- "Legal Entity" shall mean the union of the acting entity and all
- other entities that control, are controlled by, or are under common
- control with that entity. For the purposes of this definition,
- "control" means (i) the power, direct or indirect, to cause the
- direction or management of such entity, whether by contract or
- otherwise, or (ii) ownership of fifty percent (50%) or more of the
- outstanding shares, or (iii) beneficial ownership of such entity.
-
- "You" (or "Your") shall mean an individual or Legal Entity
- exercising permissions granted by this License.
-
- "Source" form shall mean the preferred form for making modifications,
- including but not limited to software source code, documentation
- source, and configuration files.
-
- "Object" form shall mean any form resulting from mechanical
- transformation or translation of a Source form, including but
- not limited to compiled object code, generated documentation,
- and conversions to other media types.
-
- "Work" shall mean the work of authorship, whether in Source or
- Object form, made available under the License, as indicated by a
- copyright notice that is included in or attached to the work
- (an example is provided in the Appendix below).
-
- "Derivative Works" shall mean any work, whether in Source or Object
- form, that is based on (or derived from) the Work and for which the
- editorial revisions, annotations, elaborations, or other modifications
- represent, as a whole, an original work of authorship. For the purposes
- of this License, Derivative Works shall not include works that remain
- separable from, or merely link (or bind by name) to the interfaces of,
- the Work and Derivative Works thereof.
-
- "Contribution" shall mean any work of authorship, including
- the original version of the Work and any modifications or additions
- to that Work or Derivative Works thereof, that is intentionally
- submitted to Licensor for inclusion in the Work by the copyright owner
- or by an individual or Legal Entity authorized to submit on behalf of
- the copyright owner. For the purposes of this definition, "submitted"
- means any form of electronic, verbal, or written communication sent
- to the Licensor or its representatives, including but not limited to
- communication on electronic mailing lists, source code control systems,
- and issue tracking systems that are managed by, or on behalf of, the
- Licensor for the purpose of discussing and improving the Work, but
- excluding communication that is conspicuously marked or otherwise
- designated in writing by the copyright owner as "Not a Contribution."
-
- "Contributor" shall mean Licensor and any individual or Legal Entity
- on behalf of whom a Contribution has been received by Licensor and
- subsequently incorporated within the Work.
-
- 2. Grant of Copyright License. Subject to the terms and conditions of
- this License, each Contributor hereby grants to You a perpetual,
- worldwide, non-exclusive, no-charge, royalty-free, irrevocable
- copyright license to reproduce, prepare Derivative Works of,
- publicly display, publicly perform, sublicense, and distribute the
- Work and such Derivative Works in Source or Object form.
-
- 3. Grant of Patent License. Subject to the terms and conditions of
- this License, each Contributor hereby grants to You a perpetual,
- worldwide, non-exclusive, no-charge, royalty-free, irrevocable
- (except as stated in this section) patent license to make, have made,
- use, offer to sell, sell, import, and otherwise transfer the Work,
- where such license applies only to those patent claims licensable
- by such Contributor that are necessarily infringed by their
- Contribution(s) alone or by combination of their Contribution(s)
- with the Work to which such Contribution(s) was submitted. If You
- institute patent litigation against any entity (including a
- cross-claim or counterclaim in a lawsuit) alleging that the Work
- or a Contribution incorporated within the Work constitutes direct
- or contributory patent infringement, then any patent licenses
- granted to You under this License for that Work shall terminate
- as of the date such litigation is filed.
-
- 4. Redistribution. You may reproduce and distribute copies of the
- Work or Derivative Works thereof in any medium, with or without
- modifications, and in Source or Object form, provided that You
- meet the following conditions:
-
- (a) You must give any other recipients of the Work or
- Derivative Works a copy of this License; and
-
- (b) You must cause any modified files to carry prominent notices
- stating that You changed the files; and
-
- (c) You must retain, in the Source form of any Derivative Works
- that You distribute, all copyright, patent, trademark, and
- attribution notices from the Source form of the Work,
- excluding those notices that do not pertain to any part of
- the Derivative Works; and
-
- (d) If the Work includes a "NOTICE" text file as part of its
- distribution, then any Derivative Works that You distribute must
- include a readable copy of the attribution notices contained
- within such NOTICE file, excluding those notices that do not
- pertain to any part of the Derivative Works, in at least one
- of the following places: within a NOTICE text file distributed
- as part of the Derivative Works; within the Source form or
- documentation, if provided along with the Derivative Works; or,
- within a display generated by the Derivative Works, if and
- wherever such third-party notices normally appear. The contents
- of the NOTICE file are for informational purposes only and
- do not modify the License. You may add Your own attribution
- notices within Derivative Works that You distribute, alongside
- or as an addendum to the NOTICE text from the Work, provided
- that such additional attribution notices cannot be construed
- as modifying the License.
-
- You may add Your own copyright statement to Your modifications and
- may provide additional or different license terms and conditions
- for use, reproduction, or distribution of Your modifications, or
- for any such Derivative Works as a whole, provided Your use,
- reproduction, and distribution of the Work otherwise complies with
- the conditions stated in this License.
-
- 5. Submission of Contributions. Unless You explicitly state otherwise,
- any Contribution intentionally submitted for inclusion in the Work
- by You to the Licensor shall be under the terms and conditions of
- this License, without any additional terms or conditions.
- Notwithstanding the above, nothing herein shall supersede or modify
- the terms of any separate license agreement you may have executed
- with Licensor regarding such Contributions.
-
- 6. Trademarks. This License does not grant permission to use the trade
- names, trademarks, service marks, or product names of the Licensor,
- except as required for reasonable and customary use in describing the
- origin of the Work and reproducing the content of the NOTICE file.
-
- 7. Disclaimer of Warranty. Unless required by applicable law or
- agreed to in writing, Licensor provides the Work (and each
- Contributor provides its Contributions) on an "AS IS" BASIS,
- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
- implied, including, without limitation, any warranties or conditions
- of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
- PARTICULAR PURPOSE. You are solely responsible for determining the
- appropriateness of using or redistributing the Work and assume any
- risks associated with Your exercise of permissions under this License.
-
- 8. Limitation of Liability. In no event and under no legal theory,
- whether in tort (including negligence), contract, or otherwise,
- unless required by applicable law (such as deliberate and grossly
- negligent acts) or agreed to in writing, shall any Contributor be
- liable to You for damages, including any direct, indirect, special,
- incidental, or consequential damages of any character arising as a
- result of this License or out of the use or inability to use the
- Work (including but not limited to damages for loss of goodwill,
- work stoppage, computer failure or malfunction, or any and all
- other commercial damages or losses), even if such Contributor
- has been advised of the possibility of such damages.
-
- 9. Accepting Warranty or Additional Liability. While redistributing
- the Work or Derivative Works thereof, You may choose to offer,
- and charge a fee for, acceptance of support, warranty, indemnity,
- or other liability obligations and/or rights consistent with this
- License. However, in accepting such obligations, You may act only
- on Your own behalf and on Your sole responsibility, not on behalf
- of any other Contributor, and only if You agree to indemnify,
- defend, and hold each Contributor harmless for any liability
- incurred by, or claims asserted against, such Contributor by reason
- of your accepting any such warranty or additional liability.
-
- END OF TERMS AND CONDITIONS
-
- APPENDIX: How to apply the Apache License to your work.
-
- To apply the Apache License to your work, attach the following
- boilerplate notice, with the fields enclosed by brackets "[]"
- replaced with your own identifying information. (Don't include
- the brackets!) The text should be enclosed in the appropriate
- comment syntax for the file format. We also recommend that a
- file or class name and description of purpose be included on the
- same "printed page" as the copyright notice for easier
- identification within third-party archives.
-
- Copyright [yyyy] [name of copyright owner]
-
- Licensed 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.
diff --git a/tags/java-M1-20060518/java/samples/sca/calculator/README.txt b/tags/java-M1-20060518/java/samples/sca/calculator/README.txt
deleted file mode 100644
index 9b26d1690a..0000000000
--- a/tags/java-M1-20060518/java/samples/sca/calculator/README.txt
+++ /dev/null
@@ -1,35 +0,0 @@
-Apache Tuscany M1 build (May, 2006)
-===================================
-
-http://incubator.apache.org/tuscany/
-
-Tuscany is an effort undergoing incubation at the Apache Software Foundation
-(ASF), sponsored by the Web Services PMC.
-
-Incubation is required of all newly accepted projects until a further review
-indicates that the infrastructure, communications, and decision making process
-have stabilized in a manner consistent with other successful ASF projects.
-
-While incubation status is not necessarily a reflection of the completeness or
-stability of the code, it does indicate that the project has yet to be fully
-endorsed by the ASF.
-
-
-Support
--------
-
-Any problem with this release can be reported to the Tuscany mailing list
-or in the JIRA issue tracker.
-
-Mailing list subscription:
- tuscany-dev-subscribe@ws.apache.org
-
-Jira:
- http://issues.apache.org/jira/browse/Tuscany
-
-
-Thank you for using Tuscany!
-
-
-The Tuscany Team.
-
diff --git a/tags/java-M1-20060518/java/samples/sca/calculator/build.xml b/tags/java-M1-20060518/java/samples/sca/calculator/build.xml
deleted file mode 100644
index 91e143311b..0000000000
--- a/tags/java-M1-20060518/java/samples/sca/calculator/build.xml
+++ /dev/null
@@ -1,52 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<!--
- * Copyright (c) 2005-2006 The Apache Software Foundation or its licensors, as applicable.
- *
- * Licensed 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 name="samples" default="compile">
- <property name="mainDir" value="../../.."/>
- <path id="javac.classpath">
- <fileset dir="${mainDir}/lib">
- <include name="tuscany-runtime-incubating-M1.jar"/>
- </fileset>
- </path>
- <path id="java.classpath">
- <fileset dir="${mainDir}/lib">
- <include name="tuscany-runtime-incubating-M1.jar"/>
- </fileset>
- <pathelement path="target/sample-calculator.jar"/>
- </path>
-
- <target name="init">
- <mkdir dir="target/classes"/>
- </target>
-
- <target name="compile" depends="init">
- <javac srcdir="src/main/java" destdir="target/classes" debug="on" source="1.5" target="1.5">
- <classpath refid="javac.classpath"/>
- </javac>
- <copy todir="target/classes">
- <fileset dir="src/main/resources"/>
- </copy>
- <jar destfile="target/sample-calculator.jar">
- <fileset dir="target/classes"/>
- </jar>
- </target>
-
- <target name="clean">
- <delete quiet="true" includeemptydirs="true">
- <fileset dir="target" excludes="sample-calculator-incubating-M1.jar"/>
- </delete>
- </target>
-</project>
diff --git a/tags/java-M1-20060518/java/samples/sca/calculator/pom.xml b/tags/java-M1-20060518/java/samples/sca/calculator/pom.xml
deleted file mode 100644
index 2a6e6864d8..0000000000
--- a/tags/java-M1-20060518/java/samples/sca/calculator/pom.xml
+++ /dev/null
@@ -1,51 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<!--
- * Copyright (c) 2005-2006 The Apache Software Foundation or its licensors, as applicable.
- *
- * Licensed 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>
- <parent>
- <groupId>org.apache.tuscany.samples.sca</groupId>
- <artifactId>tuscany-samples-sca</artifactId>
- <version>incubating-M1</version>
- </parent>
- <modelVersion>4.0.0</modelVersion>
- <artifactId>sample-calculator</artifactId>
- <packaging>jar</packaging>
- <name>Tuscany Calculator Sample</name>
- <description>A sample Calculator made of several SCA components wired together.</description>
- <version>incubating-M1</version>
-
- <dependencies>
- <dependency>
- <groupId>org.apache.tuscany</groupId>
- <artifactId>tuscany-core</artifactId>
- <version>${pom.version}</version>
- <scope>provided</scope>
- </dependency>
- <dependency>
- <groupId>org.apache.tuscany.sca.containers</groupId>
- <artifactId>tuscany-container-java</artifactId>
- <version>${pom.version}</version>
- <scope>provided</scope>
- </dependency>
-
- <dependency>
- <groupId>junit</groupId>
- <artifactId>junit</artifactId>
- <version>3.8.1</version>
- <scope>test</scope>
- </dependency>
- </dependencies>
-</project>
diff --git a/tags/java-M1-20060518/java/samples/sca/calculator/readme.htm b/tags/java-M1-20060518/java/samples/sca/calculator/readme.htm
deleted file mode 100644
index 8ae5ca6488..0000000000
--- a/tags/java-M1-20060518/java/samples/sca/calculator/readme.htm
+++ /dev/null
@@ -1,53 +0,0 @@
-<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
-<html><head><!-- Copyright (c) 2005 The Apache Software Foundation or its licensors, as applicable. Licensed 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. -->
-<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"> <meta http-equiv="Content-Style-Type" content="text/css"><title>Tuscany
-Calculator</title><!-- LINK rel="stylesheet" href="ait.css" type="text/css" -->
-<style type="text/css" media="all">
-@import url("../../../../css/maven-base.css");
-@import url("../../../../css/maven-theme.css");
-@import url("../../../../css/site.css");
-</style><link rel="stylesheet" href="./css/print.css" type="text/css" media="print"></head>
-<body><h2>Tuscany
-Calculator Sample</h2>
-<h3>Overview</h3>
-<p>The Tuscany calculator sample shows using the Tuscany SCA
-runtime in a J2SE environment &nbsp;loading several components.
-Each component provides a basic operation (add, subtract, etc).<br>The
-main component uses each of these to perrform a simple calculation.</p><h3>Location</h3>This
-sample is located &nbsp;in the samples\sca\calculator directory.<br><br>
-
-<h3>Setup</h3>This sample depends on the Tuscany runtime and the sample jar,
-
- <span style="font-weight: bold;">
- sample-calculator-incubating-M1.jar
- </span>
-
-, both of these must be available on the classpath to run the sample.
-<ol>
-</ol>
-<h3>Running</h3>
-
- In the directory samples/sca/calculator use the JDK 1.5 java command to run the class calculator.CalculatorClient
-
- <pre>Linux: java -cp ../../../lib/tuscany-runtime-incubating-M1.jar:target/sample-calculator-incubating-M1.jar calculator.CalculatorClient</pre>
- <pre>Windows: java -cp ../../../lib/tuscany-runtime-incubating-M1.jar;target/sample-calculator-incubating-M1.jar calculator.CalculatorClient</pre>
-
-<br><h3>Results</h3>
-<p>The sample when run should simply display to the standard
-output:<br> <code>Hello World</code></p>
-<h3>Code Overview</h3>
-The source files are physically organized as shown below:
-<table style="text-align: left; width: 100%;" border="1" cellpadding="2" cellspacing="2"> <tbody> <tr><td>src<br>+---main<br>&nbsp;&nbsp;&nbsp; +---java<br>&nbsp;&nbsp;&nbsp; &brvbar;&nbsp;&nbsp; +---calculator<br>&nbsp;&nbsp;&nbsp; &brvbar;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; AddService.java<br>&nbsp;&nbsp;&nbsp; &brvbar;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; AddServiceImpl.java<br>&nbsp;&nbsp;&nbsp; &brvbar;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; CalculatorClient.java<br>&nbsp;&nbsp;&nbsp; &brvbar;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; CalculatorService.java<br>&nbsp;&nbsp;&nbsp; &brvbar;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; CalculatorServiceImpl.java<br>&nbsp;&nbsp;&nbsp; &brvbar;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; DivideService.java<br>&nbsp;&nbsp;&nbsp; &brvbar;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; DivideServiceImpl.java<br>&nbsp;&nbsp;&nbsp; &brvbar;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; MultiplyService.java<br>&nbsp;&nbsp;&nbsp; &brvbar;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; MultiplyServiceImpl.java<br>&nbsp;&nbsp;&nbsp; &brvbar;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; SubtractService.java<br>&nbsp;&nbsp;&nbsp; &brvbar;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; SubtractServiceImpl.java<br>&nbsp;&nbsp;&nbsp; &brvbar;<br>&nbsp;&nbsp;&nbsp; +---resources<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; logging.properties<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; sca.module<br></td></tr></tbody></table>
-<br><table style="text-align: left; width: 879px; height: 154px;" border="0" cellpadding="2" cellspacing="2"> <tbody><tr><td style="vertical-align: top;">sca.module</td>
-<td>Defines the SCA module and component. Defines for the CalculatorServiceComponent component&nbsp; the Java class that
-implements that component. &nbsp;Wires each of the operation components to the&nbsp;CalculatorServiceComponent</td> </tr> <tr> <td style="vertical-align: top;">CalculatorService.java</td>
-<td>Defines the Java interface implemented by the cacomponent.</td>
-</tr> <tr> <td style="vertical-align: top;">CalculatorServiceImpl.java</td>
-<td>Implements the SCA component. Uses the SCA service annotation
-tag on the class to show what SCA interface is being implemented.</td>
-</tr> <tr> <td style="vertical-align: top;">CalculatorClient.java</td>
-<td>Creates a Tuscany runtime and starts it. &nbsp;Obtains
-the module context which was defined by the sca.module file. From the
-module context locates the CalculatorServiceComponent and then
-calls operations on that component to demonstrating it using the multiple components implementing the operations..</td>
-</tr> </tbody></table><br></body></html> \ No newline at end of file
diff --git a/tags/java-M1-20060518/java/samples/sca/calculator/src/main/java/calculator/AddService.java b/tags/java-M1-20060518/java/samples/sca/calculator/src/main/java/calculator/AddService.java
deleted file mode 100644
index 34a3edeb0e..0000000000
--- a/tags/java-M1-20060518/java/samples/sca/calculator/src/main/java/calculator/AddService.java
+++ /dev/null
@@ -1,23 +0,0 @@
-/**
- *
- * Copyright 2005 The Apache Software Foundation or its licensors, as applicable.
- *
- * Licensed 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 calculator;
-
-public interface AddService {
-
- double add(double n1, double n2);
-
-}
diff --git a/tags/java-M1-20060518/java/samples/sca/calculator/src/main/java/calculator/AddServiceImpl.java b/tags/java-M1-20060518/java/samples/sca/calculator/src/main/java/calculator/AddServiceImpl.java
deleted file mode 100644
index 02cddd08db..0000000000
--- a/tags/java-M1-20060518/java/samples/sca/calculator/src/main/java/calculator/AddServiceImpl.java
+++ /dev/null
@@ -1,31 +0,0 @@
-/**
- *
- * Copyright 2005 The Apache Software Foundation or its licensors, as applicable.
- *
- * Licensed 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 calculator;
-
-import org.osoa.sca.annotations.Service;
-
-/**
- * An implementation of the Add service
- */
-@Service(AddService.class)
-public class AddServiceImpl implements AddService {
-
- public double add(double n1, double n2) {
- return n1 + n2;
- }
-
-}
diff --git a/tags/java-M1-20060518/java/samples/sca/calculator/src/main/java/calculator/CalculatorClient.java b/tags/java-M1-20060518/java/samples/sca/calculator/src/main/java/calculator/CalculatorClient.java
deleted file mode 100644
index ee1c138940..0000000000
--- a/tags/java-M1-20060518/java/samples/sca/calculator/src/main/java/calculator/CalculatorClient.java
+++ /dev/null
@@ -1,68 +0,0 @@
-/**
- *
- * Copyright 2005 The Apache Software Foundation or its licensors, as applicable.
- *
- * Licensed 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 calculator;
-
-import java.util.Properties;
-import java.util.logging.Level;
-import java.util.logging.LogManager;
-
-import org.apache.tuscany.common.monitor.MonitorFactory;
-import org.apache.tuscany.common.monitor.impl.JavaLoggingMonitorFactory;
-import org.apache.tuscany.core.client.TuscanyRuntime;
-import org.osoa.sca.CurrentModuleContext;
-import org.osoa.sca.ModuleContext;
-
-/**
- * This client program shows how to create an SCA runtime, start it,
- * locate the Calculator service and invoke it.
- */
-public class CalculatorClient {
-
- public static final void main(String[] args) throws Exception {
-
- // Setup Tuscany monitoring to use java.util.logging
- LogManager.getLogManager().readConfiguration(CalculatorClient.class.getResourceAsStream("/logging.properties"));
- Properties levels = new Properties();
- MonitorFactory monitorFactory = new JavaLoggingMonitorFactory(levels, Level.FINEST, "MonitorMessages");
-
- // Create a Tuscany runtime for the sample module component
- TuscanyRuntime tuscany = new TuscanyRuntime("CalculatorModuleComponent", "http://calculator", monitorFactory);
-
- // Start the Tuscany runtime and associate it with this thread
- tuscany.start();
-
- // Get the SCA module context.
- ModuleContext moduleContext = CurrentModuleContext.getContext();
-
- // Locate the Calculator service
- CalculatorService calculatorService = (CalculatorService) moduleContext.locateService("CalculatorServiceComponent");
-
- // Calculate
- System.out.println("3 + 2="+calculatorService.add(3, 2));
- System.out.println("3 - 2="+calculatorService.subtract(3, 2));
- System.out.println("3 * 2="+calculatorService.multiply(3, 2));
- System.out.println("3 / 2="+calculatorService.divide(3, 2));
-
- System.out.flush();
-
- // Disassociate the runtime from this thread
- tuscany.stop();
-
- // Shut down the runtime
- tuscany.shutdown();
- }
-}
diff --git a/tags/java-M1-20060518/java/samples/sca/calculator/src/main/java/calculator/CalculatorService.java b/tags/java-M1-20060518/java/samples/sca/calculator/src/main/java/calculator/CalculatorService.java
deleted file mode 100644
index ff39e0b57a..0000000000
--- a/tags/java-M1-20060518/java/samples/sca/calculator/src/main/java/calculator/CalculatorService.java
+++ /dev/null
@@ -1,33 +0,0 @@
-/**
- *
- * Copyright 2005 The Apache Software Foundation or its licensors, as applicable.
- *
- * Licensed 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 calculator;
-
-
-/**
- * The Calculator service interface.
- */
-public interface CalculatorService {
-
- double add(double n1, double n2);
-
- double subtract(double n1, double n2);
-
- double multiply(double n1, double n2);
-
- double divide(double n1, double n2);
-
-}
diff --git a/tags/java-M1-20060518/java/samples/sca/calculator/src/main/java/calculator/CalculatorServiceImpl.java b/tags/java-M1-20060518/java/samples/sca/calculator/src/main/java/calculator/CalculatorServiceImpl.java
deleted file mode 100644
index b81a6f00fd..0000000000
--- a/tags/java-M1-20060518/java/samples/sca/calculator/src/main/java/calculator/CalculatorServiceImpl.java
+++ /dev/null
@@ -1,70 +0,0 @@
-/**
- *
- * Copyright 2005 The Apache Software Foundation or its licensors, as applicable.
- *
- * Licensed 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 calculator;
-
-import org.osoa.sca.annotations.Reference;
-import org.osoa.sca.annotations.Service;
-
-
-/**
- * An implementation of the Calculator service.
- */
-@Service(CalculatorService.class)
-public class CalculatorServiceImpl implements CalculatorService {
-
- private AddService addService;
- private SubtractService subtractService;
- private MultiplyService multiplyService;
- private DivideService divideService;
-
- @Reference
- public void setAddService(AddService addService) {
- this.addService = addService;
- }
-
- @Reference
- public void setSubtractService(SubtractService subtractService) {
- this.subtractService = subtractService;
- }
-
- @Reference
- public void setDivideService(DivideService divideService) {
- this.divideService = divideService;
- }
-
- @Reference
- public void setMultiplyService(MultiplyService multiplyService) {
- this.multiplyService = multiplyService;
- }
-
- public double add(double n1, double n2) {
- return addService.add(n1, n2);
- }
-
- public double subtract(double n1, double n2) {
- return subtractService.subtract(n1, n2);
- }
-
- public double multiply(double n1, double n2) {
- return multiplyService.multiply(n1, n2);
- }
-
- public double divide(double n1, double n2) {
- return divideService.divide(n1, n2);
- }
-
-}
diff --git a/tags/java-M1-20060518/java/samples/sca/calculator/src/main/java/calculator/DivideService.java b/tags/java-M1-20060518/java/samples/sca/calculator/src/main/java/calculator/DivideService.java
deleted file mode 100644
index 664ba2ba61..0000000000
--- a/tags/java-M1-20060518/java/samples/sca/calculator/src/main/java/calculator/DivideService.java
+++ /dev/null
@@ -1,23 +0,0 @@
-/**
- *
- * Copyright 2005 The Apache Software Foundation or its licensors, as applicable.
- *
- * Licensed 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 calculator;
-
-public interface DivideService {
-
- double divide(double n1, double n2);
-
-}
diff --git a/tags/java-M1-20060518/java/samples/sca/calculator/src/main/java/calculator/DivideServiceImpl.java b/tags/java-M1-20060518/java/samples/sca/calculator/src/main/java/calculator/DivideServiceImpl.java
deleted file mode 100644
index 12d0c65ed2..0000000000
--- a/tags/java-M1-20060518/java/samples/sca/calculator/src/main/java/calculator/DivideServiceImpl.java
+++ /dev/null
@@ -1,31 +0,0 @@
-/**
- *
- * Copyright 2005 The Apache Software Foundation or its licensors, as applicable.
- *
- * Licensed 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 calculator;
-
-import org.osoa.sca.annotations.Service;
-
-/**
- * An implementation of the Divide service.
- */
-@Service(DivideService.class)
-public class DivideServiceImpl implements DivideService {
-
- public double divide(double n1, double n2) {
- return n1 / n2;
- }
-
-}
diff --git a/tags/java-M1-20060518/java/samples/sca/calculator/src/main/java/calculator/MultiplyService.java b/tags/java-M1-20060518/java/samples/sca/calculator/src/main/java/calculator/MultiplyService.java
deleted file mode 100644
index fcb274dc8a..0000000000
--- a/tags/java-M1-20060518/java/samples/sca/calculator/src/main/java/calculator/MultiplyService.java
+++ /dev/null
@@ -1,23 +0,0 @@
-/**
- *
- * Copyright 2005 The Apache Software Foundation or its licensors, as applicable.
- *
- * Licensed 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 calculator;
-
-public interface MultiplyService {
-
- double multiply(double n1, double n2);
-
-}
diff --git a/tags/java-M1-20060518/java/samples/sca/calculator/src/main/java/calculator/MultiplyServiceImpl.java b/tags/java-M1-20060518/java/samples/sca/calculator/src/main/java/calculator/MultiplyServiceImpl.java
deleted file mode 100644
index c274d1a6d1..0000000000
--- a/tags/java-M1-20060518/java/samples/sca/calculator/src/main/java/calculator/MultiplyServiceImpl.java
+++ /dev/null
@@ -1,31 +0,0 @@
-/**
- *
- * Copyright 2005 The Apache Software Foundation or its licensors, as applicable.
- *
- * Licensed 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 calculator;
-
-import org.osoa.sca.annotations.Service;
-
-/**
- * An implementation of the Multiply service.
- */
-@Service(MultiplyService.class)
-public class MultiplyServiceImpl implements MultiplyService {
-
- public double multiply(double n1, double n2) {
- return n1 * n2;
- }
-
-}
diff --git a/tags/java-M1-20060518/java/samples/sca/calculator/src/main/java/calculator/SubtractService.java b/tags/java-M1-20060518/java/samples/sca/calculator/src/main/java/calculator/SubtractService.java
deleted file mode 100644
index 2e0fcb2b36..0000000000
--- a/tags/java-M1-20060518/java/samples/sca/calculator/src/main/java/calculator/SubtractService.java
+++ /dev/null
@@ -1,23 +0,0 @@
-/**
- *
- * Copyright 2005 The Apache Software Foundation or its licensors, as applicable.
- *
- * Licensed 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 calculator;
-
-public interface SubtractService {
-
- double subtract(double n1, double n2);
-
-}
diff --git a/tags/java-M1-20060518/java/samples/sca/calculator/src/main/java/calculator/SubtractServiceImpl.java b/tags/java-M1-20060518/java/samples/sca/calculator/src/main/java/calculator/SubtractServiceImpl.java
deleted file mode 100644
index 62103906fa..0000000000
--- a/tags/java-M1-20060518/java/samples/sca/calculator/src/main/java/calculator/SubtractServiceImpl.java
+++ /dev/null
@@ -1,31 +0,0 @@
-/**
- *
- * Copyright 2005 The Apache Software Foundation or its licensors, as applicable.
- *
- * Licensed 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 calculator;
-
-import org.osoa.sca.annotations.Service;
-
-/**
- * An implementation of the subtract service.
- */
-@Service(SubtractService.class)
-public class SubtractServiceImpl implements SubtractService {
-
- public double subtract(double n1, double n2) {
- return n1 - n2;
- }
-
-}
diff --git a/tags/java-M1-20060518/java/samples/sca/calculator/src/main/resources/logging.properties b/tags/java-M1-20060518/java/samples/sca/calculator/src/main/resources/logging.properties
deleted file mode 100644
index 58407bd5a9..0000000000
--- a/tags/java-M1-20060518/java/samples/sca/calculator/src/main/resources/logging.properties
+++ /dev/null
@@ -1,27 +0,0 @@
-# Copyright (c) 2006 The Apache Software Foundation or its licensors, as applicable.
-#
-# Licensed 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.
-#
-# $Rev$ $Date$
-#
-
-# Custom logging configuration for Tuscany samples
-# By default, only INFO level logging is enabled and ALL messages get sent to the console
-# For more messages from the runtime, uncomment specific settings at the end of this file
-handlers = java.util.logging.ConsoleHandler
-java.util.logging.ConsoleHandler.level = ALL
-java.util.logging.ConsoleHandler.formatter = java.util.logging.SimpleFormatter
-.level=INFO
-
-# Uncomment the next setting to get all Tuscany messages (this will be a lot)
-#org.apache.tuscany.level=FINEST \ No newline at end of file
diff --git a/tags/java-M1-20060518/java/samples/sca/calculator/src/main/resources/sca.module b/tags/java-M1-20060518/java/samples/sca/calculator/src/main/resources/sca.module
deleted file mode 100644
index d37fc3f659..0000000000
--- a/tags/java-M1-20060518/java/samples/sca/calculator/src/main/resources/sca.module
+++ /dev/null
@@ -1,46 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<!--
- Copyright (c) 2005 The Apache Software Foundation or its licensors, as applicable.
-
- Licensed 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.
- -->
-<module xmlns="http://www.osoa.org/xmlns/sca/0.9" xmlns:v="http://www.osoa.org/xmlns/sca/values/0.9"
- name="calculator">
-
- <component name="CalculatorServiceComponent">
- <implementation.java class="calculator.CalculatorServiceImpl"/>
- <references>
- <v:addService>AddServiceComponent</v:addService>
- <v:subtractService>SubtractServiceComponent</v:subtractService>
- <v:multiplyService>MultiplyServiceComponent</v:multiplyService>
- <v:divideService>DivideServiceComponent</v:divideService>
- </references>
- </component>
-
- <component name="AddServiceComponent">
- <implementation.java class="calculator.AddServiceImpl"/>
- </component>
-
- <component name="SubtractServiceComponent">
- <implementation.java class="calculator.SubtractServiceImpl"/>
- </component>
-
- <component name="MultiplyServiceComponent">
- <implementation.java class="calculator.MultiplyServiceImpl"/>
- </component>
-
- <component name="DivideServiceComponent">
- <implementation.java class="calculator.DivideServiceImpl"/>
- </component>
-
-</module>
diff --git a/tags/java-M1-20060518/java/samples/sca/calculator/src/test/java/calculator/CalculatorTestCase.java b/tags/java-M1-20060518/java/samples/sca/calculator/src/test/java/calculator/CalculatorTestCase.java
deleted file mode 100644
index f6b5d5f24d..0000000000
--- a/tags/java-M1-20060518/java/samples/sca/calculator/src/test/java/calculator/CalculatorTestCase.java
+++ /dev/null
@@ -1,65 +0,0 @@
-/**
- *
- * Copyright 2005 The Apache Software Foundation or its licensors, as applicable.
- *
- * Licensed 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 calculator;
-
-import junit.framework.TestCase;
-
-import org.apache.tuscany.core.client.TuscanyRuntime;
-import org.osoa.sca.CurrentModuleContext;
-import org.osoa.sca.ModuleContext;
-
-/**
- * This shows how to test the HelloWorld service component.
- */
-public class CalculatorTestCase extends TestCase {
-
- private TuscanyRuntime tuscany;
-
- protected void setUp() throws Exception {
- super.setUp();
-
- // Create a Tuscany runtime for the sample module component
- tuscany = new TuscanyRuntime("CalculatorModuleComponent", "http://calculator");
-
- // Start the Tuscany runtime and associate it with this thread
- tuscany.start();
- }
-
- public void testCalculator() throws Exception {
-
- // Get the SCA module context.
- ModuleContext moduleContext = CurrentModuleContext.getContext();
-
- // Locate the Calculator service
- CalculatorService calculatorService = (CalculatorService) moduleContext.locateService("CalculatorServiceComponent");
-
- // Calculate
- assertEquals(calculatorService.add(3, 2), 5.0);
- assertEquals(calculatorService.subtract(3, 2), 1.0);
- assertEquals(calculatorService.multiply(3, 2), 6.0);
- assertEquals(calculatorService.divide(3, 2), 1.5);
-
- }
-
- protected void tearDown() throws Exception {
-
- // Stop the Tuscany runtime
- tuscany.stop();
-
- super.tearDown();
- }
-}
diff --git a/tags/java-M1-20060518/java/samples/sca/customerinfo/LICENSE.txt b/tags/java-M1-20060518/java/samples/sca/customerinfo/LICENSE.txt
deleted file mode 100644
index d645695673..0000000000
--- a/tags/java-M1-20060518/java/samples/sca/customerinfo/LICENSE.txt
+++ /dev/null
@@ -1,202 +0,0 @@
-
- Apache License
- Version 2.0, January 2004
- http://www.apache.org/licenses/
-
- TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
-
- 1. Definitions.
-
- "License" shall mean the terms and conditions for use, reproduction,
- and distribution as defined by Sections 1 through 9 of this document.
-
- "Licensor" shall mean the copyright owner or entity authorized by
- the copyright owner that is granting the License.
-
- "Legal Entity" shall mean the union of the acting entity and all
- other entities that control, are controlled by, or are under common
- control with that entity. For the purposes of this definition,
- "control" means (i) the power, direct or indirect, to cause the
- direction or management of such entity, whether by contract or
- otherwise, or (ii) ownership of fifty percent (50%) or more of the
- outstanding shares, or (iii) beneficial ownership of such entity.
-
- "You" (or "Your") shall mean an individual or Legal Entity
- exercising permissions granted by this License.
-
- "Source" form shall mean the preferred form for making modifications,
- including but not limited to software source code, documentation
- source, and configuration files.
-
- "Object" form shall mean any form resulting from mechanical
- transformation or translation of a Source form, including but
- not limited to compiled object code, generated documentation,
- and conversions to other media types.
-
- "Work" shall mean the work of authorship, whether in Source or
- Object form, made available under the License, as indicated by a
- copyright notice that is included in or attached to the work
- (an example is provided in the Appendix below).
-
- "Derivative Works" shall mean any work, whether in Source or Object
- form, that is based on (or derived from) the Work and for which the
- editorial revisions, annotations, elaborations, or other modifications
- represent, as a whole, an original work of authorship. For the purposes
- of this License, Derivative Works shall not include works that remain
- separable from, or merely link (or bind by name) to the interfaces of,
- the Work and Derivative Works thereof.
-
- "Contribution" shall mean any work of authorship, including
- the original version of the Work and any modifications or additions
- to that Work or Derivative Works thereof, that is intentionally
- submitted to Licensor for inclusion in the Work by the copyright owner
- or by an individual or Legal Entity authorized to submit on behalf of
- the copyright owner. For the purposes of this definition, "submitted"
- means any form of electronic, verbal, or written communication sent
- to the Licensor or its representatives, including but not limited to
- communication on electronic mailing lists, source code control systems,
- and issue tracking systems that are managed by, or on behalf of, the
- Licensor for the purpose of discussing and improving the Work, but
- excluding communication that is conspicuously marked or otherwise
- designated in writing by the copyright owner as "Not a Contribution."
-
- "Contributor" shall mean Licensor and any individual or Legal Entity
- on behalf of whom a Contribution has been received by Licensor and
- subsequently incorporated within the Work.
-
- 2. Grant of Copyright License. Subject to the terms and conditions of
- this License, each Contributor hereby grants to You a perpetual,
- worldwide, non-exclusive, no-charge, royalty-free, irrevocable
- copyright license to reproduce, prepare Derivative Works of,
- publicly display, publicly perform, sublicense, and distribute the
- Work and such Derivative Works in Source or Object form.
-
- 3. Grant of Patent License. Subject to the terms and conditions of
- this License, each Contributor hereby grants to You a perpetual,
- worldwide, non-exclusive, no-charge, royalty-free, irrevocable
- (except as stated in this section) patent license to make, have made,
- use, offer to sell, sell, import, and otherwise transfer the Work,
- where such license applies only to those patent claims licensable
- by such Contributor that are necessarily infringed by their
- Contribution(s) alone or by combination of their Contribution(s)
- with the Work to which such Contribution(s) was submitted. If You
- institute patent litigation against any entity (including a
- cross-claim or counterclaim in a lawsuit) alleging that the Work
- or a Contribution incorporated within the Work constitutes direct
- or contributory patent infringement, then any patent licenses
- granted to You under this License for that Work shall terminate
- as of the date such litigation is filed.
-
- 4. Redistribution. You may reproduce and distribute copies of the
- Work or Derivative Works thereof in any medium, with or without
- modifications, and in Source or Object form, provided that You
- meet the following conditions:
-
- (a) You must give any other recipients of the Work or
- Derivative Works a copy of this License; and
-
- (b) You must cause any modified files to carry prominent notices
- stating that You changed the files; and
-
- (c) You must retain, in the Source form of any Derivative Works
- that You distribute, all copyright, patent, trademark, and
- attribution notices from the Source form of the Work,
- excluding those notices that do not pertain to any part of
- the Derivative Works; and
-
- (d) If the Work includes a "NOTICE" text file as part of its
- distribution, then any Derivative Works that You distribute must
- include a readable copy of the attribution notices contained
- within such NOTICE file, excluding those notices that do not
- pertain to any part of the Derivative Works, in at least one
- of the following places: within a NOTICE text file distributed
- as part of the Derivative Works; within the Source form or
- documentation, if provided along with the Derivative Works; or,
- within a display generated by the Derivative Works, if and
- wherever such third-party notices normally appear. The contents
- of the NOTICE file are for informational purposes only and
- do not modify the License. You may add Your own attribution
- notices within Derivative Works that You distribute, alongside
- or as an addendum to the NOTICE text from the Work, provided
- that such additional attribution notices cannot be construed
- as modifying the License.
-
- You may add Your own copyright statement to Your modifications and
- may provide additional or different license terms and conditions
- for use, reproduction, or distribution of Your modifications, or
- for any such Derivative Works as a whole, provided Your use,
- reproduction, and distribution of the Work otherwise complies with
- the conditions stated in this License.
-
- 5. Submission of Contributions. Unless You explicitly state otherwise,
- any Contribution intentionally submitted for inclusion in the Work
- by You to the Licensor shall be under the terms and conditions of
- this License, without any additional terms or conditions.
- Notwithstanding the above, nothing herein shall supersede or modify
- the terms of any separate license agreement you may have executed
- with Licensor regarding such Contributions.
-
- 6. Trademarks. This License does not grant permission to use the trade
- names, trademarks, service marks, or product names of the Licensor,
- except as required for reasonable and customary use in describing the
- origin of the Work and reproducing the content of the NOTICE file.
-
- 7. Disclaimer of Warranty. Unless required by applicable law or
- agreed to in writing, Licensor provides the Work (and each
- Contributor provides its Contributions) on an "AS IS" BASIS,
- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
- implied, including, without limitation, any warranties or conditions
- of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
- PARTICULAR PURPOSE. You are solely responsible for determining the
- appropriateness of using or redistributing the Work and assume any
- risks associated with Your exercise of permissions under this License.
-
- 8. Limitation of Liability. In no event and under no legal theory,
- whether in tort (including negligence), contract, or otherwise,
- unless required by applicable law (such as deliberate and grossly
- negligent acts) or agreed to in writing, shall any Contributor be
- liable to You for damages, including any direct, indirect, special,
- incidental, or consequential damages of any character arising as a
- result of this License or out of the use or inability to use the
- Work (including but not limited to damages for loss of goodwill,
- work stoppage, computer failure or malfunction, or any and all
- other commercial damages or losses), even if such Contributor
- has been advised of the possibility of such damages.
-
- 9. Accepting Warranty or Additional Liability. While redistributing
- the Work or Derivative Works thereof, You may choose to offer,
- and charge a fee for, acceptance of support, warranty, indemnity,
- or other liability obligations and/or rights consistent with this
- License. However, in accepting such obligations, You may act only
- on Your own behalf and on Your sole responsibility, not on behalf
- of any other Contributor, and only if You agree to indemnify,
- defend, and hold each Contributor harmless for any liability
- incurred by, or claims asserted against, such Contributor by reason
- of your accepting any such warranty or additional liability.
-
- END OF TERMS AND CONDITIONS
-
- APPENDIX: How to apply the Apache License to your work.
-
- To apply the Apache License to your work, attach the following
- boilerplate notice, with the fields enclosed by brackets "[]"
- replaced with your own identifying information. (Don't include
- the brackets!) The text should be enclosed in the appropriate
- comment syntax for the file format. We also recommend that a
- file or class name and description of purpose be included on the
- same "printed page" as the copyright notice for easier
- identification within third-party archives.
-
- Copyright [yyyy] [name of copyright owner]
-
- Licensed 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.
diff --git a/tags/java-M1-20060518/java/samples/sca/customerinfo/README.txt b/tags/java-M1-20060518/java/samples/sca/customerinfo/README.txt
deleted file mode 100644
index 9b26d1690a..0000000000
--- a/tags/java-M1-20060518/java/samples/sca/customerinfo/README.txt
+++ /dev/null
@@ -1,35 +0,0 @@
-Apache Tuscany M1 build (May, 2006)
-===================================
-
-http://incubator.apache.org/tuscany/
-
-Tuscany is an effort undergoing incubation at the Apache Software Foundation
-(ASF), sponsored by the Web Services PMC.
-
-Incubation is required of all newly accepted projects until a further review
-indicates that the infrastructure, communications, and decision making process
-have stabilized in a manner consistent with other successful ASF projects.
-
-While incubation status is not necessarily a reflection of the completeness or
-stability of the code, it does indicate that the project has yet to be fully
-endorsed by the ASF.
-
-
-Support
--------
-
-Any problem with this release can be reported to the Tuscany mailing list
-or in the JIRA issue tracker.
-
-Mailing list subscription:
- tuscany-dev-subscribe@ws.apache.org
-
-Jira:
- http://issues.apache.org/jira/browse/Tuscany
-
-
-Thank you for using Tuscany!
-
-
-The Tuscany Team.
-
diff --git a/tags/java-M1-20060518/java/samples/sca/customerinfo/build.xml b/tags/java-M1-20060518/java/samples/sca/customerinfo/build.xml
deleted file mode 100644
index c35e86f885..0000000000
--- a/tags/java-M1-20060518/java/samples/sca/customerinfo/build.xml
+++ /dev/null
@@ -1,58 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<!--
- * Copyright (c) 2005-2006 The Apache Software Foundation or its licensors, as applicable.
- *
- * Licensed 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 name="samples" default="compile">
- <property name="mainDir" value="../../.."/>
- <path id="javac.classpath">
- <fileset dir="${mainDir}/lib">
- <include name="tuscany-runtime-incubating-M1.jar"/>
- </fileset>
- </path>
- <path id="java.classpath">
- <fileset dir="${mainDir}/lib">
- <include name="tuscany-runtime-incubating-M1.jar"/>
- </fileset>
- <pathelement path="target/sample-customerinfo.jar"/>
- </path>
-
- <target name="init">
- <mkdir dir="target/classes"/>
- </target>
-
- <target name="compile" depends="init">
- <javac srcdir="src/main/java" destdir="target/classes" debug="on" source="1.5" target="1.5">
- <classpath refid="javac.classpath"/>
- </javac>
- <copy todir="target/classes">
- <fileset dir="src/main/resources"/>
- </copy>
- <jar destfile="target/sample-customerinfo.jar">
- <fileset dir="target/classes"/>
- </jar>
- </target>
-
- <target name="run" depends="compile">
- <java classname="customerinfo.CustomerInfoClient"
- classpathref="java.classpath" fork="true">
- </java>
- </target>
-
- <target name="clean">
- <delete quiet="true" includeemptydirs="true">
- <fileset dir="target" excludes="sample-customerinfo-incubating-M1.jar"/>
- </delete>
- </target>
-</project>
diff --git a/tags/java-M1-20060518/java/samples/sca/customerinfo/pom.xml b/tags/java-M1-20060518/java/samples/sca/customerinfo/pom.xml
deleted file mode 100644
index b299059dfe..0000000000
--- a/tags/java-M1-20060518/java/samples/sca/customerinfo/pom.xml
+++ /dev/null
@@ -1,52 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<!--
- * Copyright (c) 2005-2006 The Apache Software Foundation or its licensors, as applicable.
- *
- * Licensed 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>
- <parent>
- <groupId>org.apache.tuscany.samples.sca</groupId>
- <artifactId>tuscany-samples-sca</artifactId>
- <version>incubating-M1</version>
- </parent>
-
- <modelVersion>4.0.0</modelVersion>
- <artifactId>sample-customerinfo</artifactId>
- <packaging>jar</packaging>
- <name>Tuscany Customer Info Sample</name>
- <description>A component that exposes a WSDL portType interface and uses the dynamic SDO API.</description>
- <version>incubating-M1</version>
-
- <dependencies>
- <dependency>
- <groupId>org.apache.tuscany</groupId>
- <artifactId>tuscany-core</artifactId>
- <version>${pom.version}</version>
- <scope>provided</scope>
- </dependency>
- <dependency>
- <groupId>org.apache.tuscany.sca.containers</groupId>
- <artifactId>tuscany-container-java</artifactId>
- <version>${pom.version}</version>
- <scope>provided</scope>
- </dependency>
-
- <dependency>
- <groupId>junit</groupId>
- <artifactId>junit</artifactId>
- <version>3.8.1</version>
- <scope>test</scope>
- </dependency>
- </dependencies>
-</project>
diff --git a/tags/java-M1-20060518/java/samples/sca/customerinfo/readme.htm b/tags/java-M1-20060518/java/samples/sca/customerinfo/readme.htm
deleted file mode 100644
index 5619733093..0000000000
--- a/tags/java-M1-20060518/java/samples/sca/customerinfo/readme.htm
+++ /dev/null
@@ -1,61 +0,0 @@
-<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
-<html><head><!-- Copyright (c) 2005 The Apache Software Foundation or its licensors, as applicable. Licensed 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. -->
-<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"> <meta http-equiv="Content-Style-Type" content="text/css"><title>Tuscany
-CustomerInfo </title><!-- LINK rel="stylesheet" href="ait.css" type="text/css" -->
-<style type="text/css" media="all">
-@import url("../../../../css/maven-base.css");
-@import url("../../../../css/maven-theme.css");
-@import url("../../../../css/site.css");
-</style><link rel="stylesheet" href="./css/print.css" type="text/css" media="print"></head>
-
-<body>
-<h2>Tuscany CustomerInfo Sample</h2>
-
-<h3>Overview</h3>
-
-<p>The CustomerInfo sample shows a component exposing a WSDL portType interface
- and a J2SE client using the dynamic SDO API to use the component.</p>
-
-<h3>Location</h3>This
-sample is located &nbsp;in the samples\sca\customerinfo directory.<br><br>
-
-<h3>Setup</h3>This sample depends on the Tuscany runtime and the sample jar,
-
- <span style="font-weight: bold;">
- sample-customerinfo-incubating-M1.jar
- </span>
-
-, both of these must be available on the classpath to run the sample.
-<ol>
-</ol>
-<h3>Running</h3>
-
- In the directory samples/sca/customerinfo use the JDK 1.5 java command to run the class customerinfo.CustomerInfoClient
-
- <pre>Linux: java -cp ../../../lib/tuscany-runtime-incubating-M1.jar:target/sample-customerinfo-incubating-M1.jar customerinfo.CustomerInfoClient</pre>
- <pre>Windows: java -cp ../../../lib/tuscany-runtime-incubating-M1.jar;target/sample-customerinfo-incubating-M1.jar customerinfo.CustomerInfoClient</pre>
-
-<h3>Results</h3>
-<p>The sample when run should simply display to the standard
-output:<br>
-<code>
-customerID = 12345<br>
-firstName = Jane<br>
-lastName = Doe<br>
-</code></p>
-<h3>Code Overview</h3>
-The source files are physically organized as shown below:
-<table style="text-align: left; width: 100%;" border="1" cellpadding="2" cellspacing="2"> <tbody> <tr><td>src<br>+---main<br>&nbsp;&nbsp;&nbsp; +---java<br>&nbsp;&nbsp;&nbsp; &brvbar;&nbsp;&nbsp; +---customerinfo<br>&nbsp;&nbsp;&nbsp; &brvbar;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; CustomerInfoClient.java<br>&nbsp;&nbsp;&nbsp; &brvbar;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; CustomerInfoServiceImpl.java<br>&nbsp;&nbsp;&nbsp; &brvbar;<br>&nbsp;&nbsp;&nbsp; +---resources<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; sca.module<br>&nbsp;&nbsp;&nbsp; +---wsdl<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; customer.xsd<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; customerinfo.wsdl</td></tr></tbody></table>
-<br>
-<table style="text-align: left; width: 879px; height: 154px;" border="0" cellpadding="2" cellspacing="2"> <tbody><tr><td style="vertical-align: top;">sca.module</td>
-<td>Defines the SCA module and component. Defines for the
-CustomerInfoServiceComponent component with the Java class that
-implements that component</td> </tr>
-<tr> <td style="vertical-align: top;">CustomerInfoServiceImpl.java</td>
-<td>Implements the SCA component. Uses an @SDOHelper anotation to have the SDO DataFactory automatically injected into the dataFacory field, and uses the DataFactory to create a cutomer DataObject which it initialises and returns to the caller.</td>
-</tr> <tr> <td style="vertical-align: top;">CustomerInfoClient .java</td>
-<td>Creates a Tuscany runtime and starts it. &nbsp;Obtains
-the module context which was defined by the sca.module file. From the
-module context locates the CustomerInfoServiceComponent, and then
-calls&nbsp; the getCustomerInfo method to invoke the component. It uses the SDO dynamic APIs to extract the information from the returned DataObject.</td>
-</tr> </tbody></table><br></body></html> \ No newline at end of file
diff --git a/tags/java-M1-20060518/java/samples/sca/customerinfo/src/main/java/customerinfo/CustomerInfoClient.java b/tags/java-M1-20060518/java/samples/sca/customerinfo/src/main/java/customerinfo/CustomerInfoClient.java
deleted file mode 100644
index 7f97c36625..0000000000
--- a/tags/java-M1-20060518/java/samples/sca/customerinfo/src/main/java/customerinfo/CustomerInfoClient.java
+++ /dev/null
@@ -1,72 +0,0 @@
-/**
- *
- * Copyright 2005 The Apache Software Foundation or its licensors, as applicable.
- *
- * Licensed 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 customerinfo;
-
-import java.lang.reflect.Method;
-import java.util.Properties;
-import java.util.logging.Level;
-import java.util.logging.LogManager;
-
-import org.apache.tuscany.common.monitor.MonitorFactory;
-import org.apache.tuscany.common.monitor.impl.JavaLoggingMonitorFactory;
-import org.apache.tuscany.core.client.TuscanyRuntime;
-import org.osoa.sca.CurrentModuleContext;
-import org.osoa.sca.ModuleContext;
-
-import commonj.sdo.DataObject;
-
-/**
- * This client program shows how to create an SCA runtime, start it,
- * locate the CustomerInfo service and invoke it.
- */
-public class CustomerInfoClient {
-
- public static final void main(String[] args) throws Exception {
-
- // Setup Tuscany monitoring to use java.util.logging
- LogManager.getLogManager().readConfiguration(CustomerInfoClient.class.getResourceAsStream("/logging.properties"));
- Properties levels = new Properties();
- MonitorFactory monitorFactory = new JavaLoggingMonitorFactory(levels, Level.FINEST, "MonitorMessages");
-
- // Create a Tuscany runtime for the sample module component
- TuscanyRuntime tuscany = new TuscanyRuntime("CustomerInfoModuleComponent", "http://customerinfo", monitorFactory);
-
- // Start the Tuscany runtime and associate it with this thread
- tuscany.start();
-
- // Get the SCA module context.
- ModuleContext moduleContext = CurrentModuleContext.getContext();
-
- // Locate the CustomerInfo service
- Object customerInfoService = moduleContext.locateService("CustomerInfoServiceComponent");
-
- // Invoke the CustomerInfo service
- Method getCustomerInfo = customerInfoService.getClass().getMethod("getCustomerInfo", new Class[] {String.class});
- DataObject customer = (DataObject)getCustomerInfo.invoke(customerInfoService, "12345");
-
- System.out.println("customerID = " + customer.getString("customerID"));
- System.out.println("firstName = " + customer.getString("firstName"));
- System.out.println("lastName = " + customer.getString("lastName"));
- System.out.flush();
-
- // Disassociate the runtime from this thread
- tuscany.stop();
-
- // Shut down the runtime
- tuscany.shutdown();
- }
-}
diff --git a/tags/java-M1-20060518/java/samples/sca/customerinfo/src/main/java/customerinfo/CustomerInfoServiceImpl.java b/tags/java-M1-20060518/java/samples/sca/customerinfo/src/main/java/customerinfo/CustomerInfoServiceImpl.java
deleted file mode 100644
index 090076aa0d..0000000000
--- a/tags/java-M1-20060518/java/samples/sca/customerinfo/src/main/java/customerinfo/CustomerInfoServiceImpl.java
+++ /dev/null
@@ -1,41 +0,0 @@
-/**
- *
- * Copyright 2005 The Apache Software Foundation or its licensors, as applicable.
- *
- * Licensed 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 customerinfo;
-
-import org.apache.tuscany.core.sdo.helper.SDOHelper;
-
-import commonj.sdo.DataObject;
-import commonj.sdo.helper.DataFactory;
-
-/**
- * Implementation of the CustomerInfo service.
- */
-public class CustomerInfoServiceImpl {
-
- @SDOHelper
- public DataFactory dataFactory;
-
- public DataObject getCustomerInfo(String customerID) {
-
- DataObject customer = dataFactory.create("http://customer", "Customer");
- customer.setString("customerID", customerID);
- customer.setString("firstName", "Jane");
- customer.setString("lastName", "Doe");
- return customer;
- }
-
-}
diff --git a/tags/java-M1-20060518/java/samples/sca/customerinfo/src/main/resources/logging.properties b/tags/java-M1-20060518/java/samples/sca/customerinfo/src/main/resources/logging.properties
deleted file mode 100644
index 58407bd5a9..0000000000
--- a/tags/java-M1-20060518/java/samples/sca/customerinfo/src/main/resources/logging.properties
+++ /dev/null
@@ -1,27 +0,0 @@
-# Copyright (c) 2006 The Apache Software Foundation or its licensors, as applicable.
-#
-# Licensed 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.
-#
-# $Rev$ $Date$
-#
-
-# Custom logging configuration for Tuscany samples
-# By default, only INFO level logging is enabled and ALL messages get sent to the console
-# For more messages from the runtime, uncomment specific settings at the end of this file
-handlers = java.util.logging.ConsoleHandler
-java.util.logging.ConsoleHandler.level = ALL
-java.util.logging.ConsoleHandler.formatter = java.util.logging.SimpleFormatter
-.level=INFO
-
-# Uncomment the next setting to get all Tuscany messages (this will be a lot)
-#org.apache.tuscany.level=FINEST \ No newline at end of file
diff --git a/tags/java-M1-20060518/java/samples/sca/customerinfo/src/main/resources/sca.module b/tags/java-M1-20060518/java/samples/sca/customerinfo/src/main/resources/sca.module
deleted file mode 100644
index 8d6a38197a..0000000000
--- a/tags/java-M1-20060518/java/samples/sca/customerinfo/src/main/resources/sca.module
+++ /dev/null
@@ -1,27 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<!--
- Copyright (c) 2005 The Apache Software Foundation or its licensors, as applicable.
-
- Licensed 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.
- -->
-<module xmlns="http://www.osoa.org/xmlns/sca/0.9" xmlns:v="http://www.osoa.org/xmlns/sca/values/0.9"
- name="customerinfo">
-
- <import.sdo schemaLocation="wsdl/customer.xsd"/>
- <import.wsdl wsdlLocation="wsdl/customerinfo.wsdl"/>
-
- <component name="CustomerInfoServiceComponent">
- <implementation.java class="customerinfo.CustomerInfoServiceImpl"/>
- </component>
-
-</module>
diff --git a/tags/java-M1-20060518/java/samples/sca/customerinfo/src/main/resources/wsdl/customer.xsd b/tags/java-M1-20060518/java/samples/sca/customerinfo/src/main/resources/wsdl/customer.xsd
deleted file mode 100644
index 4d8aeff0b0..0000000000
--- a/tags/java-M1-20060518/java/samples/sca/customerinfo/src/main/resources/wsdl/customer.xsd
+++ /dev/null
@@ -1,26 +0,0 @@
-<schema elementFormDefault="qualified" targetNamespace="http://customer" xmlns="http://www.w3.org/2001/XMLSchema">
-<!--
- Copyright (c) 2005 The Apache Software Foundation or its licensors, as applicable.
-
- Licensed 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.
- -->
-
- <complexType name="Customer">
- <sequence>
- <element name="customerID" type="string"/>
- <element name="firstName" type="string"/>
- <element name="lastName" type="string"/>
- </sequence>
- </complexType>
-
-</schema>
diff --git a/tags/java-M1-20060518/java/samples/sca/customerinfo/src/main/resources/wsdl/customerinfo.wsdl b/tags/java-M1-20060518/java/samples/sca/customerinfo/src/main/resources/wsdl/customerinfo.wsdl
deleted file mode 100644
index 58978aad0e..0000000000
--- a/tags/java-M1-20060518/java/samples/sca/customerinfo/src/main/resources/wsdl/customerinfo.wsdl
+++ /dev/null
@@ -1,76 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<!--
- Copyright (c) 2005 The Apache Software Foundation or its licensors, as applicable.
-
- Licensed 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.
- -->
-<wsdl:definitions targetNamespace="http://customerinfo" xmlns:tns="http://customerinfo" xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/" xmlns:wsdlsoap="http://schemas.xmlsoap.org/wsdl/soap/" xmlns:xsd="http://www.w3.org/2001/XMLSchema"
- name="helloworld">
-
- <wsdl:types>
- <schema elementFormDefault="qualified" targetNamespace="http://customerinfo" xmlns:customer="http://customer" xmlns="http://www.w3.org/2001/XMLSchema">
- <import namespace="http://customer" schemaLocation="customer.xsd"/>
-
- <element name="getCustomerInfo">
- <complexType>
- <sequence>
- <element name="customerID" type="xsd:string"/>
- </sequence>
- </complexType>
- </element>
-
- <element name="getCustomerInfoResponse">
- <complexType>
- <sequence>
- <element name="getCustomerInfoReturn" type="customer:Customer"/>
- </sequence>
- </complexType>
- </element>
- </schema>
- </wsdl:types>
-
- <wsdl:message name="getCustomerInfoRequest">
- <wsdl:part element="tns:getCustomerInfo" name="parameters"/>
- </wsdl:message>
-
- <wsdl:message name="getCustomerInfoResponse">
- <wsdl:part element="tns:getCustomerInfoResponse" name="parameters"/>
- </wsdl:message>
-
- <wsdl:portType name="CustomerInfo">
- <wsdl:operation name="getCustomerInfo">
- <wsdl:input message="tns:getCustomerInfoRequest" name="getCustomerInfoRequest"/>
- <wsdl:output message="tns:getCustomerInfoResponse" name="getCustomerInfoResponse"/>
- </wsdl:operation>
- </wsdl:portType>
-
- <wsdl:binding name="CustomerInfoSoapBinding" type="tns:CustomerInfo">
- <wsdlsoap:binding style="document" transport="http://schemas.xmlsoap.org/soap/http"/>
- <wsdl:operation name="getCustomerInfo">
- <wsdlsoap:operation soapAction=""/>
- <wsdl:input name="getCustomerInfoRequest">
- <wsdlsoap:body use="literal"/>
- </wsdl:input>
- <wsdl:output name="getCustomerInfoResponse">
- <wsdlsoap:body use="literal"/>
- </wsdl:output>
- </wsdl:operation>
- </wsdl:binding>
-
- <wsdl:service name="CustomerInfoService">
- <wsdl:port binding="tns:CustomerInfoSoapBinding" name="CustomerInfoSoapPort">
- <wsdlsoap:address location="http://localhost:8080/sample-helloworldws/services/CustomerInfoService"/>
- </wsdl:port>
- </wsdl:service>
-
-</wsdl:definitions>
diff --git a/tags/java-M1-20060518/java/samples/sca/customerinfo/src/test/java/customerinfo/CustomerInfoTestCase.java b/tags/java-M1-20060518/java/samples/sca/customerinfo/src/test/java/customerinfo/CustomerInfoTestCase.java
deleted file mode 100644
index 08b1e701d1..0000000000
--- a/tags/java-M1-20060518/java/samples/sca/customerinfo/src/test/java/customerinfo/CustomerInfoTestCase.java
+++ /dev/null
@@ -1,74 +0,0 @@
-/**
- *
- * Copyright 2005 The Apache Software Foundation or its licensors, as applicable.
- *
- * Licensed 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 customerinfo;
-
-import java.lang.reflect.Method;
-
-import junit.framework.TestCase;
-
-import org.apache.tuscany.core.client.TuscanyRuntime;
-import org.osoa.sca.CurrentModuleContext;
-import org.osoa.sca.ModuleContext;
-
-import commonj.sdo.DataObject;
-
-/**
- * This shows how to test the CustomerInfo service component.
- */
-public class CustomerInfoTestCase extends TestCase {
-
- private TuscanyRuntime tuscany;
-
- protected void setUp() throws Exception {
- super.setUp();
-
- // Create a Tuscany runtime for the sample module component
- tuscany = new TuscanyRuntime("CustomerInfoModuleComponent", "http://customerinfo");
-
- // Start the Tuscany runtime and associate it with this thread
- tuscany.start();
- }
-
- public void testCustomerInfo() throws Exception {
-
- // Get the SCA module context.
- ModuleContext moduleContext = CurrentModuleContext.getContext();
-
- // Locate the CustomerInfo service
- Object customerInfoService = moduleContext.locateService("CustomerInfoServiceComponent");
-
- // Invoke the CustomerInfo service
- Method getCustomerInfo = customerInfoService.getClass().getMethod("getCustomerInfo", new Class[] {String.class});
- DataObject customer = (DataObject)getCustomerInfo.invoke(customerInfoService, "12345");
-
- assertEquals("12345", customer.getString("customerID"));
- assertEquals("Jane", customer.getString("firstName"));
- assertEquals("Doe", customer.getString("lastName"));
-
- }
-
- protected void tearDown() throws Exception {
-
- // Stop the Tuscany runtime
- tuscany.stop();
-
- // Shutdown the runtime
- tuscany.shutdown();
-
- super.tearDown();
- }
-}
diff --git a/tags/java-M1-20060518/java/samples/sca/helloworld-jms/client/LICENSE.txt b/tags/java-M1-20060518/java/samples/sca/helloworld-jms/client/LICENSE.txt
deleted file mode 100644
index d645695673..0000000000
--- a/tags/java-M1-20060518/java/samples/sca/helloworld-jms/client/LICENSE.txt
+++ /dev/null
@@ -1,202 +0,0 @@
-
- Apache License
- Version 2.0, January 2004
- http://www.apache.org/licenses/
-
- TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
-
- 1. Definitions.
-
- "License" shall mean the terms and conditions for use, reproduction,
- and distribution as defined by Sections 1 through 9 of this document.
-
- "Licensor" shall mean the copyright owner or entity authorized by
- the copyright owner that is granting the License.
-
- "Legal Entity" shall mean the union of the acting entity and all
- other entities that control, are controlled by, or are under common
- control with that entity. For the purposes of this definition,
- "control" means (i) the power, direct or indirect, to cause the
- direction or management of such entity, whether by contract or
- otherwise, or (ii) ownership of fifty percent (50%) or more of the
- outstanding shares, or (iii) beneficial ownership of such entity.
-
- "You" (or "Your") shall mean an individual or Legal Entity
- exercising permissions granted by this License.
-
- "Source" form shall mean the preferred form for making modifications,
- including but not limited to software source code, documentation
- source, and configuration files.
-
- "Object" form shall mean any form resulting from mechanical
- transformation or translation of a Source form, including but
- not limited to compiled object code, generated documentation,
- and conversions to other media types.
-
- "Work" shall mean the work of authorship, whether in Source or
- Object form, made available under the License, as indicated by a
- copyright notice that is included in or attached to the work
- (an example is provided in the Appendix below).
-
- "Derivative Works" shall mean any work, whether in Source or Object
- form, that is based on (or derived from) the Work and for which the
- editorial revisions, annotations, elaborations, or other modifications
- represent, as a whole, an original work of authorship. For the purposes
- of this License, Derivative Works shall not include works that remain
- separable from, or merely link (or bind by name) to the interfaces of,
- the Work and Derivative Works thereof.
-
- "Contribution" shall mean any work of authorship, including
- the original version of the Work and any modifications or additions
- to that Work or Derivative Works thereof, that is intentionally
- submitted to Licensor for inclusion in the Work by the copyright owner
- or by an individual or Legal Entity authorized to submit on behalf of
- the copyright owner. For the purposes of this definition, "submitted"
- means any form of electronic, verbal, or written communication sent
- to the Licensor or its representatives, including but not limited to
- communication on electronic mailing lists, source code control systems,
- and issue tracking systems that are managed by, or on behalf of, the
- Licensor for the purpose of discussing and improving the Work, but
- excluding communication that is conspicuously marked or otherwise
- designated in writing by the copyright owner as "Not a Contribution."
-
- "Contributor" shall mean Licensor and any individual or Legal Entity
- on behalf of whom a Contribution has been received by Licensor and
- subsequently incorporated within the Work.
-
- 2. Grant of Copyright License. Subject to the terms and conditions of
- this License, each Contributor hereby grants to You a perpetual,
- worldwide, non-exclusive, no-charge, royalty-free, irrevocable
- copyright license to reproduce, prepare Derivative Works of,
- publicly display, publicly perform, sublicense, and distribute the
- Work and such Derivative Works in Source or Object form.
-
- 3. Grant of Patent License. Subject to the terms and conditions of
- this License, each Contributor hereby grants to You a perpetual,
- worldwide, non-exclusive, no-charge, royalty-free, irrevocable
- (except as stated in this section) patent license to make, have made,
- use, offer to sell, sell, import, and otherwise transfer the Work,
- where such license applies only to those patent claims licensable
- by such Contributor that are necessarily infringed by their
- Contribution(s) alone or by combination of their Contribution(s)
- with the Work to which such Contribution(s) was submitted. If You
- institute patent litigation against any entity (including a
- cross-claim or counterclaim in a lawsuit) alleging that the Work
- or a Contribution incorporated within the Work constitutes direct
- or contributory patent infringement, then any patent licenses
- granted to You under this License for that Work shall terminate
- as of the date such litigation is filed.
-
- 4. Redistribution. You may reproduce and distribute copies of the
- Work or Derivative Works thereof in any medium, with or without
- modifications, and in Source or Object form, provided that You
- meet the following conditions:
-
- (a) You must give any other recipients of the Work or
- Derivative Works a copy of this License; and
-
- (b) You must cause any modified files to carry prominent notices
- stating that You changed the files; and
-
- (c) You must retain, in the Source form of any Derivative Works
- that You distribute, all copyright, patent, trademark, and
- attribution notices from the Source form of the Work,
- excluding those notices that do not pertain to any part of
- the Derivative Works; and
-
- (d) If the Work includes a "NOTICE" text file as part of its
- distribution, then any Derivative Works that You distribute must
- include a readable copy of the attribution notices contained
- within such NOTICE file, excluding those notices that do not
- pertain to any part of the Derivative Works, in at least one
- of the following places: within a NOTICE text file distributed
- as part of the Derivative Works; within the Source form or
- documentation, if provided along with the Derivative Works; or,
- within a display generated by the Derivative Works, if and
- wherever such third-party notices normally appear. The contents
- of the NOTICE file are for informational purposes only and
- do not modify the License. You may add Your own attribution
- notices within Derivative Works that You distribute, alongside
- or as an addendum to the NOTICE text from the Work, provided
- that such additional attribution notices cannot be construed
- as modifying the License.
-
- You may add Your own copyright statement to Your modifications and
- may provide additional or different license terms and conditions
- for use, reproduction, or distribution of Your modifications, or
- for any such Derivative Works as a whole, provided Your use,
- reproduction, and distribution of the Work otherwise complies with
- the conditions stated in this License.
-
- 5. Submission of Contributions. Unless You explicitly state otherwise,
- any Contribution intentionally submitted for inclusion in the Work
- by You to the Licensor shall be under the terms and conditions of
- this License, without any additional terms or conditions.
- Notwithstanding the above, nothing herein shall supersede or modify
- the terms of any separate license agreement you may have executed
- with Licensor regarding such Contributions.
-
- 6. Trademarks. This License does not grant permission to use the trade
- names, trademarks, service marks, or product names of the Licensor,
- except as required for reasonable and customary use in describing the
- origin of the Work and reproducing the content of the NOTICE file.
-
- 7. Disclaimer of Warranty. Unless required by applicable law or
- agreed to in writing, Licensor provides the Work (and each
- Contributor provides its Contributions) on an "AS IS" BASIS,
- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
- implied, including, without limitation, any warranties or conditions
- of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
- PARTICULAR PURPOSE. You are solely responsible for determining the
- appropriateness of using or redistributing the Work and assume any
- risks associated with Your exercise of permissions under this License.
-
- 8. Limitation of Liability. In no event and under no legal theory,
- whether in tort (including negligence), contract, or otherwise,
- unless required by applicable law (such as deliberate and grossly
- negligent acts) or agreed to in writing, shall any Contributor be
- liable to You for damages, including any direct, indirect, special,
- incidental, or consequential damages of any character arising as a
- result of this License or out of the use or inability to use the
- Work (including but not limited to damages for loss of goodwill,
- work stoppage, computer failure or malfunction, or any and all
- other commercial damages or losses), even if such Contributor
- has been advised of the possibility of such damages.
-
- 9. Accepting Warranty or Additional Liability. While redistributing
- the Work or Derivative Works thereof, You may choose to offer,
- and charge a fee for, acceptance of support, warranty, indemnity,
- or other liability obligations and/or rights consistent with this
- License. However, in accepting such obligations, You may act only
- on Your own behalf and on Your sole responsibility, not on behalf
- of any other Contributor, and only if You agree to indemnify,
- defend, and hold each Contributor harmless for any liability
- incurred by, or claims asserted against, such Contributor by reason
- of your accepting any such warranty or additional liability.
-
- END OF TERMS AND CONDITIONS
-
- APPENDIX: How to apply the Apache License to your work.
-
- To apply the Apache License to your work, attach the following
- boilerplate notice, with the fields enclosed by brackets "[]"
- replaced with your own identifying information. (Don't include
- the brackets!) The text should be enclosed in the appropriate
- comment syntax for the file format. We also recommend that a
- file or class name and description of purpose be included on the
- same "printed page" as the copyright notice for easier
- identification within third-party archives.
-
- Copyright [yyyy] [name of copyright owner]
-
- Licensed 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.
diff --git a/tags/java-M1-20060518/java/samples/sca/helloworld-jms/client/README.txt b/tags/java-M1-20060518/java/samples/sca/helloworld-jms/client/README.txt
deleted file mode 100644
index 9b26d1690a..0000000000
--- a/tags/java-M1-20060518/java/samples/sca/helloworld-jms/client/README.txt
+++ /dev/null
@@ -1,35 +0,0 @@
-Apache Tuscany M1 build (May, 2006)
-===================================
-
-http://incubator.apache.org/tuscany/
-
-Tuscany is an effort undergoing incubation at the Apache Software Foundation
-(ASF), sponsored by the Web Services PMC.
-
-Incubation is required of all newly accepted projects until a further review
-indicates that the infrastructure, communications, and decision making process
-have stabilized in a manner consistent with other successful ASF projects.
-
-While incubation status is not necessarily a reflection of the completeness or
-stability of the code, it does indicate that the project has yet to be fully
-endorsed by the ASF.
-
-
-Support
--------
-
-Any problem with this release can be reported to the Tuscany mailing list
-or in the JIRA issue tracker.
-
-Mailing list subscription:
- tuscany-dev-subscribe@ws.apache.org
-
-Jira:
- http://issues.apache.org/jira/browse/Tuscany
-
-
-Thank you for using Tuscany!
-
-
-The Tuscany Team.
-
diff --git a/tags/java-M1-20060518/java/samples/sca/helloworld-jms/client/build.xml b/tags/java-M1-20060518/java/samples/sca/helloworld-jms/client/build.xml
deleted file mode 100644
index 38d8bd2d1f..0000000000
--- a/tags/java-M1-20060518/java/samples/sca/helloworld-jms/client/build.xml
+++ /dev/null
@@ -1,58 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<!--
- * Copyright (c) 2005-2006 The Apache Software Foundation or its licensors, as applicable.
- *
- * Licensed 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 name="samples" default="compile">
- <property name="mainDir" value="../../../.."/>
- <path id="javac.classpath">
- <fileset dir="${mainDir}/lib">
- <include name="tuscany-runtime-incubating-M1.jar"/>
- </fileset>
- <fileset dir="${mainDir}/lib/celtix">
- <include name="tuscany-celtix-incubating-M1.jar"/>
- </fileset>
- </path>
- <path id="java.classpath">
- <fileset dir="${mainDir}/lib">
- <include name="tuscany-runtime-incubating-M1.jar"/>
- </fileset>
- <fileset dir="${mainDir}/lib/celtix">
- <include name="tuscany-celtix-incubating-M1.jar"/>
- </fileset>
- <pathelement path="target/sample-helloworldjms-client.jar"/>
- </path>
-
- <target name="init">
- <mkdir dir="target/classes"/>
- </target>
-
- <target name="compile" depends="init">
- <javac srcdir="src/main/java" destdir="target/classes" debug="on" source="1.5" target="1.5">
- <classpath refid="javac.classpath"/>
- </javac>
- <copy todir="target/classes">
- <fileset dir="src/main/resources"/>
- </copy>
- <jar destfile="target/sample-helloworldjms-client.jar">
- <fileset dir="target/classes"/>
- </jar>
- </target>
-
- <target name="clean">
- <delete quiet="true" includeemptydirs="true">
- <fileset dir="target" excludes="sample-helloworldjms-client-incubating-M1.jar"/>
- </delete>
- </target>
-</project>
diff --git a/tags/java-M1-20060518/java/samples/sca/helloworld-jms/client/pom.xml b/tags/java-M1-20060518/java/samples/sca/helloworld-jms/client/pom.xml
deleted file mode 100644
index ea6d570a06..0000000000
--- a/tags/java-M1-20060518/java/samples/sca/helloworld-jms/client/pom.xml
+++ /dev/null
@@ -1,58 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<!--
- * Copyright (c) 2005-2006 The Apache Software Foundation or its licensors, as applicable.
- *
- * Licensed 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>
- <parent>
- <groupId>org.apache.tuscany.samples.sca.jms</groupId>
- <artifactId>samples-helloworldjms</artifactId>
- <version>incubating-M1</version>
- </parent>
-
- <modelVersion>4.0.0</modelVersion>
- <artifactId>sample-helloworldjms-client</artifactId>
- <packaging>jar</packaging>
- <name>Tuscany HelloWorld Celtix JMS Client Sample</name>
- <description>A sample client for a HelloWorld JMS Service.</description>
- <version>incubating-M1</version>
-
- <dependencies>
- <dependency>
- <groupId>org.apache.tuscany</groupId>
- <artifactId>tuscany-core</artifactId>
- <version>${pom.version}</version>
- <scope>provided</scope>
- </dependency>
- <dependency>
- <groupId>org.apache.tuscany.sca.containers</groupId>
- <artifactId>tuscany-container-java</artifactId>
- <version>${pom.version}</version>
- <scope>provided</scope>
- </dependency>
- <dependency>
- <groupId>org.apache.tuscany.sca.bindings</groupId>
- <artifactId>tuscany-binding-celtix</artifactId>
- <version>${pom.version}</version>
- <scope>provided</scope>
- </dependency>
-
- <dependency>
- <groupId>junit</groupId>
- <artifactId>junit</artifactId>
- <version>3.8.1</version>
- <scope>test</scope>
- </dependency>
- </dependencies>
-</project>
diff --git a/tags/java-M1-20060518/java/samples/sca/helloworld-jms/client/readme.htm b/tags/java-M1-20060518/java/samples/sca/helloworld-jms/client/readme.htm
deleted file mode 100644
index 8449aace44..0000000000
--- a/tags/java-M1-20060518/java/samples/sca/helloworld-jms/client/readme.htm
+++ /dev/null
@@ -1,100 +0,0 @@
-<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
-<html>
-<head>
- <!-- Copyright (c) 2005 The Apache Software Foundation or its licensors, as applicable. Licensed 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. -->
- <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
- <meta http-equiv="Content-Style-Type" content="text/css">
- <title>Tuscany Hello World JMS Client Sample</title> <!-- LINK rel="stylesheet" href="ait.css" type="text/css" --><!-- maven -->
- <style type="text/css" media="all">
- @import url("../../../../css/maven-base.css");
- @import url("../../../../css/maven-theme.css");
- @import url("../../../../css/site.css");
- </style>
- <link rel="stylesheet" href="./css/print.css" type="text/css" media="print">
- <!-- end maven -->
-</head>
- <body>
- <h2>Tuscany Hello World JMS Client Sample</h2> <h3>Overview</h3>
- <p>
- The Tuscany Hello World JMS client sample shows using the Tuscany SCA runtime in
- a J2SE environment invoking a service using XML over JMS.
- </p>
- <h3>Location</h3> This sample is located &nbsp;in the samples\sca\helloworld-jms\client
- directory.<br>
-
- <h3>Setup</h3>This sample depends on the Tuscany runtime, Celtix, and the sample jar,
-
- <span style="font-weight: bold;">
- sample-helloworldjms-client-incubating-M1.jar
- </span>
-
-, all of these must be available on the classpath to run the sample. Additionally, the <a target="_blank" href="../server/readme.htm">JMS server sample</a> must also be running.
-
-<h3>Running</h3>
-
- In the directory samples/sca/helloworld use the JDK 1.5 java command to run the class helloworld.HelloWorldClient
-
- <pre>Linux: java -cp ../../../../lib/tuscany-runtime-incubating-M1.jar:../../../../lib/celtix/tuscany-celtix-incubating-M1.jar:target/sample-helloworldjms-client-incubating-M1.jar helloworld.HelloWorldClient</pre>
- <pre>Windows: java -cp ../../../../lib/tuscany-runtime-incubating-M1.jar;../../../../lib/celtix/tuscany-celtix-incubating-M1.jar;target/sample-helloworldjms-client-incubating-M1.jar helloworld.HelloWorldClient</pre>
-
- <h3>Results</h3>
- <p>
- The sample when run should simply display to the standard output:<br>
- <code>Hello World</code>
- </p>
- <h3>Code Overview</h3> The source files are physically organized as shown below:<br>
- <table style="text-align: left; width: 100%;" border="1" cellpadding="2" cellspacing="2">
- <tbody>
- <tr>
- <td>
- <pre>
- src
- +---main
- +---java
- &brvbar; +---helloworld
- &brvbar; HelloWorldClient.java
- &brvbar; HelloWorldService.java
- &brvbar;
- +---resources
- &brvbar; logging.properties
- &brvbar; sca.module
- &brvbar;
- +---wsdl
- helloworld.wsdl
- </pre>
- </td>
- </tr>
- </tbody>
- </table>
- <br>
- <br>
- <table style="text-align: left; width: 100%; height: 154px;" border="0" cellpadding="2" cellspacing="2">
- <tbody>
- <tr>
- <td style="vertical-align: top; height: 62px;">sca.module</td>
- <td style="height: 62px;">Defines the SCA module, externalService and component.
- Defines for the HelloWorldServiceComponent component and the Java class that
- implements the component For the externalService it defines WSDL for the service,
- the Java interface provided by the service. The&nbsp;the&nbsp;HelloWorldServiceComponent
- is via a referenced wired to the externalService</td>
- </tr>
- <tr>
- <td style="vertical-align: top;">HelloWorldClient.java</td>
- <td>Creates a Tuscany runtime and starts it. &nbsp;Obtains the module context
- which was defined by the sca.module file. From the module context locates the
- HelloWorldService entryPoint and then calls&nbsp; the getGreetings method to
- invoke the web service defined in the helloword.wsdl.</td>
- </tr>
- <tr>
- <td style="vertical-align: top; height: 26px;">HelloWorldService.java</td>
- <td style="height: 26px;">Defines the Java interface implemented by the
- component.</td>
- </tr>
- <tr>
- <td>helloworld.wsdl</td>
- <td>WSDL for the service. Not that the WSDL defines a XML binding using a JMS transport intead of the normal SOAP/HTTP</td>
- </tr>
- </tbody>
- </table>
- </body>
-</html>
diff --git a/tags/java-M1-20060518/java/samples/sca/helloworld-jms/client/src/main/java/helloworld/HelloWorldClient.java b/tags/java-M1-20060518/java/samples/sca/helloworld-jms/client/src/main/java/helloworld/HelloWorldClient.java
deleted file mode 100644
index be121bc63b..0000000000
--- a/tags/java-M1-20060518/java/samples/sca/helloworld-jms/client/src/main/java/helloworld/HelloWorldClient.java
+++ /dev/null
@@ -1,67 +0,0 @@
-/**
- *
- * Copyright 2005 The Apache Software Foundation or its licensors, as applicable.
- *
- * Licensed 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 helloworld;
-
-import java.util.logging.Level;
-import java.util.logging.LogManager;
-import java.util.Properties;
-
-import org.osoa.sca.CurrentModuleContext;
-import org.osoa.sca.ModuleContext;
-
-import org.apache.tuscany.core.client.TuscanyRuntime;
-import org.apache.tuscany.common.monitor.MonitorFactory;
-import org.apache.tuscany.common.monitor.impl.JavaLoggingMonitorFactory;
-
-/**
- * This client program shows how to create an SCA runtime, start it,
- * locate the HelloWorld service and invoke it.
- */
-public class HelloWorldClient {
-
- public static final void main(String[] args) throws Exception {
-
- // Setup Tuscany monitoring to use java.util.logging
- LogManager.getLogManager().readConfiguration(HelloWorldClient.class.getResourceAsStream("/logging.properties"));
- Properties levels = new Properties();
- MonitorFactory monitorFactory = new JavaLoggingMonitorFactory(levels, Level.FINEST, "MonitorMessages");
-
- // Create a Tuscany runtime for the sample module component
- TuscanyRuntime tuscany = new TuscanyRuntime("HelloWorldModuleComponent", "http://helloworld", monitorFactory);
-
- // Start the Tuscany runtime and associate it with this thread
- tuscany.start();
-
- // Get the SCA module context.
- ModuleContext moduleContext = CurrentModuleContext.getContext();
-
- // Locate the HelloWorld service
- HelloWorldService helloworldService = (HelloWorldService) moduleContext.locateService("HelloWorldService");
-
- // Invoke the HelloWorld service
- String value = helloworldService.getGreetings("World");
-
- System.out.println(value);
- System.out.flush();
-
- // Disassociate the runtime from this thread
- tuscany.stop();
-
- // Shut down the runtime
- tuscany.shutdown();
- }
-}
diff --git a/tags/java-M1-20060518/java/samples/sca/helloworld-jms/client/src/main/java/helloworld/HelloWorldService.java b/tags/java-M1-20060518/java/samples/sca/helloworld-jms/client/src/main/java/helloworld/HelloWorldService.java
deleted file mode 100644
index 1f87f17d74..0000000000
--- a/tags/java-M1-20060518/java/samples/sca/helloworld-jms/client/src/main/java/helloworld/HelloWorldService.java
+++ /dev/null
@@ -1,26 +0,0 @@
-/**
- *
- * Copyright 2005 The Apache Software Foundation or its licensors, as applicable.
- *
- * Licensed 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 helloworld;
-
-/**
- * This is the business interface of the HelloWorld greetings service.
- */
-public interface HelloWorldService {
-
- public String getGreetings(String name);
-
-}
diff --git a/tags/java-M1-20060518/java/samples/sca/helloworld-jms/client/src/main/resources/logging.properties b/tags/java-M1-20060518/java/samples/sca/helloworld-jms/client/src/main/resources/logging.properties
deleted file mode 100644
index 58407bd5a9..0000000000
--- a/tags/java-M1-20060518/java/samples/sca/helloworld-jms/client/src/main/resources/logging.properties
+++ /dev/null
@@ -1,27 +0,0 @@
-# Copyright (c) 2006 The Apache Software Foundation or its licensors, as applicable.
-#
-# Licensed 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.
-#
-# $Rev$ $Date$
-#
-
-# Custom logging configuration for Tuscany samples
-# By default, only INFO level logging is enabled and ALL messages get sent to the console
-# For more messages from the runtime, uncomment specific settings at the end of this file
-handlers = java.util.logging.ConsoleHandler
-java.util.logging.ConsoleHandler.level = ALL
-java.util.logging.ConsoleHandler.formatter = java.util.logging.SimpleFormatter
-.level=INFO
-
-# Uncomment the next setting to get all Tuscany messages (this will be a lot)
-#org.apache.tuscany.level=FINEST \ No newline at end of file
diff --git a/tags/java-M1-20060518/java/samples/sca/helloworld-jms/client/src/main/resources/sca.module b/tags/java-M1-20060518/java/samples/sca/helloworld-jms/client/src/main/resources/sca.module
deleted file mode 100644
index cf6a8f675c..0000000000
--- a/tags/java-M1-20060518/java/samples/sca/helloworld-jms/client/src/main/resources/sca.module
+++ /dev/null
@@ -1,28 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<!--
- Copyright (c) 2005 The Apache Software Foundation or its licensors, as applicable.
-
- Licensed 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.
- -->
-<module xmlns="http://www.osoa.org/xmlns/sca/0.9" xmlns:v="http://www.osoa.org/xmlns/sca/values/0.9"
- name="sampleHelloworld">
-
- <import.sdo wsdlLocation="wsdl/helloworld.wsdl"/>
- <import.wsdl wsdlLocation="wsdl/helloworld.wsdl"/>
-
- <externalService name="HelloWorldService">
- <interface.java interface="helloworld.HelloWorldService"/>
- <binding.ws port="http://helloworld#wsdl.endpoint(HelloWorldJMSService/HelloWorldPort)"/>
- </externalService>
-
-</module>
diff --git a/tags/java-M1-20060518/java/samples/sca/helloworld-jms/client/src/main/resources/wsdl/helloworld.wsdl b/tags/java-M1-20060518/java/samples/sca/helloworld-jms/client/src/main/resources/wsdl/helloworld.wsdl
deleted file mode 100644
index cc9fc6a529..0000000000
--- a/tags/java-M1-20060518/java/samples/sca/helloworld-jms/client/src/main/resources/wsdl/helloworld.wsdl
+++ /dev/null
@@ -1,83 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<!--
- Copyright (c) 2005 The Apache Software Foundation or its licensors, as applicable.
-
- Licensed 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.
- -->
-<wsdl:definitions targetNamespace="http://helloworld" xmlns:tns="http://helloworld" xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/" xmlns:wsdlsoap="http://schemas.xmlsoap.org/wsdl/soap/" xmlns:xsd="http://www.w3.org/2001/XMLSchema"
- name="helloworld">
-
- <wsdl:types>
- <schema elementFormDefault="qualified" targetNamespace="http://helloworld" xmlns="http://www.w3.org/2001/XMLSchema">
-
- <element name="getGreetings">
- <complexType>
- <sequence>
- <element name="name" type="xsd:string"/>
- </sequence>
- </complexType>
- </element>
-
- <element name="getGreetingsResponse">
- <complexType>
- <sequence>
- <element name="getGreetingsReturn" type="xsd:string"/>
- </sequence>
- </complexType>
- </element>
- </schema>
- </wsdl:types>
-
- <wsdl:message name="getGreetingsRequest">
- <wsdl:part element="tns:getGreetings" name="parameters"/>
- </wsdl:message>
-
- <wsdl:message name="getGreetingsResponse">
- <wsdl:part element="tns:getGreetingsResponse" name="parameters"/>
- </wsdl:message>
-
- <wsdl:portType name="HelloWorld">
- <wsdl:operation name="getGreetings">
- <wsdl:input message="tns:getGreetingsRequest" name="getGreetingsRequest"/>
- <wsdl:output message="tns:getGreetingsResponse" name="getGreetingsResponse"/>
- </wsdl:operation>
- </wsdl:portType>
-
- <wsdl:binding name="HelloWorldBinding" type="tns:HelloWorld">
- <xformat:binding xmlns:xformat="http://celtix.objectweb.org/bindings/xmlformat"/>
- <wsdl:operation name="getGreetings">
- <wsdlsoap:operation soapAction=""/>
- <wsdl:input name="getGreetingsRequest">
- <wsdlsoap:body use="literal"/>
- </wsdl:input>
- <wsdl:output name="getGreetingsResponse">
- <wsdlsoap:body use="literal"/>
- </wsdl:output>
- </wsdl:operation>
- </wsdl:binding>
-
-
- <wsdl:service name="HelloWorldJMSService">
- <wsdl:port binding="tns:HelloWorldBinding" name="HelloWorldPort">
- <jms:address xmlns:jms="http://celtix.objectweb.org/transports/jms"
- destinationStyle="queue"
- jndiConnectionFactoryName="ConnectionFactory"
- jndiDestinationName="dynamicQueues/test.celtix.jmstransport.queue">
-
- <jms:JMSNamingProperty name="java.naming.factory.initial" value="org.activemq.jndi.ActiveMQInitialContextFactory"/>
- <jms:JMSNamingProperty name="java.naming.provider.url" value="tcp://localhost:61616"/>
- </jms:address>
- </wsdl:port>
- </wsdl:service>
-
-</wsdl:definitions>
diff --git a/tags/java-M1-20060518/java/samples/sca/helloworld-jms/pom.xml b/tags/java-M1-20060518/java/samples/sca/helloworld-jms/pom.xml
deleted file mode 100644
index 8d34ad5696..0000000000
--- a/tags/java-M1-20060518/java/samples/sca/helloworld-jms/pom.xml
+++ /dev/null
@@ -1,35 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<!--
- * Copyright (c) 2005-2006 The Apache Software Foundation or its licensors, as applicable.
- *
- * Licensed 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>
- <parent>
- <groupId>org.apache.tuscany.samples.sca</groupId>
- <artifactId>tuscany-samples-sca</artifactId>
- <version>incubating-M1</version>
- </parent>
-
- <modelVersion>4.0.0</modelVersion>
- <groupId>org.apache.tuscany.samples.sca.jms</groupId>
- <artifactId>samples-helloworldjms</artifactId>
- <packaging>pom</packaging>
- <name>Tuscany SCA JMS Samples</name>
- <version>incubating-M1</version>
-
- <modules>
- <module>client</module>
- <module>server</module>
- </modules>
-</project>
diff --git a/tags/java-M1-20060518/java/samples/sca/helloworld-jms/server/LICENSE.txt b/tags/java-M1-20060518/java/samples/sca/helloworld-jms/server/LICENSE.txt
deleted file mode 100644
index d645695673..0000000000
--- a/tags/java-M1-20060518/java/samples/sca/helloworld-jms/server/LICENSE.txt
+++ /dev/null
@@ -1,202 +0,0 @@
-
- Apache License
- Version 2.0, January 2004
- http://www.apache.org/licenses/
-
- TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
-
- 1. Definitions.
-
- "License" shall mean the terms and conditions for use, reproduction,
- and distribution as defined by Sections 1 through 9 of this document.
-
- "Licensor" shall mean the copyright owner or entity authorized by
- the copyright owner that is granting the License.
-
- "Legal Entity" shall mean the union of the acting entity and all
- other entities that control, are controlled by, or are under common
- control with that entity. For the purposes of this definition,
- "control" means (i) the power, direct or indirect, to cause the
- direction or management of such entity, whether by contract or
- otherwise, or (ii) ownership of fifty percent (50%) or more of the
- outstanding shares, or (iii) beneficial ownership of such entity.
-
- "You" (or "Your") shall mean an individual or Legal Entity
- exercising permissions granted by this License.
-
- "Source" form shall mean the preferred form for making modifications,
- including but not limited to software source code, documentation
- source, and configuration files.
-
- "Object" form shall mean any form resulting from mechanical
- transformation or translation of a Source form, including but
- not limited to compiled object code, generated documentation,
- and conversions to other media types.
-
- "Work" shall mean the work of authorship, whether in Source or
- Object form, made available under the License, as indicated by a
- copyright notice that is included in or attached to the work
- (an example is provided in the Appendix below).
-
- "Derivative Works" shall mean any work, whether in Source or Object
- form, that is based on (or derived from) the Work and for which the
- editorial revisions, annotations, elaborations, or other modifications
- represent, as a whole, an original work of authorship. For the purposes
- of this License, Derivative Works shall not include works that remain
- separable from, or merely link (or bind by name) to the interfaces of,
- the Work and Derivative Works thereof.
-
- "Contribution" shall mean any work of authorship, including
- the original version of the Work and any modifications or additions
- to that Work or Derivative Works thereof, that is intentionally
- submitted to Licensor for inclusion in the Work by the copyright owner
- or by an individual or Legal Entity authorized to submit on behalf of
- the copyright owner. For the purposes of this definition, "submitted"
- means any form of electronic, verbal, or written communication sent
- to the Licensor or its representatives, including but not limited to
- communication on electronic mailing lists, source code control systems,
- and issue tracking systems that are managed by, or on behalf of, the
- Licensor for the purpose of discussing and improving the Work, but
- excluding communication that is conspicuously marked or otherwise
- designated in writing by the copyright owner as "Not a Contribution."
-
- "Contributor" shall mean Licensor and any individual or Legal Entity
- on behalf of whom a Contribution has been received by Licensor and
- subsequently incorporated within the Work.
-
- 2. Grant of Copyright License. Subject to the terms and conditions of
- this License, each Contributor hereby grants to You a perpetual,
- worldwide, non-exclusive, no-charge, royalty-free, irrevocable
- copyright license to reproduce, prepare Derivative Works of,
- publicly display, publicly perform, sublicense, and distribute the
- Work and such Derivative Works in Source or Object form.
-
- 3. Grant of Patent License. Subject to the terms and conditions of
- this License, each Contributor hereby grants to You a perpetual,
- worldwide, non-exclusive, no-charge, royalty-free, irrevocable
- (except as stated in this section) patent license to make, have made,
- use, offer to sell, sell, import, and otherwise transfer the Work,
- where such license applies only to those patent claims licensable
- by such Contributor that are necessarily infringed by their
- Contribution(s) alone or by combination of their Contribution(s)
- with the Work to which such Contribution(s) was submitted. If You
- institute patent litigation against any entity (including a
- cross-claim or counterclaim in a lawsuit) alleging that the Work
- or a Contribution incorporated within the Work constitutes direct
- or contributory patent infringement, then any patent licenses
- granted to You under this License for that Work shall terminate
- as of the date such litigation is filed.
-
- 4. Redistribution. You may reproduce and distribute copies of the
- Work or Derivative Works thereof in any medium, with or without
- modifications, and in Source or Object form, provided that You
- meet the following conditions:
-
- (a) You must give any other recipients of the Work or
- Derivative Works a copy of this License; and
-
- (b) You must cause any modified files to carry prominent notices
- stating that You changed the files; and
-
- (c) You must retain, in the Source form of any Derivative Works
- that You distribute, all copyright, patent, trademark, and
- attribution notices from the Source form of the Work,
- excluding those notices that do not pertain to any part of
- the Derivative Works; and
-
- (d) If the Work includes a "NOTICE" text file as part of its
- distribution, then any Derivative Works that You distribute must
- include a readable copy of the attribution notices contained
- within such NOTICE file, excluding those notices that do not
- pertain to any part of the Derivative Works, in at least one
- of the following places: within a NOTICE text file distributed
- as part of the Derivative Works; within the Source form or
- documentation, if provided along with the Derivative Works; or,
- within a display generated by the Derivative Works, if and
- wherever such third-party notices normally appear. The contents
- of the NOTICE file are for informational purposes only and
- do not modify the License. You may add Your own attribution
- notices within Derivative Works that You distribute, alongside
- or as an addendum to the NOTICE text from the Work, provided
- that such additional attribution notices cannot be construed
- as modifying the License.
-
- You may add Your own copyright statement to Your modifications and
- may provide additional or different license terms and conditions
- for use, reproduction, or distribution of Your modifications, or
- for any such Derivative Works as a whole, provided Your use,
- reproduction, and distribution of the Work otherwise complies with
- the conditions stated in this License.
-
- 5. Submission of Contributions. Unless You explicitly state otherwise,
- any Contribution intentionally submitted for inclusion in the Work
- by You to the Licensor shall be under the terms and conditions of
- this License, without any additional terms or conditions.
- Notwithstanding the above, nothing herein shall supersede or modify
- the terms of any separate license agreement you may have executed
- with Licensor regarding such Contributions.
-
- 6. Trademarks. This License does not grant permission to use the trade
- names, trademarks, service marks, or product names of the Licensor,
- except as required for reasonable and customary use in describing the
- origin of the Work and reproducing the content of the NOTICE file.
-
- 7. Disclaimer of Warranty. Unless required by applicable law or
- agreed to in writing, Licensor provides the Work (and each
- Contributor provides its Contributions) on an "AS IS" BASIS,
- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
- implied, including, without limitation, any warranties or conditions
- of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
- PARTICULAR PURPOSE. You are solely responsible for determining the
- appropriateness of using or redistributing the Work and assume any
- risks associated with Your exercise of permissions under this License.
-
- 8. Limitation of Liability. In no event and under no legal theory,
- whether in tort (including negligence), contract, or otherwise,
- unless required by applicable law (such as deliberate and grossly
- negligent acts) or agreed to in writing, shall any Contributor be
- liable to You for damages, including any direct, indirect, special,
- incidental, or consequential damages of any character arising as a
- result of this License or out of the use or inability to use the
- Work (including but not limited to damages for loss of goodwill,
- work stoppage, computer failure or malfunction, or any and all
- other commercial damages or losses), even if such Contributor
- has been advised of the possibility of such damages.
-
- 9. Accepting Warranty or Additional Liability. While redistributing
- the Work or Derivative Works thereof, You may choose to offer,
- and charge a fee for, acceptance of support, warranty, indemnity,
- or other liability obligations and/or rights consistent with this
- License. However, in accepting such obligations, You may act only
- on Your own behalf and on Your sole responsibility, not on behalf
- of any other Contributor, and only if You agree to indemnify,
- defend, and hold each Contributor harmless for any liability
- incurred by, or claims asserted against, such Contributor by reason
- of your accepting any such warranty or additional liability.
-
- END OF TERMS AND CONDITIONS
-
- APPENDIX: How to apply the Apache License to your work.
-
- To apply the Apache License to your work, attach the following
- boilerplate notice, with the fields enclosed by brackets "[]"
- replaced with your own identifying information. (Don't include
- the brackets!) The text should be enclosed in the appropriate
- comment syntax for the file format. We also recommend that a
- file or class name and description of purpose be included on the
- same "printed page" as the copyright notice for easier
- identification within third-party archives.
-
- Copyright [yyyy] [name of copyright owner]
-
- Licensed 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.
diff --git a/tags/java-M1-20060518/java/samples/sca/helloworld-jms/server/README.txt b/tags/java-M1-20060518/java/samples/sca/helloworld-jms/server/README.txt
deleted file mode 100644
index 9b26d1690a..0000000000
--- a/tags/java-M1-20060518/java/samples/sca/helloworld-jms/server/README.txt
+++ /dev/null
@@ -1,35 +0,0 @@
-Apache Tuscany M1 build (May, 2006)
-===================================
-
-http://incubator.apache.org/tuscany/
-
-Tuscany is an effort undergoing incubation at the Apache Software Foundation
-(ASF), sponsored by the Web Services PMC.
-
-Incubation is required of all newly accepted projects until a further review
-indicates that the infrastructure, communications, and decision making process
-have stabilized in a manner consistent with other successful ASF projects.
-
-While incubation status is not necessarily a reflection of the completeness or
-stability of the code, it does indicate that the project has yet to be fully
-endorsed by the ASF.
-
-
-Support
--------
-
-Any problem with this release can be reported to the Tuscany mailing list
-or in the JIRA issue tracker.
-
-Mailing list subscription:
- tuscany-dev-subscribe@ws.apache.org
-
-Jira:
- http://issues.apache.org/jira/browse/Tuscany
-
-
-Thank you for using Tuscany!
-
-
-The Tuscany Team.
-
diff --git a/tags/java-M1-20060518/java/samples/sca/helloworld-jms/server/activemq.xml b/tags/java-M1-20060518/java/samples/sca/helloworld-jms/server/activemq.xml
deleted file mode 100644
index 7ba4e94a60..0000000000
--- a/tags/java-M1-20060518/java/samples/sca/helloworld-jms/server/activemq.xml
+++ /dev/null
@@ -1,100 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<!DOCTYPE beans PUBLIC "-//ACTIVEMQ//DTD//EN" "http://activemq.org/dtd/activemq.dtd">
-<!--
- * Copyright (c) 2005-2006 The Apache Software Foundation or its licensors, as applicable.
- *
- * Licensed 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>
-
- <!-- ==================================================================== -->
- <!-- ActiveMQ Broker Configuration -->
- <!-- ==================================================================== -->
- <broker>
- <connector>
- <tcpServerTransport uri="tcp://localhost:61616" backlog="1000" useAsyncSend="true" maxOutstandingMessages="50"/>
- </connector>
-
- <!-- to enable Stomp support uncomment this
- <connector>
- <serverTransport uri="stomp://localhost:61626"/>
- </connector>
- -->
-
- <persistence>
- <cachePersistence>
- <journalPersistence directory="../var/journal">
- <jdbcPersistence dataSourceRef="derby-ds"/>
-
- <!-- Choose one of the following three configurationss to work with mysql-ds-->
- <!--
- <jdbcPersistence dataSourceRef="mysql-ds"
- adapterClass="org.activemq.store.jdbc.adapter.BytesJDBCAdaptor"/>
- <jdbcPersistence dataSourceRef="mysql-ds"
- adapterClass="org.activemq.store.jdbc.adapter.BlobJDBCAdaptor"/>
- <jdbcPersistence dataSourceRef="mysql-ds"
- adapterClass="org.activemq.store.jdbc.adapter.StreamJDBCAdaptor"/>
- -->
- </journalPersistence>
- </cachePersistence>
- </persistence>
- </broker>
-
- <!-- ==================================================================== -->
- <!-- JDBC DataSource Configurations -->
- <!-- ==================================================================== -->
-
- <!-- The Derby Datasource that will be used by the Broker -->
- <bean id="derby-ds" class="org.apache.commons.dbcp.BasicDataSource" destroy-method="close">
- <property name="driverClassName">
- <value>org.apache.derby.jdbc.EmbeddedDriver</value>
- </property>
- <property name="url">
- <!-- Use a URL like 'jdbc:hsqldb:hsql://localhost:9001' if you want to connect to a remote hsqldb -->
- <value>jdbc:derby:derbydb;create=true</value>
- </property>
- <property name="username">
- <value></value>
- </property>
- <property name="password">
- <value></value>
- </property>
- <property name="poolPreparedStatements">
- <value>true</value>
- </property>
- </bean>
-
- <!-- The MYSQL Datasource that will be used by the Broker -->
- <bean id="mysql-ds"
- class="org.apache.commons.dbcp.BasicDataSource"
- destroy-method="close">
- <property name="driverClassName">
- <value>com.mysql.jdbc.Driver</value>
- </property>
- <property name="url">
- <value>jdbc:mysql://localhost/activemq</value>
- </property>
- <property name="username">
- <value>myname</value>
- </property>
- <property name="password">
- <value>mypassword</value>
- </property>
- <property name="poolPreparedStatements">
- <value>true</value>
- </property>
- </bean>
-
-
-</beans>
-
diff --git a/tags/java-M1-20060518/java/samples/sca/helloworld-jms/server/build.xml b/tags/java-M1-20060518/java/samples/sca/helloworld-jms/server/build.xml
deleted file mode 100644
index 058d1f3909..0000000000
--- a/tags/java-M1-20060518/java/samples/sca/helloworld-jms/server/build.xml
+++ /dev/null
@@ -1,58 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<!--
- * Copyright (c) 2005-2006 The Apache Software Foundation or its licensors, as applicable.
- *
- * Licensed 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 name="samples" default="compile">
- <property name="mainDir" value="../../../.."/>
- <path id="javac.classpath">
- <fileset dir="${mainDir}/lib">
- <include name="tuscany-runtime-incubating-M1.jar"/>
- </fileset>
- <fileset dir="${mainDir}/lib/celtix">
- <include name="tuscany-celtix-incubating-M1.jar"/>
- </fileset>
- </path>
- <path id="java.classpath">
- <fileset dir="${mainDir}/lib">
- <include name="tuscany-runtime-incubating-M1.jar"/>
- </fileset>
- <fileset dir="${mainDir}/lib/celtix">
- <include name="tuscany-celtix-incubating-M1.jar"/>
- </fileset>
- <pathelement path="target/sample-helloworldjms-service.jar"/>
- </path>
-
- <target name="init">
- <mkdir dir="target/classes"/>
- </target>
-
- <target name="compile" depends="init">
- <javac srcdir="src/main/java" destdir="target/classes" debug="on" source="1.5" target="1.5">
- <classpath refid="javac.classpath"/>
- </javac>
- <copy todir="target/classes">
- <fileset dir="src/main/resources"/>
- </copy>
- <jar destfile="target/sample-helloworldjms-service.jar">
- <fileset dir="target/classes"/>
- </jar>
- </target>
-
- <target name="clean">
- <delete quiet="true" includeemptydirs="true">
- <fileset dir="target" excludes="sample-helloworldjms-service-incubating-M1.jar"/>
- </delete>
- </target>
-</project>
diff --git a/tags/java-M1-20060518/java/samples/sca/helloworld-jms/server/pom.xml b/tags/java-M1-20060518/java/samples/sca/helloworld-jms/server/pom.xml
deleted file mode 100644
index 042189b5ec..0000000000
--- a/tags/java-M1-20060518/java/samples/sca/helloworld-jms/server/pom.xml
+++ /dev/null
@@ -1,52 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<!--
- * Copyright (c) 2005-2006 The Apache Software Foundation or its licensors, as applicable.
- *
- * Licensed 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>
- <parent>
- <groupId>org.apache.tuscany.samples.sca.jms</groupId>
- <artifactId>samples-helloworldjms</artifactId>
- <version>incubating-M1</version>
- </parent>
- <modelVersion>4.0.0</modelVersion>
- <artifactId>sample-helloworldjms-service</artifactId>
- <packaging>jar</packaging>
- <name>Tuscany HelloWorld Celtix JMS Service Sample</name>
- <description>A sample HelloWorld JMS Service.</description>
- <version>incubating-M1</version>
-
- <dependencies>
- <dependency>
- <groupId>org.apache.tuscany</groupId>
- <artifactId>tuscany-core</artifactId>
- <version>${pom.version}</version>
- <scope>provided</scope>
- </dependency>
- <dependency>
- <groupId>org.apache.tuscany.sca.containers</groupId>
- <artifactId>tuscany-container-java</artifactId>
- <version>${pom.version}</version>
- <scope>provided</scope>
- </dependency>
- <dependency>
- <groupId>org.apache.tuscany.sca.bindings</groupId>
- <artifactId>tuscany-binding-celtix</artifactId>
- <version>${pom.version}</version>
- <scope>provided</scope>
- </dependency>
-
-
- </dependencies>
-</project>
diff --git a/tags/java-M1-20060518/java/samples/sca/helloworld-jms/server/readme.htm b/tags/java-M1-20060518/java/samples/sca/helloworld-jms/server/readme.htm
deleted file mode 100644
index a069618b38..0000000000
--- a/tags/java-M1-20060518/java/samples/sca/helloworld-jms/server/readme.htm
+++ /dev/null
@@ -1,108 +0,0 @@
-<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
-<html>
-<head>
- <!-- Copyright (c) 2005 The Apache Software Foundation or its licensors, as applicable. Licensed 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. -->
- <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
- <meta http-equiv="Content-Style-Type" content="text/css">
- <title>Tuscany Hello World JMS Service Sample</title><!-- LINK rel="stylesheet" href="ait.css" type="text/css" --><!-- maven -->
- <style type="text/css" media="all">
- @import url("../../../../css/maven-base.css");
- @import url("../../../../css/maven-theme.css");
- @import url("../../../../css/site.css");
- </style>
- <link rel="stylesheet" href="./css/print.css" type="text/css" media="print">
- <!-- end maven -->
-</head>
- <body>
- <h2>Tuscany Hello World JMS Service Sample</h2>
- <h3>Overview</h3>
- <p>
- The Tuscany hello world jms sample shows using the Tuscany SCA runtime using the Celtix/J2SE environment to &nbsp;provide&nbsp;a web service using
- XML over JMS as well as SOAP over HTTP.
- </p>
- <h3>Location</h3> This sample is located &nbsp;in the samples\sca\helloworld-jms\server
- directory.<br>
-
- <h3>Setup</h3>This sample depends on the Tuscany runtime, Celtix, and the sample jar,
-
- <span style="font-weight: bold;">
- sample-helloworldjms-service-incubating-M1.jar
- </span>
-
-, all of these must be available on the classpath to run the sample.
-
-<h3>Running</h3>
-
- In the directory samples/sca/helloworld-jms/server use the JDK 1.5 java command to start the JMS broker and then run the class&nbsp;helloworld.HelloWorldServer.
-
- <pre>Linux:<br>
-
- java -cp ../../../../lib/tuscany-runtime-incubating-M1.jar:../../../../lib/celtix/tuscany-celtix-incubating-M1.jar org.activemq.spring.Main activemq.xml
- java -cp ../../../../lib/tuscany-runtime-incubating-M1.jar:../../../../lib/celtix/tuscany-celtix-incubating-M1.jar:target/sample-helloworldjms-service-incubating-M1.jar helloworld.HelloWorldServer
- </pre>
-
- <pre>Windows:<br>
- java -cp ../../../../lib/tuscany-runtime-incubating-M1.jar;../../../../lib/celtix/tuscany-celtix-incubating-M1.jar org.activemq.spring.Main activemq.xml
- java -cp ../../../../lib/tuscany-runtime-incubating-M1.jar;../../../../lib/celtix/tuscany-celtix-incubating-M1.jar;target/sample-helloworldjms-service-incubating-M1.jar helloworld.HelloWorldServer
- </pre>
-
-
-
- <h3>Code Overview</h3> The source files are physically organized as shown below:<br>
- <table style="text-align: left; width: 100%;" border="1" cellpadding="2" cellspacing="2">
- <tbody>
- <tr>
- <td>
- <pre>
- +---main
- +---java
- &brvbar; +---helloworld
- &brvbar; HelloWorldServer.java
- &brvbar; HelloWorldImpl.java
- &brvbar; HelloWorldService.java
- +---resources
- &brvbar; sca.module
- +---wsdl
- helloworld.wsdl
- activemq.xml
- </pre>
- </td>
- </tr>
- </tbody>
- </table>
- <br>
- <br>
- <table style="text-align: left; width: 100%; height: 154px;" border="0" cellpadding="2" cellspacing="2">
- <tbody>
- <tr>
- <td>HelloWorldServer.java</td>
- <td>Main method to startup the Tuscany runtime which will startup the services defined in sca.module</td>
- </tr>
- <tr>
- <td style="vertical-align: top;">HelloWorldService.java</td>
- <td>Defines the Java interface implemented by the component.</td>
- </tr>
- <tr>
- <td style="vertical-align: top;">HelloWorldImpl.java</td>
- <td>Implements the SCA component. Uses the SCA service annotation
- tag on the class to show what SCA interface is being implemented.</td>
- </tr>
- <tr>
- <td style="vertical-align: top; height: 62px;">sca.module</td>
- <td style="height: 62px;">Defines the SCA module, entryPoint and component.
- Defines for the HelloWorldServiceComponent component and the Java class that
- implements the component For the entryPoint it defines WSDL for the service, the
- Java interface provided by the service, and wires the service to the&nbsp;HelloWorldServiceComponent</td>
- </tr>
- <tr>
- <td>helloworld.wsdl</td>
- <td>WSDL for the service.</td>
- </tr>
- <tr>
- <td>activemq.xml</td>
- <td>Configuration file for ActiveMQ to setup the broker</td>
- </tr>
- </tbody>
- </table>
- </body>
-</html> \ No newline at end of file
diff --git a/tags/java-M1-20060518/java/samples/sca/helloworld-jms/server/src/main/java/helloworld/HelloWorldImpl.java b/tags/java-M1-20060518/java/samples/sca/helloworld-jms/server/src/main/java/helloworld/HelloWorldImpl.java
deleted file mode 100644
index bf7209e7a8..0000000000
--- a/tags/java-M1-20060518/java/samples/sca/helloworld-jms/server/src/main/java/helloworld/HelloWorldImpl.java
+++ /dev/null
@@ -1,31 +0,0 @@
-/**
- *
- * Copyright 2005 The Apache Software Foundation or its licensors, as applicable.
- *
- * Licensed 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 helloworld;
-
-import org.osoa.sca.annotations.Service;
-
-/**
- * This class implements the HelloWorld service.
- */
-@Service(HelloWorldService.class)
-public class HelloWorldImpl implements HelloWorldService {
-
- public String getGreetings(String name) {
- return "Hello " + name;
- }
-
-}
diff --git a/tags/java-M1-20060518/java/samples/sca/helloworld-jms/server/src/main/java/helloworld/HelloWorldServer.java b/tags/java-M1-20060518/java/samples/sca/helloworld-jms/server/src/main/java/helloworld/HelloWorldServer.java
deleted file mode 100644
index e6290b3f37..0000000000
--- a/tags/java-M1-20060518/java/samples/sca/helloworld-jms/server/src/main/java/helloworld/HelloWorldServer.java
+++ /dev/null
@@ -1,49 +0,0 @@
-/**
- * Copyright 2005 The Apache Software Foundation or its licensors, as applicable.
- *
- * Licensed 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 helloworld;
-
-import org.apache.tuscany.core.client.TuscanyRuntime;
-import org.osoa.sca.CurrentModuleContext;
-import org.osoa.sca.ModuleContext;
-
-/**
- * This client program shows how to create an SCA runtime, start it,
- * locate the HelloWorld service and invoke it.
- */
-public class HelloWorldServer {
-
- public static final void main(String[] args) throws Exception {
-
- // Create a Tuscany runtime for the sample module component
- TuscanyRuntime tuscany = new TuscanyRuntime("HelloWorldModuleComponent", "http://helloworld");
-
- // Start the Tuscany runtime and associate it with this thread
- tuscany.start();
-
-
- System.out.println("Hit ENTER to exit");
- System.in.read();
-
- // Disassociate the runtime from this thread
- tuscany.stop();
-
- // Shut down the runtime
- tuscany.shutdown();
-
- System.exit(0);
- }
-}
-
diff --git a/tags/java-M1-20060518/java/samples/sca/helloworld-jms/server/src/main/java/helloworld/HelloWorldService.java b/tags/java-M1-20060518/java/samples/sca/helloworld-jms/server/src/main/java/helloworld/HelloWorldService.java
deleted file mode 100644
index 1f87f17d74..0000000000
--- a/tags/java-M1-20060518/java/samples/sca/helloworld-jms/server/src/main/java/helloworld/HelloWorldService.java
+++ /dev/null
@@ -1,26 +0,0 @@
-/**
- *
- * Copyright 2005 The Apache Software Foundation or its licensors, as applicable.
- *
- * Licensed 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 helloworld;
-
-/**
- * This is the business interface of the HelloWorld greetings service.
- */
-public interface HelloWorldService {
-
- public String getGreetings(String name);
-
-}
diff --git a/tags/java-M1-20060518/java/samples/sca/helloworld-jms/server/src/main/resources/sca.module b/tags/java-M1-20060518/java/samples/sca/helloworld-jms/server/src/main/resources/sca.module
deleted file mode 100644
index 460faf4ef0..0000000000
--- a/tags/java-M1-20060518/java/samples/sca/helloworld-jms/server/src/main/resources/sca.module
+++ /dev/null
@@ -1,38 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<!--
- Copyright (c) 2005 The Apache Software Foundation or its licensors, as applicable.
-
- Licensed 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.
- -->
-<module xmlns="http://www.osoa.org/xmlns/sca/0.9" xmlns:v="http://www.osoa.org/xmlns/sca/values/0.9"
- name="helloworldJMSServer">
-
- <import.sdo wsdlLocation="wsdl/helloworld.wsdl"/>
- <import.wsdl location="wsdl/helloworld.wsdl" namespace="http://helloworld"/>
-
- <entryPoint name="HelloWorldServiceJMS">
- <interface.wsdl interface="http://helloworld#wsdl.interface(HelloWorld)"/>
- <binding.ws port="http://helloworld#wsdl.endpoint(HelloWorldJMSService/HelloWorldPort)"/>
- <reference>HelloWorldServiceComponent/HelloWorldService</reference>
- </entryPoint>
- <entryPoint name="HelloWorldService">
- <interface.wsdl interface="http://helloworld#wsdl.interface(HelloWorld)"/>
- <binding.ws port="http://helloworld#wsdl.endpoint(HelloWorldService/HelloWorldSoapPort)"/>
- <reference>HelloWorldServiceComponent/HelloWorldService</reference>
- </entryPoint>
-
- <component name="HelloWorldServiceComponent">
- <implementation.java class="helloworld.HelloWorldImpl"/>
- </component>
-
-</module>
diff --git a/tags/java-M1-20060518/java/samples/sca/helloworld-jms/server/src/main/resources/wsdl/helloworld.wsdl b/tags/java-M1-20060518/java/samples/sca/helloworld-jms/server/src/main/resources/wsdl/helloworld.wsdl
deleted file mode 100644
index 09459bb209..0000000000
--- a/tags/java-M1-20060518/java/samples/sca/helloworld-jms/server/src/main/resources/wsdl/helloworld.wsdl
+++ /dev/null
@@ -1,99 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<!--
- Copyright (c) 2005 The Apache Software Foundation or its licensors, as applicable.
-
- Licensed 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.
- -->
-<wsdl:definitions targetNamespace="http://helloworld" xmlns:tns="http://helloworld" xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/" xmlns:wsdlsoap="http://schemas.xmlsoap.org/wsdl/soap/" xmlns:xsd="http://www.w3.org/2001/XMLSchema"
- name="helloworld">
-
- <wsdl:types>
- <schema elementFormDefault="qualified" targetNamespace="http://helloworld" xmlns="http://www.w3.org/2001/XMLSchema">
-
- <element name="getGreetings">
- <complexType>
- <sequence>
- <element name="name" type="xsd:string"/>
- </sequence>
- </complexType>
- </element>
-
- <element name="getGreetingsResponse">
- <complexType>
- <sequence>
- <element name="getGreetingsReturn" type="xsd:string"/>
- </sequence>
- </complexType>
- </element>
- </schema>
- </wsdl:types>
-
- <wsdl:message name="getGreetingsRequest">
- <wsdl:part element="tns:getGreetings" name="parameters"/>
- </wsdl:message>
-
- <wsdl:message name="getGreetingsResponse">
- <wsdl:part element="tns:getGreetingsResponse" name="parameters"/>
- </wsdl:message>
-
- <wsdl:portType name="HelloWorld">
- <wsdl:operation name="getGreetings">
- <wsdl:input message="tns:getGreetingsRequest" name="getGreetingsRequest"/>
- <wsdl:output message="tns:getGreetingsResponse" name="getGreetingsResponse"/>
- </wsdl:operation>
- </wsdl:portType>
-
- <wsdl:binding name="HelloWorldBinding" type="tns:HelloWorld">
- <xformat:binding xmlns:xformat="http://celtix.objectweb.org/bindings/xmlformat"/>
- <wsdl:operation name="getGreetings">
- <wsdlsoap:operation soapAction=""/>
- <wsdl:input name="getGreetingsRequest">
- <wsdlsoap:body use="literal"/>
- </wsdl:input>
- <wsdl:output name="getGreetingsResponse">
- <wsdlsoap:body use="literal"/>
- </wsdl:output>
- </wsdl:operation>
- </wsdl:binding>
- <wsdl:binding name="HelloWorldSoapBinding" type="tns:HelloWorld">
- <wsdlsoap:binding style="document" transport="http://schemas.xmlsoap.org/soap/http"/>
- <wsdl:operation name="getGreetings">
- <wsdlsoap:operation soapAction=""/>
- <wsdl:input name="getGreetingsRequest">
- <wsdlsoap:body use="literal"/>
- </wsdl:input>
- <wsdl:output name="getGreetingsResponse">
- <wsdlsoap:body use="literal"/>
- </wsdl:output>
- </wsdl:operation>
- </wsdl:binding>
-
- <wsdl:service name="HelloWorldJMSService">
- <wsdl:port binding="tns:HelloWorldBinding" name="HelloWorldPort">
- <jms:address xmlns:jms="http://celtix.objectweb.org/transports/jms"
- destinationStyle="queue"
- jndiConnectionFactoryName="ConnectionFactory"
- jndiDestinationName="dynamicQueues/test.celtix.jmstransport.queue">
-
- <jms:JMSNamingProperty name="java.naming.factory.initial" value="org.activemq.jndi.ActiveMQInitialContextFactory"/>
- <jms:JMSNamingProperty name="java.naming.provider.url" value="tcp://localhost:61616"/>
- </jms:address>
- </wsdl:port>
- </wsdl:service>
- <wsdl:service name="HelloWorldService">
- <wsdl:port binding="tns:HelloWorldSoapBinding" name="HelloWorldSoapPort">
- <wsdlsoap:address location="http://localhost:8080/sample-helloworldws/services/HelloWorldWebService"/>
- </wsdl:port>
- </wsdl:service>
-
-</wsdl:definitions>
diff --git a/tags/java-M1-20060518/java/samples/sca/helloworld/LICENSE.txt b/tags/java-M1-20060518/java/samples/sca/helloworld/LICENSE.txt
deleted file mode 100644
index d645695673..0000000000
--- a/tags/java-M1-20060518/java/samples/sca/helloworld/LICENSE.txt
+++ /dev/null
@@ -1,202 +0,0 @@
-
- Apache License
- Version 2.0, January 2004
- http://www.apache.org/licenses/
-
- TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
-
- 1. Definitions.
-
- "License" shall mean the terms and conditions for use, reproduction,
- and distribution as defined by Sections 1 through 9 of this document.
-
- "Licensor" shall mean the copyright owner or entity authorized by
- the copyright owner that is granting the License.
-
- "Legal Entity" shall mean the union of the acting entity and all
- other entities that control, are controlled by, or are under common
- control with that entity. For the purposes of this definition,
- "control" means (i) the power, direct or indirect, to cause the
- direction or management of such entity, whether by contract or
- otherwise, or (ii) ownership of fifty percent (50%) or more of the
- outstanding shares, or (iii) beneficial ownership of such entity.
-
- "You" (or "Your") shall mean an individual or Legal Entity
- exercising permissions granted by this License.
-
- "Source" form shall mean the preferred form for making modifications,
- including but not limited to software source code, documentation
- source, and configuration files.
-
- "Object" form shall mean any form resulting from mechanical
- transformation or translation of a Source form, including but
- not limited to compiled object code, generated documentation,
- and conversions to other media types.
-
- "Work" shall mean the work of authorship, whether in Source or
- Object form, made available under the License, as indicated by a
- copyright notice that is included in or attached to the work
- (an example is provided in the Appendix below).
-
- "Derivative Works" shall mean any work, whether in Source or Object
- form, that is based on (or derived from) the Work and for which the
- editorial revisions, annotations, elaborations, or other modifications
- represent, as a whole, an original work of authorship. For the purposes
- of this License, Derivative Works shall not include works that remain
- separable from, or merely link (or bind by name) to the interfaces of,
- the Work and Derivative Works thereof.
-
- "Contribution" shall mean any work of authorship, including
- the original version of the Work and any modifications or additions
- to that Work or Derivative Works thereof, that is intentionally
- submitted to Licensor for inclusion in the Work by the copyright owner
- or by an individual or Legal Entity authorized to submit on behalf of
- the copyright owner. For the purposes of this definition, "submitted"
- means any form of electronic, verbal, or written communication sent
- to the Licensor or its representatives, including but not limited to
- communication on electronic mailing lists, source code control systems,
- and issue tracking systems that are managed by, or on behalf of, the
- Licensor for the purpose of discussing and improving the Work, but
- excluding communication that is conspicuously marked or otherwise
- designated in writing by the copyright owner as "Not a Contribution."
-
- "Contributor" shall mean Licensor and any individual or Legal Entity
- on behalf of whom a Contribution has been received by Licensor and
- subsequently incorporated within the Work.
-
- 2. Grant of Copyright License. Subject to the terms and conditions of
- this License, each Contributor hereby grants to You a perpetual,
- worldwide, non-exclusive, no-charge, royalty-free, irrevocable
- copyright license to reproduce, prepare Derivative Works of,
- publicly display, publicly perform, sublicense, and distribute the
- Work and such Derivative Works in Source or Object form.
-
- 3. Grant of Patent License. Subject to the terms and conditions of
- this License, each Contributor hereby grants to You a perpetual,
- worldwide, non-exclusive, no-charge, royalty-free, irrevocable
- (except as stated in this section) patent license to make, have made,
- use, offer to sell, sell, import, and otherwise transfer the Work,
- where such license applies only to those patent claims licensable
- by such Contributor that are necessarily infringed by their
- Contribution(s) alone or by combination of their Contribution(s)
- with the Work to which such Contribution(s) was submitted. If You
- institute patent litigation against any entity (including a
- cross-claim or counterclaim in a lawsuit) alleging that the Work
- or a Contribution incorporated within the Work constitutes direct
- or contributory patent infringement, then any patent licenses
- granted to You under this License for that Work shall terminate
- as of the date such litigation is filed.
-
- 4. Redistribution. You may reproduce and distribute copies of the
- Work or Derivative Works thereof in any medium, with or without
- modifications, and in Source or Object form, provided that You
- meet the following conditions:
-
- (a) You must give any other recipients of the Work or
- Derivative Works a copy of this License; and
-
- (b) You must cause any modified files to carry prominent notices
- stating that You changed the files; and
-
- (c) You must retain, in the Source form of any Derivative Works
- that You distribute, all copyright, patent, trademark, and
- attribution notices from the Source form of the Work,
- excluding those notices that do not pertain to any part of
- the Derivative Works; and
-
- (d) If the Work includes a "NOTICE" text file as part of its
- distribution, then any Derivative Works that You distribute must
- include a readable copy of the attribution notices contained
- within such NOTICE file, excluding those notices that do not
- pertain to any part of the Derivative Works, in at least one
- of the following places: within a NOTICE text file distributed
- as part of the Derivative Works; within the Source form or
- documentation, if provided along with the Derivative Works; or,
- within a display generated by the Derivative Works, if and
- wherever such third-party notices normally appear. The contents
- of the NOTICE file are for informational purposes only and
- do not modify the License. You may add Your own attribution
- notices within Derivative Works that You distribute, alongside
- or as an addendum to the NOTICE text from the Work, provided
- that such additional attribution notices cannot be construed
- as modifying the License.
-
- You may add Your own copyright statement to Your modifications and
- may provide additional or different license terms and conditions
- for use, reproduction, or distribution of Your modifications, or
- for any such Derivative Works as a whole, provided Your use,
- reproduction, and distribution of the Work otherwise complies with
- the conditions stated in this License.
-
- 5. Submission of Contributions. Unless You explicitly state otherwise,
- any Contribution intentionally submitted for inclusion in the Work
- by You to the Licensor shall be under the terms and conditions of
- this License, without any additional terms or conditions.
- Notwithstanding the above, nothing herein shall supersede or modify
- the terms of any separate license agreement you may have executed
- with Licensor regarding such Contributions.
-
- 6. Trademarks. This License does not grant permission to use the trade
- names, trademarks, service marks, or product names of the Licensor,
- except as required for reasonable and customary use in describing the
- origin of the Work and reproducing the content of the NOTICE file.
-
- 7. Disclaimer of Warranty. Unless required by applicable law or
- agreed to in writing, Licensor provides the Work (and each
- Contributor provides its Contributions) on an "AS IS" BASIS,
- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
- implied, including, without limitation, any warranties or conditions
- of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
- PARTICULAR PURPOSE. You are solely responsible for determining the
- appropriateness of using or redistributing the Work and assume any
- risks associated with Your exercise of permissions under this License.
-
- 8. Limitation of Liability. In no event and under no legal theory,
- whether in tort (including negligence), contract, or otherwise,
- unless required by applicable law (such as deliberate and grossly
- negligent acts) or agreed to in writing, shall any Contributor be
- liable to You for damages, including any direct, indirect, special,
- incidental, or consequential damages of any character arising as a
- result of this License or out of the use or inability to use the
- Work (including but not limited to damages for loss of goodwill,
- work stoppage, computer failure or malfunction, or any and all
- other commercial damages or losses), even if such Contributor
- has been advised of the possibility of such damages.
-
- 9. Accepting Warranty or Additional Liability. While redistributing
- the Work or Derivative Works thereof, You may choose to offer,
- and charge a fee for, acceptance of support, warranty, indemnity,
- or other liability obligations and/or rights consistent with this
- License. However, in accepting such obligations, You may act only
- on Your own behalf and on Your sole responsibility, not on behalf
- of any other Contributor, and only if You agree to indemnify,
- defend, and hold each Contributor harmless for any liability
- incurred by, or claims asserted against, such Contributor by reason
- of your accepting any such warranty or additional liability.
-
- END OF TERMS AND CONDITIONS
-
- APPENDIX: How to apply the Apache License to your work.
-
- To apply the Apache License to your work, attach the following
- boilerplate notice, with the fields enclosed by brackets "[]"
- replaced with your own identifying information. (Don't include
- the brackets!) The text should be enclosed in the appropriate
- comment syntax for the file format. We also recommend that a
- file or class name and description of purpose be included on the
- same "printed page" as the copyright notice for easier
- identification within third-party archives.
-
- Copyright [yyyy] [name of copyright owner]
-
- Licensed 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.
diff --git a/tags/java-M1-20060518/java/samples/sca/helloworld/README.txt b/tags/java-M1-20060518/java/samples/sca/helloworld/README.txt
deleted file mode 100644
index 9b26d1690a..0000000000
--- a/tags/java-M1-20060518/java/samples/sca/helloworld/README.txt
+++ /dev/null
@@ -1,35 +0,0 @@
-Apache Tuscany M1 build (May, 2006)
-===================================
-
-http://incubator.apache.org/tuscany/
-
-Tuscany is an effort undergoing incubation at the Apache Software Foundation
-(ASF), sponsored by the Web Services PMC.
-
-Incubation is required of all newly accepted projects until a further review
-indicates that the infrastructure, communications, and decision making process
-have stabilized in a manner consistent with other successful ASF projects.
-
-While incubation status is not necessarily a reflection of the completeness or
-stability of the code, it does indicate that the project has yet to be fully
-endorsed by the ASF.
-
-
-Support
--------
-
-Any problem with this release can be reported to the Tuscany mailing list
-or in the JIRA issue tracker.
-
-Mailing list subscription:
- tuscany-dev-subscribe@ws.apache.org
-
-Jira:
- http://issues.apache.org/jira/browse/Tuscany
-
-
-Thank you for using Tuscany!
-
-
-The Tuscany Team.
-
diff --git a/tags/java-M1-20060518/java/samples/sca/helloworld/build.xml b/tags/java-M1-20060518/java/samples/sca/helloworld/build.xml
deleted file mode 100644
index 1c9843ff2c..0000000000
--- a/tags/java-M1-20060518/java/samples/sca/helloworld/build.xml
+++ /dev/null
@@ -1,52 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<!--
- * Copyright (c) 2005-2006 The Apache Software Foundation or its licensors, as applicable.
- *
- * Licensed 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 name="samples" default="compile">
- <property name="mainDir" value="../../.."/>
- <path id="javac.classpath">
- <fileset dir="${mainDir}/lib">
- <include name="tuscany-runtime-incubating-M1.jar"/>
- </fileset>
- </path>
- <path id="java.classpath">
- <fileset dir="${mainDir}/lib">
- <include name="tuscany-runtime-incubating-M1.jar"/>
- </fileset>
- <pathelement path="target/sample-helloworld.jar"/>
- </path>
-
- <target name="init">
- <mkdir dir="target/classes"/>
- </target>
-
- <target name="compile" depends="init">
- <javac srcdir="src/main/java" destdir="target/classes" debug="on" source="1.5" target="1.5">
- <classpath refid="javac.classpath"/>
- </javac>
- <copy todir="target/classes">
- <fileset dir="src/main/resources"/>
- </copy>
- <jar destfile="target/sample-helloworld.jar">
- <fileset dir="target/classes"/>
- </jar>
- </target>
-
- <target name="clean">
- <delete quiet="true" includeemptydirs="true">
- <fileset dir="target" excludes="sample-helloworld-incubating-M1.jar"/>
- </delete>
- </target>
-</project>
diff --git a/tags/java-M1-20060518/java/samples/sca/helloworld/pom.xml b/tags/java-M1-20060518/java/samples/sca/helloworld/pom.xml
deleted file mode 100644
index 9a936abe29..0000000000
--- a/tags/java-M1-20060518/java/samples/sca/helloworld/pom.xml
+++ /dev/null
@@ -1,51 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<!--
- * Copyright (c) 2005-2006 The Apache Software Foundation or its licensors, as applicable.
- *
- * Licensed 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>
- <parent>
- <groupId>org.apache.tuscany.samples.sca</groupId>
- <artifactId>tuscany-samples-sca</artifactId>
- <version>incubating-M1</version>
- </parent>
- <modelVersion>4.0.0</modelVersion>
- <artifactId>sample-helloworld</artifactId>
- <packaging>jar</packaging>
- <name>Tuscany HelloWorld Sample</name>
- <description>A sample implementation of HelloWorld using an SCA component.</description>
- <version>incubating-M1</version>
-
- <dependencies>
- <dependency>
- <groupId>org.apache.tuscany</groupId>
- <artifactId>tuscany-core</artifactId>
- <version>${pom.version}</version>
- <scope>provided</scope>
- </dependency>
- <dependency>
- <groupId>org.apache.tuscany.sca.containers</groupId>
- <artifactId>tuscany-container-java</artifactId>
- <version>${pom.version}</version>
- <scope>provided</scope>
- </dependency>
-
- <dependency>
- <groupId>junit</groupId>
- <artifactId>junit</artifactId>
- <version>3.8.1</version>
- <scope>test</scope>
- </dependency>
- </dependencies>
-</project>
diff --git a/tags/java-M1-20060518/java/samples/sca/helloworld/readme.htm b/tags/java-M1-20060518/java/samples/sca/helloworld/readme.htm
deleted file mode 100644
index 82de419b1c..0000000000
--- a/tags/java-M1-20060518/java/samples/sca/helloworld/readme.htm
+++ /dev/null
@@ -1,54 +0,0 @@
-<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
-<html><head><!-- Copyright (c) 2005 The Apache Software Foundation or its licensors, as applicable. Licensed 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. -->
-<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"> <meta http-equiv="Content-Style-Type" content="text/css"><title>Tuscany
-HelloWorld</title><!-- LINK rel="stylesheet" href="ait.css" type="text/css" -->
-<style type="text/css" media="all">
-@import url("../../../../css/maven-base.css");
-@import url("../../../../css/maven-theme.css");
-@import url("../../../../css/site.css");
-</style><link rel="stylesheet" href="./css/print.css" type="text/css" media="print"></head>
-<body><h2>Tuscany
-Hello World Sample</h2>
-<h3>Overview</h3>
-<p>The Tuscany helloworld sample shows using the Tuscany SCA
-runtime in a J2SE environment &nbsp;loading a component that
-implements the classic introductory hello world example.</p>
-<h3>Location</h3>This
-sample is located &nbsp;in the samples\sca\helloworld directory.<br><br>
-<h3>Setup</h3>This sample depends on the Tuscany runtime and the sample jar,
-
- <span style="font-weight: bold;">
- sample-helloworld-incubating-M1.jar
- </span>
-
-, both of these must be available on the classpath to run the sample.
-<ol>
-</ol>
-<h3>Running</h3>
-
- In the directory samples/sca/helloworld use the JDK 1.5 java command to run the class helloworld.HelloWorldClient
-
- <pre>Linux: java -cp ../../../lib/tuscany-runtime-incubating-M1.jar:target/sample-helloworld-incubating-M1.jar helloworld.HelloWorldClient</pre>
- <pre>Windows: java -cp ../../../lib/tuscany-runtime-incubating-M1.jar;target/sample-helloworld-incubating-M1.jar helloworld.HelloWorldClient</pre>
-
-<h3>Results</h3>
-<p>The sample when run should simply display to the standard
-output:<br> <code>Hello World</code></p>
-<h3>Code Overview</h3>
-The source files are physically organized as shown below:
-<table style="text-align: left; width: 100%;" border="1" cellpadding="2" cellspacing="2"> <tbody> <tr><td>src<br>+---main<br>&nbsp;&nbsp;&nbsp; +---java<br>&nbsp;&nbsp;&nbsp; &brvbar;&nbsp;&nbsp; +---helloworld<br>&nbsp;&nbsp;&nbsp; &brvbar;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; HelloWorldClient.java<br>&nbsp;&nbsp;&nbsp; &brvbar;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; HelloWorldImpl.java<br>&nbsp;&nbsp;&nbsp; &brvbar;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; HelloWorldService.java<br>&nbsp;&nbsp;&nbsp; &brvbar;<br>&nbsp;&nbsp;&nbsp; +---resources<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; sca.module</td></tr></tbody></table>
-<br>
-<table style="text-align: left; width: 879px; height: 154px;" border="0" cellpadding="2" cellspacing="2"> <tbody><tr><td style="vertical-align: top;">sca.module</td>
-<td>Defines the SCA module and component. Defines for the
-HelloWorldServiceComponent component&nbsp; the Java class that
-implements that component</td> </tr> <tr> <td style="vertical-align: top;">HelloWorldService.java</td>
-<td>Defines the Java interface implemented by the component.</td>
-</tr> <tr> <td style="vertical-align: top;">HelloWorldImpl.java</td>
-<td>Implements the SCA component. Uses the SCA service annotation
-tag on the class to show what SCA interface is being implemented.</td>
-</tr> <tr> <td style="vertical-align: top;">HelloWorldClient.java</td>
-<td>Creates a Tuscany runtime and starts it. &nbsp;Obtains
-the module context which was defined by the sca.module file. From the
-module context locates the HelloWorldServiceComponent and then
-calls&nbsp; the getGreetings method to invoke the component.</td>
-</tr> </tbody></table><br></body></html> \ No newline at end of file
diff --git a/tags/java-M1-20060518/java/samples/sca/helloworld/src/main/java/helloworld/HelloWorldClient.java b/tags/java-M1-20060518/java/samples/sca/helloworld/src/main/java/helloworld/HelloWorldClient.java
deleted file mode 100644
index da46402b05..0000000000
--- a/tags/java-M1-20060518/java/samples/sca/helloworld/src/main/java/helloworld/HelloWorldClient.java
+++ /dev/null
@@ -1,55 +0,0 @@
-/**
- *
- * Copyright 2005 The Apache Software Foundation or its licensors, as applicable.
- *
- * Licensed 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 helloworld;
-
-import org.apache.tuscany.core.client.TuscanyRuntime;
-import org.osoa.sca.CurrentModuleContext;
-import org.osoa.sca.ModuleContext;
-
-/**
- * This client program shows how to create an SCA runtime, start it,
- * locate the HelloWorld service and invoke it.
- */
-public class HelloWorldClient {
-
- public static final void main(String[] args) throws Exception {
-
- // Create a Tuscany runtime for the sample module component
- TuscanyRuntime tuscany = new TuscanyRuntime("HelloWorldModuleComponent", "http://helloworld");
-
- // Start the Tuscany runtime and associate it with this thread
- tuscany.start();
-
- // Get the SCA module context.
- ModuleContext moduleContext = CurrentModuleContext.getContext();
-
- // Locate the HelloWorld service
- HelloWorldService helloworldService = (HelloWorldService) moduleContext.locateService("HelloWorldServiceComponent");
-
- // Invoke the HelloWorld service
- String value = helloworldService.getGreetings("World");
-
- System.out.println(value);
- System.out.flush();
-
- // Disassociate the runtime from this thread
- tuscany.stop();
-
- // Shut down the runtime
- tuscany.shutdown();
- }
-}
diff --git a/tags/java-M1-20060518/java/samples/sca/helloworld/src/main/java/helloworld/HelloWorldImpl.java b/tags/java-M1-20060518/java/samples/sca/helloworld/src/main/java/helloworld/HelloWorldImpl.java
deleted file mode 100644
index bf7209e7a8..0000000000
--- a/tags/java-M1-20060518/java/samples/sca/helloworld/src/main/java/helloworld/HelloWorldImpl.java
+++ /dev/null
@@ -1,31 +0,0 @@
-/**
- *
- * Copyright 2005 The Apache Software Foundation or its licensors, as applicable.
- *
- * Licensed 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 helloworld;
-
-import org.osoa.sca.annotations.Service;
-
-/**
- * This class implements the HelloWorld service.
- */
-@Service(HelloWorldService.class)
-public class HelloWorldImpl implements HelloWorldService {
-
- public String getGreetings(String name) {
- return "Hello " + name;
- }
-
-}
diff --git a/tags/java-M1-20060518/java/samples/sca/helloworld/src/main/java/helloworld/HelloWorldService.java b/tags/java-M1-20060518/java/samples/sca/helloworld/src/main/java/helloworld/HelloWorldService.java
deleted file mode 100644
index 1f87f17d74..0000000000
--- a/tags/java-M1-20060518/java/samples/sca/helloworld/src/main/java/helloworld/HelloWorldService.java
+++ /dev/null
@@ -1,26 +0,0 @@
-/**
- *
- * Copyright 2005 The Apache Software Foundation or its licensors, as applicable.
- *
- * Licensed 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 helloworld;
-
-/**
- * This is the business interface of the HelloWorld greetings service.
- */
-public interface HelloWorldService {
-
- public String getGreetings(String name);
-
-}
diff --git a/tags/java-M1-20060518/java/samples/sca/helloworld/src/main/resources/sca.module b/tags/java-M1-20060518/java/samples/sca/helloworld/src/main/resources/sca.module
deleted file mode 100644
index 22d319a165..0000000000
--- a/tags/java-M1-20060518/java/samples/sca/helloworld/src/main/resources/sca.module
+++ /dev/null
@@ -1,24 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<!--
- Copyright (c) 2005 The Apache Software Foundation or its licensors, as applicable.
-
- Licensed 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.
- -->
-<module xmlns="http://www.osoa.org/xmlns/sca/0.9" xmlns:v="http://www.osoa.org/xmlns/sca/values/0.9"
- name="helloworld">
-
- <component name="HelloWorldServiceComponent">
- <implementation.java class="helloworld.HelloWorldImpl"/>
- </component>
-
-</module>
diff --git a/tags/java-M1-20060518/java/samples/sca/helloworld/src/test/java/helloworld/HelloWorldTestCase.java b/tags/java-M1-20060518/java/samples/sca/helloworld/src/test/java/helloworld/HelloWorldTestCase.java
deleted file mode 100644
index 1a1c906ca8..0000000000
--- a/tags/java-M1-20060518/java/samples/sca/helloworld/src/test/java/helloworld/HelloWorldTestCase.java
+++ /dev/null
@@ -1,67 +0,0 @@
-/**
- *
- * Copyright 2005 The Apache Software Foundation or its licensors, as applicable.
- *
- * Licensed 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 helloworld;
-
-import helloworld.HelloWorldService;
-import junit.framework.TestCase;
-
-import org.apache.tuscany.core.client.TuscanyRuntime;
-import org.osoa.sca.CurrentModuleContext;
-import org.osoa.sca.ModuleContext;
-
-/**
- * This shows how to test the HelloWorld service component.
- */
-public class HelloWorldTestCase extends TestCase {
-
- private TuscanyRuntime tuscany;
-
- protected void setUp() throws Exception {
- super.setUp();
-
- // Create a Tuscany runtime for the sample module component
- tuscany = new TuscanyRuntime("HelloWorldModuleComponent", "http://helloworld");
-
- // Start the Tuscany runtime and associate it with this thread
- tuscany.start();
- }
-
- public void testGreetings() throws Exception {
-
- // Get the SCA module context.
- ModuleContext moduleContext = CurrentModuleContext.getContext();
-
- // Locate the HelloWorld service
- HelloWorldService helloworldService = (HelloWorldService) moduleContext.locateService("HelloWorldServiceComponent");
-
- // Invoke the HelloWorld service
- String value = helloworldService.getGreetings("World");
-
- assertEquals(value, "Hello World");
- }
-
- protected void tearDown() throws Exception {
-
- // Stop the Tuscany runtime
- tuscany.stop();
-
- // Shutdown the runtime
- tuscany.shutdown();
-
- super.tearDown();
- }
-}
diff --git a/tags/java-M1-20060518/java/samples/sca/helloworlde4xws/LICENSE.txt b/tags/java-M1-20060518/java/samples/sca/helloworlde4xws/LICENSE.txt
deleted file mode 100644
index d645695673..0000000000
--- a/tags/java-M1-20060518/java/samples/sca/helloworlde4xws/LICENSE.txt
+++ /dev/null
@@ -1,202 +0,0 @@
-
- Apache License
- Version 2.0, January 2004
- http://www.apache.org/licenses/
-
- TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
-
- 1. Definitions.
-
- "License" shall mean the terms and conditions for use, reproduction,
- and distribution as defined by Sections 1 through 9 of this document.
-
- "Licensor" shall mean the copyright owner or entity authorized by
- the copyright owner that is granting the License.
-
- "Legal Entity" shall mean the union of the acting entity and all
- other entities that control, are controlled by, or are under common
- control with that entity. For the purposes of this definition,
- "control" means (i) the power, direct or indirect, to cause the
- direction or management of such entity, whether by contract or
- otherwise, or (ii) ownership of fifty percent (50%) or more of the
- outstanding shares, or (iii) beneficial ownership of such entity.
-
- "You" (or "Your") shall mean an individual or Legal Entity
- exercising permissions granted by this License.
-
- "Source" form shall mean the preferred form for making modifications,
- including but not limited to software source code, documentation
- source, and configuration files.
-
- "Object" form shall mean any form resulting from mechanical
- transformation or translation of a Source form, including but
- not limited to compiled object code, generated documentation,
- and conversions to other media types.
-
- "Work" shall mean the work of authorship, whether in Source or
- Object form, made available under the License, as indicated by a
- copyright notice that is included in or attached to the work
- (an example is provided in the Appendix below).
-
- "Derivative Works" shall mean any work, whether in Source or Object
- form, that is based on (or derived from) the Work and for which the
- editorial revisions, annotations, elaborations, or other modifications
- represent, as a whole, an original work of authorship. For the purposes
- of this License, Derivative Works shall not include works that remain
- separable from, or merely link (or bind by name) to the interfaces of,
- the Work and Derivative Works thereof.
-
- "Contribution" shall mean any work of authorship, including
- the original version of the Work and any modifications or additions
- to that Work or Derivative Works thereof, that is intentionally
- submitted to Licensor for inclusion in the Work by the copyright owner
- or by an individual or Legal Entity authorized to submit on behalf of
- the copyright owner. For the purposes of this definition, "submitted"
- means any form of electronic, verbal, or written communication sent
- to the Licensor or its representatives, including but not limited to
- communication on electronic mailing lists, source code control systems,
- and issue tracking systems that are managed by, or on behalf of, the
- Licensor for the purpose of discussing and improving the Work, but
- excluding communication that is conspicuously marked or otherwise
- designated in writing by the copyright owner as "Not a Contribution."
-
- "Contributor" shall mean Licensor and any individual or Legal Entity
- on behalf of whom a Contribution has been received by Licensor and
- subsequently incorporated within the Work.
-
- 2. Grant of Copyright License. Subject to the terms and conditions of
- this License, each Contributor hereby grants to You a perpetual,
- worldwide, non-exclusive, no-charge, royalty-free, irrevocable
- copyright license to reproduce, prepare Derivative Works of,
- publicly display, publicly perform, sublicense, and distribute the
- Work and such Derivative Works in Source or Object form.
-
- 3. Grant of Patent License. Subject to the terms and conditions of
- this License, each Contributor hereby grants to You a perpetual,
- worldwide, non-exclusive, no-charge, royalty-free, irrevocable
- (except as stated in this section) patent license to make, have made,
- use, offer to sell, sell, import, and otherwise transfer the Work,
- where such license applies only to those patent claims licensable
- by such Contributor that are necessarily infringed by their
- Contribution(s) alone or by combination of their Contribution(s)
- with the Work to which such Contribution(s) was submitted. If You
- institute patent litigation against any entity (including a
- cross-claim or counterclaim in a lawsuit) alleging that the Work
- or a Contribution incorporated within the Work constitutes direct
- or contributory patent infringement, then any patent licenses
- granted to You under this License for that Work shall terminate
- as of the date such litigation is filed.
-
- 4. Redistribution. You may reproduce and distribute copies of the
- Work or Derivative Works thereof in any medium, with or without
- modifications, and in Source or Object form, provided that You
- meet the following conditions:
-
- (a) You must give any other recipients of the Work or
- Derivative Works a copy of this License; and
-
- (b) You must cause any modified files to carry prominent notices
- stating that You changed the files; and
-
- (c) You must retain, in the Source form of any Derivative Works
- that You distribute, all copyright, patent, trademark, and
- attribution notices from the Source form of the Work,
- excluding those notices that do not pertain to any part of
- the Derivative Works; and
-
- (d) If the Work includes a "NOTICE" text file as part of its
- distribution, then any Derivative Works that You distribute must
- include a readable copy of the attribution notices contained
- within such NOTICE file, excluding those notices that do not
- pertain to any part of the Derivative Works, in at least one
- of the following places: within a NOTICE text file distributed
- as part of the Derivative Works; within the Source form or
- documentation, if provided along with the Derivative Works; or,
- within a display generated by the Derivative Works, if and
- wherever such third-party notices normally appear. The contents
- of the NOTICE file are for informational purposes only and
- do not modify the License. You may add Your own attribution
- notices within Derivative Works that You distribute, alongside
- or as an addendum to the NOTICE text from the Work, provided
- that such additional attribution notices cannot be construed
- as modifying the License.
-
- You may add Your own copyright statement to Your modifications and
- may provide additional or different license terms and conditions
- for use, reproduction, or distribution of Your modifications, or
- for any such Derivative Works as a whole, provided Your use,
- reproduction, and distribution of the Work otherwise complies with
- the conditions stated in this License.
-
- 5. Submission of Contributions. Unless You explicitly state otherwise,
- any Contribution intentionally submitted for inclusion in the Work
- by You to the Licensor shall be under the terms and conditions of
- this License, without any additional terms or conditions.
- Notwithstanding the above, nothing herein shall supersede or modify
- the terms of any separate license agreement you may have executed
- with Licensor regarding such Contributions.
-
- 6. Trademarks. This License does not grant permission to use the trade
- names, trademarks, service marks, or product names of the Licensor,
- except as required for reasonable and customary use in describing the
- origin of the Work and reproducing the content of the NOTICE file.
-
- 7. Disclaimer of Warranty. Unless required by applicable law or
- agreed to in writing, Licensor provides the Work (and each
- Contributor provides its Contributions) on an "AS IS" BASIS,
- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
- implied, including, without limitation, any warranties or conditions
- of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
- PARTICULAR PURPOSE. You are solely responsible for determining the
- appropriateness of using or redistributing the Work and assume any
- risks associated with Your exercise of permissions under this License.
-
- 8. Limitation of Liability. In no event and under no legal theory,
- whether in tort (including negligence), contract, or otherwise,
- unless required by applicable law (such as deliberate and grossly
- negligent acts) or agreed to in writing, shall any Contributor be
- liable to You for damages, including any direct, indirect, special,
- incidental, or consequential damages of any character arising as a
- result of this License or out of the use or inability to use the
- Work (including but not limited to damages for loss of goodwill,
- work stoppage, computer failure or malfunction, or any and all
- other commercial damages or losses), even if such Contributor
- has been advised of the possibility of such damages.
-
- 9. Accepting Warranty or Additional Liability. While redistributing
- the Work or Derivative Works thereof, You may choose to offer,
- and charge a fee for, acceptance of support, warranty, indemnity,
- or other liability obligations and/or rights consistent with this
- License. However, in accepting such obligations, You may act only
- on Your own behalf and on Your sole responsibility, not on behalf
- of any other Contributor, and only if You agree to indemnify,
- defend, and hold each Contributor harmless for any liability
- incurred by, or claims asserted against, such Contributor by reason
- of your accepting any such warranty or additional liability.
-
- END OF TERMS AND CONDITIONS
-
- APPENDIX: How to apply the Apache License to your work.
-
- To apply the Apache License to your work, attach the following
- boilerplate notice, with the fields enclosed by brackets "[]"
- replaced with your own identifying information. (Don't include
- the brackets!) The text should be enclosed in the appropriate
- comment syntax for the file format. We also recommend that a
- file or class name and description of purpose be included on the
- same "printed page" as the copyright notice for easier
- identification within third-party archives.
-
- Copyright [yyyy] [name of copyright owner]
-
- Licensed 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.
diff --git a/tags/java-M1-20060518/java/samples/sca/helloworlde4xws/README.txt b/tags/java-M1-20060518/java/samples/sca/helloworlde4xws/README.txt
deleted file mode 100644
index 9b26d1690a..0000000000
--- a/tags/java-M1-20060518/java/samples/sca/helloworlde4xws/README.txt
+++ /dev/null
@@ -1,35 +0,0 @@
-Apache Tuscany M1 build (May, 2006)
-===================================
-
-http://incubator.apache.org/tuscany/
-
-Tuscany is an effort undergoing incubation at the Apache Software Foundation
-(ASF), sponsored by the Web Services PMC.
-
-Incubation is required of all newly accepted projects until a further review
-indicates that the infrastructure, communications, and decision making process
-have stabilized in a manner consistent with other successful ASF projects.
-
-While incubation status is not necessarily a reflection of the completeness or
-stability of the code, it does indicate that the project has yet to be fully
-endorsed by the ASF.
-
-
-Support
--------
-
-Any problem with this release can be reported to the Tuscany mailing list
-or in the JIRA issue tracker.
-
-Mailing list subscription:
- tuscany-dev-subscribe@ws.apache.org
-
-Jira:
- http://issues.apache.org/jira/browse/Tuscany
-
-
-Thank you for using Tuscany!
-
-
-The Tuscany Team.
-
diff --git a/tags/java-M1-20060518/java/samples/sca/helloworlde4xws/build.xml b/tags/java-M1-20060518/java/samples/sca/helloworlde4xws/build.xml
deleted file mode 100644
index 5c72a1784e..0000000000
--- a/tags/java-M1-20060518/java/samples/sca/helloworlde4xws/build.xml
+++ /dev/null
@@ -1,49 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<!--
- * Copyright (c) 2005-2006 The Apache Software Foundation or its licensors, as applicable.
- *
- * Licensed 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 name="samples" default="compile">
- <property name="mainDir" value="../../.."/>
- <path id="javac.classpath">
- <fileset dir="${mainDir}/lib">
- <include name="tuscany-runtime-incubating-M1.jar"/>
- </fileset>
- </path>
- <path id="java.classpath">
- <fileset dir="${mainDir}/lib">
- <include name="tuscany-runtime-incubating-M1.jar"/>
- </fileset>
- <pathelement path="target/sample-helloworlde4xws.jar"/>
- </path>
-
- <target name="init">
- <mkdir dir="target/classes"/>
- </target>
-
- <target name="compile" depends="init">
- <copy todir="target/classes">
- <fileset dir="src/main/resources"/>
- </copy>
- <war destfile="target/sample-helloworlde4xws.war" webxml="src/main/webapp/WEB-INF/web.xml">
- <classes dir="target/classes"/>
- </war>
- </target>
-
- <target name="clean">
- <delete quiet="true" includeemptydirs="true">
- <fileset dir="target" excludes="sample-helloworlde4xws-incubating-M1.war"/>
- </delete>
- </target>
-</project>
diff --git a/tags/java-M1-20060518/java/samples/sca/helloworlde4xws/pom.xml b/tags/java-M1-20060518/java/samples/sca/helloworlde4xws/pom.xml
deleted file mode 100644
index 8f806cc986..0000000000
--- a/tags/java-M1-20060518/java/samples/sca/helloworlde4xws/pom.xml
+++ /dev/null
@@ -1,49 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<!--
- * Copyright (c) 2005-2006 The Apache Software Foundation or its licensors, as applicable.
- *
- * Licensed 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>
-
- <parent>
- <groupId>org.apache.tuscany.samples.sca</groupId>
- <artifactId>tuscany-samples-sca</artifactId>
- <version>incubating-M1</version>
- </parent>
-
- <modelVersion>4.0.0</modelVersion>
- <artifactId>sample-helloworlde4xws</artifactId>
- <packaging>war</packaging>
- <name>Tuscany HelloWorld JavaScript/E4X Web Service Sample</name>
- <description>A sample HelloWorld Web Service using JavaScript/E4X</description>
- <version>incubating-M1</version>
-
- <dependencies>
-
- <dependency>
- <groupId>org.apache.tuscany</groupId>
- <artifactId>tuscany-core</artifactId>
- <version>${pom.version}</version>
- <scope>provided</scope>
- </dependency>
-
- <dependency>
- <groupId>org.apache.tuscany.sca.containers</groupId>
- <artifactId>tuscany-container-rhino</artifactId>
- <version>${pom.version}</version>
- <scope>provided</scope>
- </dependency>
-
- </dependencies>
-</project>
diff --git a/tags/java-M1-20060518/java/samples/sca/helloworlde4xws/readme.htm b/tags/java-M1-20060518/java/samples/sca/helloworlde4xws/readme.htm
deleted file mode 100644
index 53bc323d1f..0000000000
--- a/tags/java-M1-20060518/java/samples/sca/helloworlde4xws/readme.htm
+++ /dev/null
@@ -1,110 +0,0 @@
-<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
-<html><head><!--
- Copyright (c) 2005 The Apache Software Foundation or its licensors, as applicable.
-
- Licensed 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.
- -->
-
-
-
-
-
- <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
-
-
-
-
-
- <meta http-equiv="Content-Style-Type" content="text/css">
-
-
-
-
-
-
-
-
-
- <title>Tuscany Hello World JavaScript/E4X WS Sample</title><!-- LINK rel="stylesheet" href="ait.css" type="text/css" --><!-- maven --><style type="text/css" media="all">
-@import url("../../../../css/maven-base.css");
-@import url("../../../../css/maven-theme.css");
-@import url("../../../../css/site.css");
- </style>
-
- <link rel="stylesheet" href="./css/print.css" type="text/css" media="print"><!-- end maven --></head>
-
-<body>
-
-
-
-<h2>Tuscany Hello World JavaScript/E4X WS Sample</h2>
-
-
-
-<h3>Overview</h3>
-
-
-
-<p>The Tuscany hello world JavaScript/E4X WS sample shows using the Tuscany SCA
- runtime in a Tomcat environment providing a web service implemented in JavaScript/E4X.</p>
-<h3>Location</h3>
-This sample is located in the samples\sca\helloworlde4xws directory.
-
-
-
-<h3>Setup</h3>
-Set up your server as described in the <a href="../../../GettingStarted.htm" target="_blank">Tomcat
-Setup</a>. &nbsp;If
-you are not configuring with the acceptance test the server, you will
-need to add <span style="font-weight: bold;">helloworlde4xws-incubating-M1.war</span>
-to your Tomcat's webapp directory.
-
-
-<h3>Running</h3>
-This service can be invoked by&nbsp;the Tuscany SCA <a target="_blank" href="../helloworldjsclient/readme.htm">helloworldjsclient</a>
-sample.<br>
-
-<h3>Code Overview</h3>
-The source files are physically organized as shown below:<br>
-<table style="text-align: left; width: 100%;" border="1" cellpadding="2" cellspacing="2"><tbody><tr><td>
-<pre>+---main<br> +---resources<br> &brvbar; &brvbar; sca.module<br> &brvbar; &brvbar;<br> &brvbar; +---helloworld<br> &brvbar; &brvbar; HelloWorldImpl.componentType<br> &brvbar; &brvbar; HelloWorldImpl.js<br> &brvbar; &brvbar;<br> &brvbar; +---wsdl<br> &brvbar; helloworld.wsdl<br> &brvbar;<br> +---webapp<br> +---WEB-INF<br> web.xml<br></pre></td></tr></tbody></table>
-
-<br><br><table style="text-align: left; width: 100%; height: 154px;" border="0" cellpadding="2" cellspacing="2"><tbody>
-<tr>
-<td style="vertical-align: top; height: 62px;">
-<a target="_blank" href="../helloworlde4xws/src/main/resources/sca.module">sca.module</a>
-</td>
-<td style="height: 62px;">Defines the SCA module,
-entryPoint and component. Defines for the HelloWorldComponent
-component and the JavaScript script that implements the component. For the
-entryPoint it defines WSDL for the service, and wires the service to
-the&nbsp;HelloWorldComponent</td>
-</tr>
-<tr>
-<td><a target="_blank" href="../helloworlde4xws/src/main/resources/helloworld/HelloWorldImpl.componentType">HelloWorldImpl.componentType</a></td>
-<td>The .componentType side file describing the service</td>
-</tr>
-<tr>
-<td><a target="_blank" href="../helloworlde4xws/src/main/resources/helloworld/HelloWorldImpl.js">HelloWorldImpl.js</a></td>
-<td>The JavaScript implementation of the service</td>
-</tr>
-<tr>
-<td><a target="_blank" href="../helloworlde4xws/src/main/resources/wsdl/helloworld.wsdl">helloworld.wsdl</a></td>
-<td>WSDL for the service.</td>
-</tr>
-<tr>
-<td><a target="_blank" href="../helloworlde4xws/src/main/webapp/WEB-INF/web.xml">web.xml</a></td>
-<td>Standard J2EE web application's web.xml</td>
-</tr></tbody></table>
-</body></html>
-
diff --git a/tags/java-M1-20060518/java/samples/sca/helloworlde4xws/src/main/resources/helloworld/HelloWorldImpl.componentType b/tags/java-M1-20060518/java/samples/sca/helloworlde4xws/src/main/resources/helloworld/HelloWorldImpl.componentType
deleted file mode 100644
index 54462091f5..0000000000
--- a/tags/java-M1-20060518/java/samples/sca/helloworlde4xws/src/main/resources/helloworld/HelloWorldImpl.componentType
+++ /dev/null
@@ -1,9 +0,0 @@
-<?xml version="1.0" encoding="ASCII"?>
-
-<componentType xmlns="http://www.osoa.org/xmlns/sca/0.9" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
-
- <service name="HelloWorldE4XService">
- <interface.wsdl interface="http://helloworld#HelloWorld"/>
- </service>
-
-</componentType> \ No newline at end of file
diff --git a/tags/java-M1-20060518/java/samples/sca/helloworlde4xws/src/main/resources/helloworld/HelloWorldImpl.js b/tags/java-M1-20060518/java/samples/sca/helloworlde4xws/src/main/resources/helloworld/HelloWorldImpl.js
deleted file mode 100644
index 1529784c0f..0000000000
--- a/tags/java-M1-20060518/java/samples/sca/helloworlde4xws/src/main/resources/helloworld/HelloWorldImpl.js
+++ /dev/null
@@ -1,28 +0,0 @@
-/**
- *
- * Copyright 2005 The Apache Software Foundation or its licensors, as applicable.
- *
- * Licensed 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.
- */
-
-function process(xmlIn) {
-
- var response = "e4xHello " + xmlIn..*::name;
-
- var xmlOut =
- <ns1:getGreetingsResponse xmlns:ns1="http://helloworld">
- <ns1:getGreetingsReturn> { response } </ns1:getGreetingsReturn>
- </ns1:getGreetingsResponse>;
-
- return xmlOut;
-}
diff --git a/tags/java-M1-20060518/java/samples/sca/helloworlde4xws/src/main/resources/sca.module b/tags/java-M1-20060518/java/samples/sca/helloworlde4xws/src/main/resources/sca.module
deleted file mode 100644
index 4f5724d64b..0000000000
--- a/tags/java-M1-20060518/java/samples/sca/helloworlde4xws/src/main/resources/sca.module
+++ /dev/null
@@ -1,34 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<!--
- Copyright (c) 2005 The Apache Software Foundation or its licensors, as applicable.
-
- Licensed 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.
- -->
-<module xmlns="http://www.osoa.org/xmlns/sca/0.9" xmlns:v="http://www.osoa.org/xmlns/sca/values/0.9"
- xmlns:js="http://org.apache.tuscany/xmlns/js/0.9"
- name="helloworld">
-
- <import.sdo wsdlLocation="wsdl/helloworld.wsdl"/>
- <import.wsdl wsdlLocation="wsdl/helloworld.wsdl"/>
-
- <entryPoint name="HelloWorldE4XWebService">
- <interface.wsdl interface="http://helloworld#wsdl.interface(HelloWorld)"/>
- <binding.ws port="http://helloworld#wsdl.endpoint(HelloWorldService/HelloWorldSoapPort)"/>
- <reference>HelloWorldComponent</reference>
- </entryPoint>
-
- <component name="HelloWorldComponent">
- <js:implementation.js scriptFile="helloworld/HelloWorldImpl.js"/>
- </component>
-
-</module>
diff --git a/tags/java-M1-20060518/java/samples/sca/helloworlde4xws/src/main/resources/wsdl/helloworld.wsdl b/tags/java-M1-20060518/java/samples/sca/helloworlde4xws/src/main/resources/wsdl/helloworld.wsdl
deleted file mode 100644
index cbc15f58eb..0000000000
--- a/tags/java-M1-20060518/java/samples/sca/helloworlde4xws/src/main/resources/wsdl/helloworld.wsdl
+++ /dev/null
@@ -1,75 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<!--
- Copyright (c) 2005 The Apache Software Foundation or its licensors, as applicable.
-
- Licensed 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.
- -->
-<wsdl:definitions targetNamespace="http://helloworld" xmlns:tns="http://helloworld" xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/" xmlns:wsdlsoap="http://schemas.xmlsoap.org/wsdl/soap/" xmlns:xsd="http://www.w3.org/2001/XMLSchema"
- name="helloworld">
-
- <wsdl:types>
- <schema elementFormDefault="qualified" targetNamespace="http://helloworld" xmlns="http://www.w3.org/2001/XMLSchema">
-
- <element name="getGreetings">
- <complexType>
- <sequence>
- <element name="name" type="xsd:string"/>
- </sequence>
- </complexType>
- </element>
-
- <element name="getGreetingsResponse">
- <complexType>
- <sequence>
- <element name="getGreetingsReturn" type="xsd:string"/>
- </sequence>
- </complexType>
- </element>
- </schema>
- </wsdl:types>
-
- <wsdl:message name="getGreetingsRequest">
- <wsdl:part element="tns:getGreetings" name="parameters"/>
- </wsdl:message>
-
- <wsdl:message name="getGreetingsResponse">
- <wsdl:part element="tns:getGreetingsResponse" name="parameters"/>
- </wsdl:message>
-
- <wsdl:portType name="HelloWorld">
- <wsdl:operation name="getGreetings">
- <wsdl:input message="tns:getGreetingsRequest" name="getGreetingsRequest"/>
- <wsdl:output message="tns:getGreetingsResponse" name="getGreetingsResponse"/>
- </wsdl:operation>
- </wsdl:portType>
-
- <wsdl:binding name="HelloWorldSoapBinding" type="tns:HelloWorld">
- <wsdlsoap:binding style="document" transport="http://schemas.xmlsoap.org/soap/http"/>
- <wsdl:operation name="getGreetings">
- <wsdlsoap:operation soapAction=""/>
- <wsdl:input name="getGreetingsRequest">
- <wsdlsoap:body use="literal"/>
- </wsdl:input>
- <wsdl:output name="getGreetingsResponse">
- <wsdlsoap:body use="literal"/>
- </wsdl:output>
- </wsdl:operation>
- </wsdl:binding>
-
- <wsdl:service name="HelloWorldService">
- <wsdl:port binding="tns:HelloWorldSoapBinding" name="HelloWorldSoapPort">
- <wsdlsoap:address location="http://localhost:8080/sample-helloworldws/services/HelloWorldWebService"/>
- </wsdl:port>
- </wsdl:service>
-
-</wsdl:definitions>
diff --git a/tags/java-M1-20060518/java/samples/sca/helloworlde4xws/src/main/webapp/WEB-INF/web.xml b/tags/java-M1-20060518/java/samples/sca/helloworlde4xws/src/main/webapp/WEB-INF/web.xml
deleted file mode 100644
index 37c6d8e249..0000000000
--- a/tags/java-M1-20060518/java/samples/sca/helloworlde4xws/src/main/webapp/WEB-INF/web.xml
+++ /dev/null
@@ -1,24 +0,0 @@
-<?xml version="1.0" encoding="ISO-8859-1"?>
-<!--
- Copyright (c) 2005 The Apache Software Foundation or its licensors, as applicable.
-
- Licensed 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.
- -->
-
-<!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>Tuscany HelloWorld JavaScript Web Service Sample</display-name>
-
-</web-app>
diff --git a/tags/java-M1-20060518/java/samples/sca/helloworldjsclient/LICENSE.txt b/tags/java-M1-20060518/java/samples/sca/helloworldjsclient/LICENSE.txt
deleted file mode 100644
index d645695673..0000000000
--- a/tags/java-M1-20060518/java/samples/sca/helloworldjsclient/LICENSE.txt
+++ /dev/null
@@ -1,202 +0,0 @@
-
- Apache License
- Version 2.0, January 2004
- http://www.apache.org/licenses/
-
- TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
-
- 1. Definitions.
-
- "License" shall mean the terms and conditions for use, reproduction,
- and distribution as defined by Sections 1 through 9 of this document.
-
- "Licensor" shall mean the copyright owner or entity authorized by
- the copyright owner that is granting the License.
-
- "Legal Entity" shall mean the union of the acting entity and all
- other entities that control, are controlled by, or are under common
- control with that entity. For the purposes of this definition,
- "control" means (i) the power, direct or indirect, to cause the
- direction or management of such entity, whether by contract or
- otherwise, or (ii) ownership of fifty percent (50%) or more of the
- outstanding shares, or (iii) beneficial ownership of such entity.
-
- "You" (or "Your") shall mean an individual or Legal Entity
- exercising permissions granted by this License.
-
- "Source" form shall mean the preferred form for making modifications,
- including but not limited to software source code, documentation
- source, and configuration files.
-
- "Object" form shall mean any form resulting from mechanical
- transformation or translation of a Source form, including but
- not limited to compiled object code, generated documentation,
- and conversions to other media types.
-
- "Work" shall mean the work of authorship, whether in Source or
- Object form, made available under the License, as indicated by a
- copyright notice that is included in or attached to the work
- (an example is provided in the Appendix below).
-
- "Derivative Works" shall mean any work, whether in Source or Object
- form, that is based on (or derived from) the Work and for which the
- editorial revisions, annotations, elaborations, or other modifications
- represent, as a whole, an original work of authorship. For the purposes
- of this License, Derivative Works shall not include works that remain
- separable from, or merely link (or bind by name) to the interfaces of,
- the Work and Derivative Works thereof.
-
- "Contribution" shall mean any work of authorship, including
- the original version of the Work and any modifications or additions
- to that Work or Derivative Works thereof, that is intentionally
- submitted to Licensor for inclusion in the Work by the copyright owner
- or by an individual or Legal Entity authorized to submit on behalf of
- the copyright owner. For the purposes of this definition, "submitted"
- means any form of electronic, verbal, or written communication sent
- to the Licensor or its representatives, including but not limited to
- communication on electronic mailing lists, source code control systems,
- and issue tracking systems that are managed by, or on behalf of, the
- Licensor for the purpose of discussing and improving the Work, but
- excluding communication that is conspicuously marked or otherwise
- designated in writing by the copyright owner as "Not a Contribution."
-
- "Contributor" shall mean Licensor and any individual or Legal Entity
- on behalf of whom a Contribution has been received by Licensor and
- subsequently incorporated within the Work.
-
- 2. Grant of Copyright License. Subject to the terms and conditions of
- this License, each Contributor hereby grants to You a perpetual,
- worldwide, non-exclusive, no-charge, royalty-free, irrevocable
- copyright license to reproduce, prepare Derivative Works of,
- publicly display, publicly perform, sublicense, and distribute the
- Work and such Derivative Works in Source or Object form.
-
- 3. Grant of Patent License. Subject to the terms and conditions of
- this License, each Contributor hereby grants to You a perpetual,
- worldwide, non-exclusive, no-charge, royalty-free, irrevocable
- (except as stated in this section) patent license to make, have made,
- use, offer to sell, sell, import, and otherwise transfer the Work,
- where such license applies only to those patent claims licensable
- by such Contributor that are necessarily infringed by their
- Contribution(s) alone or by combination of their Contribution(s)
- with the Work to which such Contribution(s) was submitted. If You
- institute patent litigation against any entity (including a
- cross-claim or counterclaim in a lawsuit) alleging that the Work
- or a Contribution incorporated within the Work constitutes direct
- or contributory patent infringement, then any patent licenses
- granted to You under this License for that Work shall terminate
- as of the date such litigation is filed.
-
- 4. Redistribution. You may reproduce and distribute copies of the
- Work or Derivative Works thereof in any medium, with or without
- modifications, and in Source or Object form, provided that You
- meet the following conditions:
-
- (a) You must give any other recipients of the Work or
- Derivative Works a copy of this License; and
-
- (b) You must cause any modified files to carry prominent notices
- stating that You changed the files; and
-
- (c) You must retain, in the Source form of any Derivative Works
- that You distribute, all copyright, patent, trademark, and
- attribution notices from the Source form of the Work,
- excluding those notices that do not pertain to any part of
- the Derivative Works; and
-
- (d) If the Work includes a "NOTICE" text file as part of its
- distribution, then any Derivative Works that You distribute must
- include a readable copy of the attribution notices contained
- within such NOTICE file, excluding those notices that do not
- pertain to any part of the Derivative Works, in at least one
- of the following places: within a NOTICE text file distributed
- as part of the Derivative Works; within the Source form or
- documentation, if provided along with the Derivative Works; or,
- within a display generated by the Derivative Works, if and
- wherever such third-party notices normally appear. The contents
- of the NOTICE file are for informational purposes only and
- do not modify the License. You may add Your own attribution
- notices within Derivative Works that You distribute, alongside
- or as an addendum to the NOTICE text from the Work, provided
- that such additional attribution notices cannot be construed
- as modifying the License.
-
- You may add Your own copyright statement to Your modifications and
- may provide additional or different license terms and conditions
- for use, reproduction, or distribution of Your modifications, or
- for any such Derivative Works as a whole, provided Your use,
- reproduction, and distribution of the Work otherwise complies with
- the conditions stated in this License.
-
- 5. Submission of Contributions. Unless You explicitly state otherwise,
- any Contribution intentionally submitted for inclusion in the Work
- by You to the Licensor shall be under the terms and conditions of
- this License, without any additional terms or conditions.
- Notwithstanding the above, nothing herein shall supersede or modify
- the terms of any separate license agreement you may have executed
- with Licensor regarding such Contributions.
-
- 6. Trademarks. This License does not grant permission to use the trade
- names, trademarks, service marks, or product names of the Licensor,
- except as required for reasonable and customary use in describing the
- origin of the Work and reproducing the content of the NOTICE file.
-
- 7. Disclaimer of Warranty. Unless required by applicable law or
- agreed to in writing, Licensor provides the Work (and each
- Contributor provides its Contributions) on an "AS IS" BASIS,
- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
- implied, including, without limitation, any warranties or conditions
- of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
- PARTICULAR PURPOSE. You are solely responsible for determining the
- appropriateness of using or redistributing the Work and assume any
- risks associated with Your exercise of permissions under this License.
-
- 8. Limitation of Liability. In no event and under no legal theory,
- whether in tort (including negligence), contract, or otherwise,
- unless required by applicable law (such as deliberate and grossly
- negligent acts) or agreed to in writing, shall any Contributor be
- liable to You for damages, including any direct, indirect, special,
- incidental, or consequential damages of any character arising as a
- result of this License or out of the use or inability to use the
- Work (including but not limited to damages for loss of goodwill,
- work stoppage, computer failure or malfunction, or any and all
- other commercial damages or losses), even if such Contributor
- has been advised of the possibility of such damages.
-
- 9. Accepting Warranty or Additional Liability. While redistributing
- the Work or Derivative Works thereof, You may choose to offer,
- and charge a fee for, acceptance of support, warranty, indemnity,
- or other liability obligations and/or rights consistent with this
- License. However, in accepting such obligations, You may act only
- on Your own behalf and on Your sole responsibility, not on behalf
- of any other Contributor, and only if You agree to indemnify,
- defend, and hold each Contributor harmless for any liability
- incurred by, or claims asserted against, such Contributor by reason
- of your accepting any such warranty or additional liability.
-
- END OF TERMS AND CONDITIONS
-
- APPENDIX: How to apply the Apache License to your work.
-
- To apply the Apache License to your work, attach the following
- boilerplate notice, with the fields enclosed by brackets "[]"
- replaced with your own identifying information. (Don't include
- the brackets!) The text should be enclosed in the appropriate
- comment syntax for the file format. We also recommend that a
- file or class name and description of purpose be included on the
- same "printed page" as the copyright notice for easier
- identification within third-party archives.
-
- Copyright [yyyy] [name of copyright owner]
-
- Licensed 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.
diff --git a/tags/java-M1-20060518/java/samples/sca/helloworldjsclient/README.txt b/tags/java-M1-20060518/java/samples/sca/helloworldjsclient/README.txt
deleted file mode 100644
index 9b26d1690a..0000000000
--- a/tags/java-M1-20060518/java/samples/sca/helloworldjsclient/README.txt
+++ /dev/null
@@ -1,35 +0,0 @@
-Apache Tuscany M1 build (May, 2006)
-===================================
-
-http://incubator.apache.org/tuscany/
-
-Tuscany is an effort undergoing incubation at the Apache Software Foundation
-(ASF), sponsored by the Web Services PMC.
-
-Incubation is required of all newly accepted projects until a further review
-indicates that the infrastructure, communications, and decision making process
-have stabilized in a manner consistent with other successful ASF projects.
-
-While incubation status is not necessarily a reflection of the completeness or
-stability of the code, it does indicate that the project has yet to be fully
-endorsed by the ASF.
-
-
-Support
--------
-
-Any problem with this release can be reported to the Tuscany mailing list
-or in the JIRA issue tracker.
-
-Mailing list subscription:
- tuscany-dev-subscribe@ws.apache.org
-
-Jira:
- http://issues.apache.org/jira/browse/Tuscany
-
-
-Thank you for using Tuscany!
-
-
-The Tuscany Team.
-
diff --git a/tags/java-M1-20060518/java/samples/sca/helloworldjsclient/build.xml b/tags/java-M1-20060518/java/samples/sca/helloworldjsclient/build.xml
deleted file mode 100644
index cd35274ff1..0000000000
--- a/tags/java-M1-20060518/java/samples/sca/helloworldjsclient/build.xml
+++ /dev/null
@@ -1,49 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<!--
- * Copyright (c) 2005-2006 The Apache Software Foundation or its licensors, as applicable.
- *
- * Licensed 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 name="samples" default="compile">
- <property name="mainDir" value="../../.."/>
- <path id="javac.classpath">
- <fileset dir="${mainDir}/lib">
- <include name="tuscany-runtime-incubating-M1.jar"/>
- </fileset>
- </path>
- <path id="java.classpath">
- <fileset dir="${mainDir}/lib">
- <include name="tuscany-runtime-incubating-M1.jar"/>
- </fileset>
- <pathelement path="target/sample-helloworldjsclient.jar"/>
- </path>
-
- <target name="init">
- <mkdir dir="target/classes"/>
- </target>
-
- <target name="compile" depends="init">
- <copy todir="target/classes">
- <fileset dir="src/main/resources"/>
- </copy>
- <war destfile="target/sample-helloworldjsclient.war" webxml="src/main/webapp/WEB-INF/web.xml">
- <classes dir="target/classes"/>
- </war>
- </target>
-
- <target name="clean">
- <delete quiet="true" includeemptydirs="true">
- <fileset dir="target" excludes="sample-helloworldjsclient-incubating-M1.war"/>
- </delete>
- </target>
-</project>
diff --git a/tags/java-M1-20060518/java/samples/sca/helloworldjsclient/pom.xml b/tags/java-M1-20060518/java/samples/sca/helloworldjsclient/pom.xml
deleted file mode 100644
index f9a710d444..0000000000
--- a/tags/java-M1-20060518/java/samples/sca/helloworldjsclient/pom.xml
+++ /dev/null
@@ -1,56 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<!--
- * Copyright (c) 2005-2006 The Apache Software Foundation or its licensors, as applicable.
- *
- * Licensed 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>
- <parent>
- <groupId>org.apache.tuscany.samples.sca</groupId>
- <artifactId>tuscany-samples-sca</artifactId>
- <version>incubating-M1</version>
- </parent>
-
- <modelVersion>4.0.0</modelVersion>
- <artifactId>sample-helloworldjsclient</artifactId>
- <packaging>war</packaging>
- <name>Tuscany HelloWorld JSON-RPC WS Client Sample</name>
- <description>A web app client for the HelloWorld Web service samples</description>
- <version>incubating-M1</version>
-
- <dependencies>
-
- <dependency>
- <groupId>org.apache.tuscany</groupId>
- <artifactId>tuscany-core</artifactId>
- <version>${pom.version}</version>
- <scope>provided</scope>
- </dependency>
-
- <dependency>
- <groupId>org.apache.tuscany.sca.bindings</groupId>
- <artifactId>tuscany-binding-jsonrpc</artifactId>
- <version>${pom.version}</version>
- <scope>provided</scope>
- </dependency>
-
- <dependency>
- <groupId>org.apache.tuscany.sca.bindings</groupId>
- <artifactId>tuscany-binding-axis2</artifactId>
- <version>${pom.version}</version>
- <scope>provided</scope>
- </dependency>
-
- </dependencies>
-
-</project>
diff --git a/tags/java-M1-20060518/java/samples/sca/helloworldjsclient/readme.htm b/tags/java-M1-20060518/java/samples/sca/helloworldjsclient/readme.htm
deleted file mode 100644
index 5aa9dbc3d5..0000000000
--- a/tags/java-M1-20060518/java/samples/sca/helloworldjsclient/readme.htm
+++ /dev/null
@@ -1,110 +0,0 @@
-<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
-<html><head><!--
- Copyright (c) 2005 The Apache Software Foundation or its licensors, as applicable.
-
- Licensed 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.
- -->
-
-
-
-
-
- <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
-
-
-
-
-
- <meta http-equiv="Content-Style-Type" content="text/css">
-
-
-
-
-
-
-
-
-
- <title>Tuscany Hello World JS WS Client Sample</title><!-- LINK rel="stylesheet" href="ait.css" type="text/css" --><!-- maven --><style type="text/css" media="all">
-@import url("../../../../css/maven-base.css");
-@import url("../../../../css/maven-theme.css");
-@import url("../../../../css/site.css");
- </style>
-
- <link rel="stylesheet" href="./css/print.css" type="text/css" media="print"><!-- end maven --></head>
-
-<body>
-
-
-
-<h2>Tuscany Hello World JS WS Client Sample</h2>
-
-
-
-<h3>Overview</h3>
-
-
-
-<p>The Tuscany hello world JS client WS sample shows using the Tuscany SCA
- runtime in a Tomcat environment providing a client for the Tuscany helloworld WS samples, <a target="_blank" href="../helloworldws/readme.htm">helloworldws</a> and <a target="_blank" href="../helloworlde4xws/readme.htm">helloworlde4xws</a>.</p>
-<h3>Location</h3>
-This sample is located in the samples\sca\helloworldjsclient directory.
-
-
-
-<h3>Setup</h3>
-Set up your server as described in the <a href="../../../GettingStarted.htm" target="_blank">Tomcat
-Setup</a>. &nbsp;If
-you are not configuring with the acceptance test the server, you will
-need to add <span style="font-weight: bold;">sample-helloworldjsclient-incubating-M1.war</span>
-to your Tomcat's webapp directory.
-
-
-<h3>Running</h3>
-
-Once you've started your web server, use your browse to view the
-following URL: <a href="http://localhost:8080/sample-helloworldjsclient/" target="_blank">http://localhost:8080/sample-helloworldjsclient/</a>
-<br>
-
-<h3>Code Overview</h3>
-The source files are physically organized as shown below:<br>
-<table style="text-align: left; width: 100%;" border="1" cellpadding="2" cellspacing="2"><tbody><tr><td>
-<pre>+---main<br> +---resources<br> &brvbar; &brvbar; sca.module<br> &brvbar; &brvbar;<br> &brvbar; +---wsdl<br> &brvbar; helloworld.wsdl<br> &brvbar;<br> +---webapp<br> &brvbar; HelloWorldClient.html<br> &brvbar;<br> +---WEB-INF<br> web.xml<br></pre></td></tr></tbody></table>
-
-<br><br><table style="text-align: left; width: 100%; height: 154px;" border="0" cellpadding="2" cellspacing="2"><tbody>
-<tr>
-<td style="vertical-align: top; height: 62px;">
-<a target="_blank" href="../helloworldjsclient/src/main/resources/sca.module">sca.module</a>
-</td>
-<td style="height: 62px;">Defines the SCA module, and
-entryPoints which are wired directly to externalServices for each of the web services.</td>
-</tr>
-<tr>
-<td><a target="_blank" href="../helloworldjsclient/src/main/resources/wsdl/helloworld.wsdl">helloworld.wsdl</a></td>
-<td>WSDL for the service.</td>
-</tr>
-<tr>
-<td><a target="_blank" href="../helloworldjsclient/src/main/webapp/HelloWorldClient.html">HelloWorldClient.html</a></td>
-<td>The HTML page for the client. This includes a JavaScript script which uses the SCA JSON-RPC support to invoke methods on the SCA entryPoints.</td>
-</tr>
-<tr>
-<td><a target="_blank" href="../helloworldjsclient/src/main/webapp/WEB-INF/web.xml">web.xml</a></td>
-<td>Standard J2EE web application's web.xml</td>
-</tr></tbody></table>
-
-<p>
-There isn't much code in this sample, only the script in the HTML for the page, and even that script is fairly simple. It demonstrates how simple SCA and its assembly model can make component implementations.
-</p>
-
-</body></html>
-
diff --git a/tags/java-M1-20060518/java/samples/sca/helloworldjsclient/src/main/resources/sca.module b/tags/java-M1-20060518/java/samples/sca/helloworldjsclient/src/main/resources/sca.module
deleted file mode 100644
index f73adafbd5..0000000000
--- a/tags/java-M1-20060518/java/samples/sca/helloworldjsclient/src/main/resources/sca.module
+++ /dev/null
@@ -1,49 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<!--
- Copyright (c) 2005 The Apache Software Foundation or its licensors, as applicable.
-
- Licensed 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.
- -->
-<module xmlns="http://www.osoa.org/xmlns/sca/0.9" xmlns:v="http://www.osoa.org/xmlns/sca/values/0.9"
- xmlns:jsonrpc="http://org.apache.tuscany/xmlns/jsonrpc/0.9"
-
- name="sampleHelloworldJSONRPC">
-
- <import.sdo wsdlLocation="wsdl/helloworld.wsdl"/>
- <import.wsdl wsdlLocation="wsdl/helloworld.wsdl"/>
-
- <entryPoint name="JavaHelloworld">
- <interface.wsdl interface="http://helloworld#wsdl.interface(HelloWorld)"/>
- <jsonrpc:binding.jsonrpc/>
- <reference>JavaHelloworldWS</reference>
- </entryPoint>
-
- <entryPoint name="E4XHelloworld">
- <interface.wsdl interface="http://helloworld#wsdl.interface(HelloWorld)"/>
- <jsonrpc:binding.jsonrpc/>
- <reference>E4XHelloworldWS</reference>
- </entryPoint>
-
- <externalService name="JavaHelloworldWS">
- <interface.wsdl interface="http://helloworld#wsdl.interface(HelloWorld)"/>
- <binding.ws port="http://helloworld#wsdl.endpoint(HelloWorldService/HelloWorldSoapPort)"/>
- </externalService>
-
- <externalService name="E4XHelloworldWS">
- <interface.wsdl interface="http://helloworld#wsdl.interface(HelloWorld)"/>
- <binding.ws
- uri="http://localhost:8080/sample-helloworlde4xws/services/HelloWorldE4XWebService"
- port="http://helloworld#wsdl.endpoint(HelloWorldService/HelloWorldSoapPort)"/>
- </externalService>
-
-</module>
diff --git a/tags/java-M1-20060518/java/samples/sca/helloworldjsclient/src/main/resources/wsdl/helloworld.wsdl b/tags/java-M1-20060518/java/samples/sca/helloworldjsclient/src/main/resources/wsdl/helloworld.wsdl
deleted file mode 100644
index cbc15f58eb..0000000000
--- a/tags/java-M1-20060518/java/samples/sca/helloworldjsclient/src/main/resources/wsdl/helloworld.wsdl
+++ /dev/null
@@ -1,75 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<!--
- Copyright (c) 2005 The Apache Software Foundation or its licensors, as applicable.
-
- Licensed 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.
- -->
-<wsdl:definitions targetNamespace="http://helloworld" xmlns:tns="http://helloworld" xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/" xmlns:wsdlsoap="http://schemas.xmlsoap.org/wsdl/soap/" xmlns:xsd="http://www.w3.org/2001/XMLSchema"
- name="helloworld">
-
- <wsdl:types>
- <schema elementFormDefault="qualified" targetNamespace="http://helloworld" xmlns="http://www.w3.org/2001/XMLSchema">
-
- <element name="getGreetings">
- <complexType>
- <sequence>
- <element name="name" type="xsd:string"/>
- </sequence>
- </complexType>
- </element>
-
- <element name="getGreetingsResponse">
- <complexType>
- <sequence>
- <element name="getGreetingsReturn" type="xsd:string"/>
- </sequence>
- </complexType>
- </element>
- </schema>
- </wsdl:types>
-
- <wsdl:message name="getGreetingsRequest">
- <wsdl:part element="tns:getGreetings" name="parameters"/>
- </wsdl:message>
-
- <wsdl:message name="getGreetingsResponse">
- <wsdl:part element="tns:getGreetingsResponse" name="parameters"/>
- </wsdl:message>
-
- <wsdl:portType name="HelloWorld">
- <wsdl:operation name="getGreetings">
- <wsdl:input message="tns:getGreetingsRequest" name="getGreetingsRequest"/>
- <wsdl:output message="tns:getGreetingsResponse" name="getGreetingsResponse"/>
- </wsdl:operation>
- </wsdl:portType>
-
- <wsdl:binding name="HelloWorldSoapBinding" type="tns:HelloWorld">
- <wsdlsoap:binding style="document" transport="http://schemas.xmlsoap.org/soap/http"/>
- <wsdl:operation name="getGreetings">
- <wsdlsoap:operation soapAction=""/>
- <wsdl:input name="getGreetingsRequest">
- <wsdlsoap:body use="literal"/>
- </wsdl:input>
- <wsdl:output name="getGreetingsResponse">
- <wsdlsoap:body use="literal"/>
- </wsdl:output>
- </wsdl:operation>
- </wsdl:binding>
-
- <wsdl:service name="HelloWorldService">
- <wsdl:port binding="tns:HelloWorldSoapBinding" name="HelloWorldSoapPort">
- <wsdlsoap:address location="http://localhost:8080/sample-helloworldws/services/HelloWorldWebService"/>
- </wsdl:port>
- </wsdl:service>
-
-</wsdl:definitions>
diff --git a/tags/java-M1-20060518/java/samples/sca/helloworldjsclient/src/main/webapp/HelloWorldClient.html b/tags/java-M1-20060518/java/samples/sca/helloworldjsclient/src/main/webapp/HelloWorldClient.html
deleted file mode 100644
index 98d76dc25e..0000000000
--- a/tags/java-M1-20060518/java/samples/sca/helloworldjsclient/src/main/webapp/HelloWorldClient.html
+++ /dev/null
@@ -1,50 +0,0 @@
-<html>
-<!--
- Copyright (c) 2005 The Apache Software Foundation or its licensors, as applicable.
-
- Licensed 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.
- -->
- <head>
- <title>Tuscany HelloWorld WS Client Sample</TITLE>
-
- <script type="text/javascript" src="SCA/scripts/sca.js"></script>
-
- <script language="JavaScript">
- function getGreeting(service) {
- var name = document.getElementById("name").value;
- var result = service.getGreetings(name);
- document.getElementById('greeting').innerHTML=result;
- }
- </script>
- </head>
-
- <body>
-
- <h2>Tuscany HelloWorld WS Client Sample</h2><br>
-
- <p>
- Name please: &nbsp;&nbsp;&nbsp;
- <input type="text" id="name" size="30" value="World" />
-
- <br><BR>
-
- <input type="button" value="Java WS" onclick="getGreeting(SCA.JavaHelloworld)" />
- <input type="button" value="E4X WS" onclick="getGreeting(SCA.E4XHelloworld)" />
-
- </p>
-
- <br><hr>
- <div id='greeting'></div>
-
- </body>
-</html>
diff --git a/tags/java-M1-20060518/java/samples/sca/helloworldjsclient/src/main/webapp/WEB-INF/web.xml b/tags/java-M1-20060518/java/samples/sca/helloworldjsclient/src/main/webapp/WEB-INF/web.xml
deleted file mode 100644
index 9757e60124..0000000000
--- a/tags/java-M1-20060518/java/samples/sca/helloworldjsclient/src/main/webapp/WEB-INF/web.xml
+++ /dev/null
@@ -1,27 +0,0 @@
-<?xml version="1.0" encoding="ISO-8859-1"?>
-<!--
- Copyright (c) 2005 The Apache Software Foundation or its licensors, as applicable.
-
- Licensed 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.
- -->
-<!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>Tuscany HelloWorld JSON-RPC WS Client Sample</display-name>
-
- <welcome-file-list id="WelcomeFileList">
- <welcome-file>HelloWorldClient.html</welcome-file>
- </welcome-file-list>
-
-</web-app>
diff --git a/tags/java-M1-20060518/java/samples/sca/helloworldjsonrpc/LICENSE.txt b/tags/java-M1-20060518/java/samples/sca/helloworldjsonrpc/LICENSE.txt
deleted file mode 100644
index d645695673..0000000000
--- a/tags/java-M1-20060518/java/samples/sca/helloworldjsonrpc/LICENSE.txt
+++ /dev/null
@@ -1,202 +0,0 @@
-
- Apache License
- Version 2.0, January 2004
- http://www.apache.org/licenses/
-
- TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
-
- 1. Definitions.
-
- "License" shall mean the terms and conditions for use, reproduction,
- and distribution as defined by Sections 1 through 9 of this document.
-
- "Licensor" shall mean the copyright owner or entity authorized by
- the copyright owner that is granting the License.
-
- "Legal Entity" shall mean the union of the acting entity and all
- other entities that control, are controlled by, or are under common
- control with that entity. For the purposes of this definition,
- "control" means (i) the power, direct or indirect, to cause the
- direction or management of such entity, whether by contract or
- otherwise, or (ii) ownership of fifty percent (50%) or more of the
- outstanding shares, or (iii) beneficial ownership of such entity.
-
- "You" (or "Your") shall mean an individual or Legal Entity
- exercising permissions granted by this License.
-
- "Source" form shall mean the preferred form for making modifications,
- including but not limited to software source code, documentation
- source, and configuration files.
-
- "Object" form shall mean any form resulting from mechanical
- transformation or translation of a Source form, including but
- not limited to compiled object code, generated documentation,
- and conversions to other media types.
-
- "Work" shall mean the work of authorship, whether in Source or
- Object form, made available under the License, as indicated by a
- copyright notice that is included in or attached to the work
- (an example is provided in the Appendix below).
-
- "Derivative Works" shall mean any work, whether in Source or Object
- form, that is based on (or derived from) the Work and for which the
- editorial revisions, annotations, elaborations, or other modifications
- represent, as a whole, an original work of authorship. For the purposes
- of this License, Derivative Works shall not include works that remain
- separable from, or merely link (or bind by name) to the interfaces of,
- the Work and Derivative Works thereof.
-
- "Contribution" shall mean any work of authorship, including
- the original version of the Work and any modifications or additions
- to that Work or Derivative Works thereof, that is intentionally
- submitted to Licensor for inclusion in the Work by the copyright owner
- or by an individual or Legal Entity authorized to submit on behalf of
- the copyright owner. For the purposes of this definition, "submitted"
- means any form of electronic, verbal, or written communication sent
- to the Licensor or its representatives, including but not limited to
- communication on electronic mailing lists, source code control systems,
- and issue tracking systems that are managed by, or on behalf of, the
- Licensor for the purpose of discussing and improving the Work, but
- excluding communication that is conspicuously marked or otherwise
- designated in writing by the copyright owner as "Not a Contribution."
-
- "Contributor" shall mean Licensor and any individual or Legal Entity
- on behalf of whom a Contribution has been received by Licensor and
- subsequently incorporated within the Work.
-
- 2. Grant of Copyright License. Subject to the terms and conditions of
- this License, each Contributor hereby grants to You a perpetual,
- worldwide, non-exclusive, no-charge, royalty-free, irrevocable
- copyright license to reproduce, prepare Derivative Works of,
- publicly display, publicly perform, sublicense, and distribute the
- Work and such Derivative Works in Source or Object form.
-
- 3. Grant of Patent License. Subject to the terms and conditions of
- this License, each Contributor hereby grants to You a perpetual,
- worldwide, non-exclusive, no-charge, royalty-free, irrevocable
- (except as stated in this section) patent license to make, have made,
- use, offer to sell, sell, import, and otherwise transfer the Work,
- where such license applies only to those patent claims licensable
- by such Contributor that are necessarily infringed by their
- Contribution(s) alone or by combination of their Contribution(s)
- with the Work to which such Contribution(s) was submitted. If You
- institute patent litigation against any entity (including a
- cross-claim or counterclaim in a lawsuit) alleging that the Work
- or a Contribution incorporated within the Work constitutes direct
- or contributory patent infringement, then any patent licenses
- granted to You under this License for that Work shall terminate
- as of the date such litigation is filed.
-
- 4. Redistribution. You may reproduce and distribute copies of the
- Work or Derivative Works thereof in any medium, with or without
- modifications, and in Source or Object form, provided that You
- meet the following conditions:
-
- (a) You must give any other recipients of the Work or
- Derivative Works a copy of this License; and
-
- (b) You must cause any modified files to carry prominent notices
- stating that You changed the files; and
-
- (c) You must retain, in the Source form of any Derivative Works
- that You distribute, all copyright, patent, trademark, and
- attribution notices from the Source form of the Work,
- excluding those notices that do not pertain to any part of
- the Derivative Works; and
-
- (d) If the Work includes a "NOTICE" text file as part of its
- distribution, then any Derivative Works that You distribute must
- include a readable copy of the attribution notices contained
- within such NOTICE file, excluding those notices that do not
- pertain to any part of the Derivative Works, in at least one
- of the following places: within a NOTICE text file distributed
- as part of the Derivative Works; within the Source form or
- documentation, if provided along with the Derivative Works; or,
- within a display generated by the Derivative Works, if and
- wherever such third-party notices normally appear. The contents
- of the NOTICE file are for informational purposes only and
- do not modify the License. You may add Your own attribution
- notices within Derivative Works that You distribute, alongside
- or as an addendum to the NOTICE text from the Work, provided
- that such additional attribution notices cannot be construed
- as modifying the License.
-
- You may add Your own copyright statement to Your modifications and
- may provide additional or different license terms and conditions
- for use, reproduction, or distribution of Your modifications, or
- for any such Derivative Works as a whole, provided Your use,
- reproduction, and distribution of the Work otherwise complies with
- the conditions stated in this License.
-
- 5. Submission of Contributions. Unless You explicitly state otherwise,
- any Contribution intentionally submitted for inclusion in the Work
- by You to the Licensor shall be under the terms and conditions of
- this License, without any additional terms or conditions.
- Notwithstanding the above, nothing herein shall supersede or modify
- the terms of any separate license agreement you may have executed
- with Licensor regarding such Contributions.
-
- 6. Trademarks. This License does not grant permission to use the trade
- names, trademarks, service marks, or product names of the Licensor,
- except as required for reasonable and customary use in describing the
- origin of the Work and reproducing the content of the NOTICE file.
-
- 7. Disclaimer of Warranty. Unless required by applicable law or
- agreed to in writing, Licensor provides the Work (and each
- Contributor provides its Contributions) on an "AS IS" BASIS,
- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
- implied, including, without limitation, any warranties or conditions
- of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
- PARTICULAR PURPOSE. You are solely responsible for determining the
- appropriateness of using or redistributing the Work and assume any
- risks associated with Your exercise of permissions under this License.
-
- 8. Limitation of Liability. In no event and under no legal theory,
- whether in tort (including negligence), contract, or otherwise,
- unless required by applicable law (such as deliberate and grossly
- negligent acts) or agreed to in writing, shall any Contributor be
- liable to You for damages, including any direct, indirect, special,
- incidental, or consequential damages of any character arising as a
- result of this License or out of the use or inability to use the
- Work (including but not limited to damages for loss of goodwill,
- work stoppage, computer failure or malfunction, or any and all
- other commercial damages or losses), even if such Contributor
- has been advised of the possibility of such damages.
-
- 9. Accepting Warranty or Additional Liability. While redistributing
- the Work or Derivative Works thereof, You may choose to offer,
- and charge a fee for, acceptance of support, warranty, indemnity,
- or other liability obligations and/or rights consistent with this
- License. However, in accepting such obligations, You may act only
- on Your own behalf and on Your sole responsibility, not on behalf
- of any other Contributor, and only if You agree to indemnify,
- defend, and hold each Contributor harmless for any liability
- incurred by, or claims asserted against, such Contributor by reason
- of your accepting any such warranty or additional liability.
-
- END OF TERMS AND CONDITIONS
-
- APPENDIX: How to apply the Apache License to your work.
-
- To apply the Apache License to your work, attach the following
- boilerplate notice, with the fields enclosed by brackets "[]"
- replaced with your own identifying information. (Don't include
- the brackets!) The text should be enclosed in the appropriate
- comment syntax for the file format. We also recommend that a
- file or class name and description of purpose be included on the
- same "printed page" as the copyright notice for easier
- identification within third-party archives.
-
- Copyright [yyyy] [name of copyright owner]
-
- Licensed 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.
diff --git a/tags/java-M1-20060518/java/samples/sca/helloworldjsonrpc/README.txt b/tags/java-M1-20060518/java/samples/sca/helloworldjsonrpc/README.txt
deleted file mode 100644
index 9b26d1690a..0000000000
--- a/tags/java-M1-20060518/java/samples/sca/helloworldjsonrpc/README.txt
+++ /dev/null
@@ -1,35 +0,0 @@
-Apache Tuscany M1 build (May, 2006)
-===================================
-
-http://incubator.apache.org/tuscany/
-
-Tuscany is an effort undergoing incubation at the Apache Software Foundation
-(ASF), sponsored by the Web Services PMC.
-
-Incubation is required of all newly accepted projects until a further review
-indicates that the infrastructure, communications, and decision making process
-have stabilized in a manner consistent with other successful ASF projects.
-
-While incubation status is not necessarily a reflection of the completeness or
-stability of the code, it does indicate that the project has yet to be fully
-endorsed by the ASF.
-
-
-Support
--------
-
-Any problem with this release can be reported to the Tuscany mailing list
-or in the JIRA issue tracker.
-
-Mailing list subscription:
- tuscany-dev-subscribe@ws.apache.org
-
-Jira:
- http://issues.apache.org/jira/browse/Tuscany
-
-
-Thank you for using Tuscany!
-
-
-The Tuscany Team.
-
diff --git a/tags/java-M1-20060518/java/samples/sca/helloworldjsonrpc/build.xml b/tags/java-M1-20060518/java/samples/sca/helloworldjsonrpc/build.xml
deleted file mode 100644
index 2f655f9965..0000000000
--- a/tags/java-M1-20060518/java/samples/sca/helloworldjsonrpc/build.xml
+++ /dev/null
@@ -1,52 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<!--
- * Copyright (c) 2005-2006 The Apache Software Foundation or its licensors, as applicable.
- *
- * Licensed 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 name="samples" default="compile">
- <property name="mainDir" value="../../.."/>
- <path id="javac.classpath">
- <fileset dir="${mainDir}/lib">
- <include name="tuscany-runtime-incubating-M1.jar"/>
- </fileset>
- </path>
- <path id="java.classpath">
- <fileset dir="${mainDir}/lib">
- <include name="tuscany-runtime-incubating-M1.jar"/>
- </fileset>
- <pathelement path="target/sample-helloworldjsonrpc.jar"/>
- </path>
-
- <target name="init">
- <mkdir dir="target/classes"/>
- </target>
-
- <target name="compile" depends="init">
- <javac srcdir="src/main/java" destdir="target/classes" debug="on" source="1.5" target="1.5">
- <classpath refid="javac.classpath"/>
- </javac>
- <copy todir="target/classes">
- <fileset dir="src/main/resources"/>
- </copy>
- <war destfile="target/sample-helloworldjsonrpc.war" webxml="src/main/webapp/WEB-INF/web.xml">
- <classes dir="target/classes"/>
- </war>
- </target>
-
- <target name="clean">
- <delete quiet="true" includeemptydirs="true">
- <fileset dir="target" excludes="sample-helloworldjsonrpc-incubating-M1.war"/>
- </delete>
- </target>
-</project>
diff --git a/tags/java-M1-20060518/java/samples/sca/helloworldjsonrpc/pom.xml b/tags/java-M1-20060518/java/samples/sca/helloworldjsonrpc/pom.xml
deleted file mode 100644
index 1949d593e0..0000000000
--- a/tags/java-M1-20060518/java/samples/sca/helloworldjsonrpc/pom.xml
+++ /dev/null
@@ -1,57 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<!--
- * Copyright (c) 2005-2006 The Apache Software Foundation or its licensors, as applicable.
- *
- * Licensed 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>
- <parent>
- <groupId>org.apache.tuscany.samples.sca</groupId>
- <artifactId>tuscany-samples-sca</artifactId>
- <version>incubating-M1</version>
- </parent>
- <modelVersion>4.0.0</modelVersion>
- <artifactId>sample-helloworldjsonrpc</artifactId>
- <packaging>war</packaging>
- <name>Tuscany HelloWorld JSON-RPC Sample</name>
- <description>A sample HelloWorld Web application using JSON-RPC</description>
- <version>incubating-M1</version>
-
- <dependencies>
- <dependency>
- <groupId>org.apache.tuscany</groupId>
- <artifactId>tuscany-core</artifactId>
- <version>${pom.version}</version>
- <scope>provided</scope>
- </dependency>
- <dependency>
- <groupId>org.apache.tuscany.sca.containers</groupId>
- <artifactId>tuscany-container-java</artifactId>
- <version>${pom.version}</version>
- <scope>provided</scope>
- </dependency>
- <dependency>
- <groupId>org.apache.tuscany.sca.bindings</groupId>
- <artifactId>tuscany-binding-jsonrpc</artifactId>
- <version>${pom.version}</version>
- <scope>provided</scope>
- </dependency>
-
- <dependency>
- <groupId>junit</groupId>
- <artifactId>junit</artifactId>
- <version>3.8.1</version>
- <scope>test</scope>
- </dependency>
- </dependencies>
-</project>
diff --git a/tags/java-M1-20060518/java/samples/sca/helloworldjsonrpc/readme.htm b/tags/java-M1-20060518/java/samples/sca/helloworldjsonrpc/readme.htm
deleted file mode 100644
index 51c3dd2249..0000000000
--- a/tags/java-M1-20060518/java/samples/sca/helloworldjsonrpc/readme.htm
+++ /dev/null
@@ -1,139 +0,0 @@
-<!--
- Copyright (c) 2005 The Apache Software Foundation or its licensors, as applicable.
-
- Licensed 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.
- -->
-<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
-<html><head>
-
- <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
-
- <meta http-equiv="Content-Style-Type" content="text/css">
- <title>Tuscany Hello World JSON-RPC Sample</title><!-- LINK rel="stylesheet" href="ait.css" type="text/css" --></head>
-
-<body>
-
-<h2>Tuscany Hello World JSON-RPC Sample</h2>
-
-<h3>Overview</h3>
-
-<p>The Tuscany hello world JSON-RPC sample shows using the Tuscany SCA
- runtime in a Tomcat environment being accessed from a JavaScript program running in the client browser that
- implements the classic introductory hello world example. </p>
-
-
-<h3>Setup</h3>Set up your server as described in the <a href="../../readme.htm" target="_blank">Tomcat
- Setup</a>. &nbsp;If you are not configuring with the acceptance test the server, you will need to add <span
- style="font-weight: bold;">sample-helloworldjsonrpc-incubating-M1.war</span> to your tomcat's webapp directory.<br>
-
-<h3>Running</h3>
-
-Once you've started your web server, use your browse to view the
-following URL: <a href="http://localhost:8080/sample-helloworldjsonrpc/" target="_blank">http://localhost:8080/sample-helloworldjsonrpc/</a>
-<br>
-
-You should see a form you can supply your name and a button.
-&nbsp;Once you click the button the JavaScript program locates the SCA component to execute
-the greeting service.
-<br>
-Note, unlike the J2SE or JSP clients the Tuscany runtime is automatically
-initialized and running.
-<h3>Results</h3>
-
-<p>The page should be updated with the greeting displayed below
- the form.<br>
-
-</p>
-
-<h3>Code Overview</h3>
-
-The source files are physically organized as shown below:<br>
-<table style="text-align: left; width: 100%;" border="1" cellpadding="2" cellspacing="2">
- <tbody>
- <tr>
- <td>
- <pre>+---main<br>&brvbar; +---java<br>&brvbar; &brvbar; sca.module
- +---org<br>&brvbar; +---apache<br>&brvbar; +---tuscany<br>&brvbar; +---samples<br>&brvbar; +---helloworldjsonrpc
- &brvbar; HelloWorldService.java
- &brvbar; HelloWorldServiceComponentImpl.java<br>+---webapp
- &brvbar; helloworld.js
- &brvbar; HelloWorldJSONRPC.html
- +---WEB-INF<br> &brvbar; web.xml<br></pre>
- </td>
- </tr>
- </tbody>
-</table>
-<br>
-<br>
-
-<p>&nbsp;</p>
-
-<table style="text-align: left; width: 100%; height: 154px;" border="0" cellpadding="2" cellspacing="2">
-
- <tbody>
-
- <tr>
-
- <td style="vertical-align: top;">sca.module</td>
-
- <td>Defines the SCA module, entryPoint and component. Defines an entryPoint with an JSON-RPC binding, and the
- HelloWorldService component and the Java class that
- implements that component</td>
-
- </tr>
-
- <tr>
-
- <td style="vertical-align: top;">HelloWorldService.java</td>
-
- <td>Defines the Java interface implemented by the component.</td>
-
- </tr>
-
- <tr>
-
- <td style="vertical-align: top;">HelloWorldServiceComponentImpl.java</td>
-
- <td>Implements the SCA component. Uses the SCA service
- annotation tag on the class to show what SCA interface is being
- implemented.</td>
-
- </tr>
-
- <tr>
- <td>helloworld.js</td>
- <td>Handles invoking the HelloWorld SCA service. Gets the value entered in the text field on the web page, invokes the SCA component and puts the result in the output field on the web page.
- <br>The interesting part of the script is &nbsp;SCA.HelloWorldService.getGreetings(who) &nbsp;.
- In the SCA JSON-RPC environment all entryPoints with an JSON-RPC binding are bound to the automatically defined script variable &nbsp;SCA.&nbsp;.
- </td>
- </tr>
-
- <tr>
- <td>HelloWorldJSONRPC.html</td>
- <td>The HTML page for the sample. Creates a text box for the user to enter their name, a button to click to get the greeting, and a text field to show the response.
- The helloworld.js script function getGreeting is used to invoke the SCA service when the button is clicked.
- To initialize the SCA environment the sca.js script must be defined as the first script in the HTML with the following line:<br>
- &lt;script type="text/javascript" src="SCA/scripts/sca.js"></script&gt;
- </tr>
-
- <tr>
- <td>web.xml</td>
- <td>Standard J2EE web application's web.xml</td>
- </tr>
-
- </tbody>
-</table>
-
-<br>
-
-</body></html>
diff --git a/tags/java-M1-20060518/java/samples/sca/helloworldjsonrpc/src/main/java/org/apache/tuscany/samples/helloworldjsonrpc/HelloWorldService.java b/tags/java-M1-20060518/java/samples/sca/helloworldjsonrpc/src/main/java/org/apache/tuscany/samples/helloworldjsonrpc/HelloWorldService.java
deleted file mode 100644
index f5d3ef6066..0000000000
--- a/tags/java-M1-20060518/java/samples/sca/helloworldjsonrpc/src/main/java/org/apache/tuscany/samples/helloworldjsonrpc/HelloWorldService.java
+++ /dev/null
@@ -1,26 +0,0 @@
-/**
- *
- * Copyright 2005 The Apache Software Foundation or its licensors, as applicable.
- *
- * Licensed 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 org.apache.tuscany.samples.helloworldjsonrpc;
-
-/**
- * This is the business interface of the HelloWorld service component.
- */
-public interface HelloWorldService {
-
- public String getGreetings(String name);
-
-}
diff --git a/tags/java-M1-20060518/java/samples/sca/helloworldjsonrpc/src/main/java/org/apache/tuscany/samples/helloworldjsonrpc/HelloWorldServiceComponentImpl.java b/tags/java-M1-20060518/java/samples/sca/helloworldjsonrpc/src/main/java/org/apache/tuscany/samples/helloworldjsonrpc/HelloWorldServiceComponentImpl.java
deleted file mode 100644
index 3eb259f90e..0000000000
--- a/tags/java-M1-20060518/java/samples/sca/helloworldjsonrpc/src/main/java/org/apache/tuscany/samples/helloworldjsonrpc/HelloWorldServiceComponentImpl.java
+++ /dev/null
@@ -1,34 +0,0 @@
-/**
- *
- * Copyright 2005 The Apache Software Foundation or its licensors, as applicable.
- *
- * Licensed 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 org.apache.tuscany.samples.helloworldjsonrpc;
-
-import org.osoa.sca.annotations.Service;
-
-/**
- * This class implements the HelloWorld service component.
- */
-@Service(HelloWorldService.class)
-public class HelloWorldServiceComponentImpl implements HelloWorldService {
-
- /*
- * @see org.apache.tuscany.samples.helloworld.HelloWorldServiceComponent#getGreetings()
- */
- public String getGreetings(String name) {
- return "jsonrpcHello " + name;
- }
-
-}
diff --git a/tags/java-M1-20060518/java/samples/sca/helloworldjsonrpc/src/main/resources/sca.module b/tags/java-M1-20060518/java/samples/sca/helloworldjsonrpc/src/main/resources/sca.module
deleted file mode 100644
index 0ad0131754..0000000000
--- a/tags/java-M1-20060518/java/samples/sca/helloworldjsonrpc/src/main/resources/sca.module
+++ /dev/null
@@ -1,32 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<!--
- Copyright (c) 2005 The Apache Software Foundation or its licensors, as applicable.
-
- Licensed 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.
- -->
-<module xmlns="http://www.osoa.org/xmlns/sca/0.9" xmlns:v="http://www.osoa.org/xmlns/sca/values/0.9"
- xmlns:jsonrpc="http://org.apache.tuscany/xmlns/jsonrpc/0.9"
-
- name="sampleHelloworldJSONRPC">
-
- <entryPoint name="HelloWorldService">
- <interface.java interface="org.apache.tuscany.samples.helloworldjsonrpc.HelloWorldService"/>
- <jsonrpc:binding.jsonrpc/>
- <reference>HelloWorldServiceComponent/HelloWorldService</reference>
- </entryPoint>
-
- <component name="HelloWorldServiceComponent">
- <implementation.java class="org.apache.tuscany.samples.helloworldjsonrpc.HelloWorldServiceComponentImpl"/>
- </component>
-
-</module>
diff --git a/tags/java-M1-20060518/java/samples/sca/helloworldjsonrpc/src/main/webapp/HelloWorldJSONRPC.html b/tags/java-M1-20060518/java/samples/sca/helloworldjsonrpc/src/main/webapp/HelloWorldJSONRPC.html
deleted file mode 100644
index 9e5357a847..0000000000
--- a/tags/java-M1-20060518/java/samples/sca/helloworldjsonrpc/src/main/webapp/HelloWorldJSONRPC.html
+++ /dev/null
@@ -1,48 +0,0 @@
-<html>
-<!--
- Copyright (c) 2005 The Apache Software Foundation or its licensors, as applicable.
-
- Licensed 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.
- -->
- <head>
- <title>Tuscany JSON-RPC HelloWorld Example</TITLE>
-
- <script type="text/javascript" src="SCA/scripts/sca.js"></script>
-
- <script language="JavaScript">
- function getGreeting() {
- var name = document.getElementById("name").value;
- var result = SCA.HelloWorldService.getGreetings(name);
- document.getElementById('greeting').innerHTML=result;
- }
- </script>
- </head>
-
- <body>
-
- <h2>Tuscany JSON-RPC HelloWorld Example</h2><br>
-
- <p>
- Name please: &nbsp;&nbsp;&nbsp;
- <input type="text" id="name" size="30" value="World" />
-
- <br><BR>
-
- <input type="button" value="Submit" onclick="getGreeting()" />
- </p>
-
- <br><hr>
- <div id='greeting'></div>
-
- </body>
-</html>
diff --git a/tags/java-M1-20060518/java/samples/sca/helloworldjsonrpc/src/main/webapp/WEB-INF/web.xml b/tags/java-M1-20060518/java/samples/sca/helloworldjsonrpc/src/main/webapp/WEB-INF/web.xml
deleted file mode 100644
index 547153dd0e..0000000000
--- a/tags/java-M1-20060518/java/samples/sca/helloworldjsonrpc/src/main/webapp/WEB-INF/web.xml
+++ /dev/null
@@ -1,27 +0,0 @@
-<?xml version="1.0" encoding="ISO-8859-1"?>
-<!--
- Copyright (c) 2005 The Apache Software Foundation or its licensors, as applicable.
-
- Licensed 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.
- -->
-<!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>Tuscany sample HelloWorld JSON-RPC</display-name>
-
- <welcome-file-list id="WelcomeFileList">
- <welcome-file>HelloWorldJSONRPC.html</welcome-file>
- </welcome-file-list>
-
-</web-app>
diff --git a/tags/java-M1-20060518/java/samples/sca/helloworldweb/LICENSE.txt b/tags/java-M1-20060518/java/samples/sca/helloworldweb/LICENSE.txt
deleted file mode 100644
index d645695673..0000000000
--- a/tags/java-M1-20060518/java/samples/sca/helloworldweb/LICENSE.txt
+++ /dev/null
@@ -1,202 +0,0 @@
-
- Apache License
- Version 2.0, January 2004
- http://www.apache.org/licenses/
-
- TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
-
- 1. Definitions.
-
- "License" shall mean the terms and conditions for use, reproduction,
- and distribution as defined by Sections 1 through 9 of this document.
-
- "Licensor" shall mean the copyright owner or entity authorized by
- the copyright owner that is granting the License.
-
- "Legal Entity" shall mean the union of the acting entity and all
- other entities that control, are controlled by, or are under common
- control with that entity. For the purposes of this definition,
- "control" means (i) the power, direct or indirect, to cause the
- direction or management of such entity, whether by contract or
- otherwise, or (ii) ownership of fifty percent (50%) or more of the
- outstanding shares, or (iii) beneficial ownership of such entity.
-
- "You" (or "Your") shall mean an individual or Legal Entity
- exercising permissions granted by this License.
-
- "Source" form shall mean the preferred form for making modifications,
- including but not limited to software source code, documentation
- source, and configuration files.
-
- "Object" form shall mean any form resulting from mechanical
- transformation or translation of a Source form, including but
- not limited to compiled object code, generated documentation,
- and conversions to other media types.
-
- "Work" shall mean the work of authorship, whether in Source or
- Object form, made available under the License, as indicated by a
- copyright notice that is included in or attached to the work
- (an example is provided in the Appendix below).
-
- "Derivative Works" shall mean any work, whether in Source or Object
- form, that is based on (or derived from) the Work and for which the
- editorial revisions, annotations, elaborations, or other modifications
- represent, as a whole, an original work of authorship. For the purposes
- of this License, Derivative Works shall not include works that remain
- separable from, or merely link (or bind by name) to the interfaces of,
- the Work and Derivative Works thereof.
-
- "Contribution" shall mean any work of authorship, including
- the original version of the Work and any modifications or additions
- to that Work or Derivative Works thereof, that is intentionally
- submitted to Licensor for inclusion in the Work by the copyright owner
- or by an individual or Legal Entity authorized to submit on behalf of
- the copyright owner. For the purposes of this definition, "submitted"
- means any form of electronic, verbal, or written communication sent
- to the Licensor or its representatives, including but not limited to
- communication on electronic mailing lists, source code control systems,
- and issue tracking systems that are managed by, or on behalf of, the
- Licensor for the purpose of discussing and improving the Work, but
- excluding communication that is conspicuously marked or otherwise
- designated in writing by the copyright owner as "Not a Contribution."
-
- "Contributor" shall mean Licensor and any individual or Legal Entity
- on behalf of whom a Contribution has been received by Licensor and
- subsequently incorporated within the Work.
-
- 2. Grant of Copyright License. Subject to the terms and conditions of
- this License, each Contributor hereby grants to You a perpetual,
- worldwide, non-exclusive, no-charge, royalty-free, irrevocable
- copyright license to reproduce, prepare Derivative Works of,
- publicly display, publicly perform, sublicense, and distribute the
- Work and such Derivative Works in Source or Object form.
-
- 3. Grant of Patent License. Subject to the terms and conditions of
- this License, each Contributor hereby grants to You a perpetual,
- worldwide, non-exclusive, no-charge, royalty-free, irrevocable
- (except as stated in this section) patent license to make, have made,
- use, offer to sell, sell, import, and otherwise transfer the Work,
- where such license applies only to those patent claims licensable
- by such Contributor that are necessarily infringed by their
- Contribution(s) alone or by combination of their Contribution(s)
- with the Work to which such Contribution(s) was submitted. If You
- institute patent litigation against any entity (including a
- cross-claim or counterclaim in a lawsuit) alleging that the Work
- or a Contribution incorporated within the Work constitutes direct
- or contributory patent infringement, then any patent licenses
- granted to You under this License for that Work shall terminate
- as of the date such litigation is filed.
-
- 4. Redistribution. You may reproduce and distribute copies of the
- Work or Derivative Works thereof in any medium, with or without
- modifications, and in Source or Object form, provided that You
- meet the following conditions:
-
- (a) You must give any other recipients of the Work or
- Derivative Works a copy of this License; and
-
- (b) You must cause any modified files to carry prominent notices
- stating that You changed the files; and
-
- (c) You must retain, in the Source form of any Derivative Works
- that You distribute, all copyright, patent, trademark, and
- attribution notices from the Source form of the Work,
- excluding those notices that do not pertain to any part of
- the Derivative Works; and
-
- (d) If the Work includes a "NOTICE" text file as part of its
- distribution, then any Derivative Works that You distribute must
- include a readable copy of the attribution notices contained
- within such NOTICE file, excluding those notices that do not
- pertain to any part of the Derivative Works, in at least one
- of the following places: within a NOTICE text file distributed
- as part of the Derivative Works; within the Source form or
- documentation, if provided along with the Derivative Works; or,
- within a display generated by the Derivative Works, if and
- wherever such third-party notices normally appear. The contents
- of the NOTICE file are for informational purposes only and
- do not modify the License. You may add Your own attribution
- notices within Derivative Works that You distribute, alongside
- or as an addendum to the NOTICE text from the Work, provided
- that such additional attribution notices cannot be construed
- as modifying the License.
-
- You may add Your own copyright statement to Your modifications and
- may provide additional or different license terms and conditions
- for use, reproduction, or distribution of Your modifications, or
- for any such Derivative Works as a whole, provided Your use,
- reproduction, and distribution of the Work otherwise complies with
- the conditions stated in this License.
-
- 5. Submission of Contributions. Unless You explicitly state otherwise,
- any Contribution intentionally submitted for inclusion in the Work
- by You to the Licensor shall be under the terms and conditions of
- this License, without any additional terms or conditions.
- Notwithstanding the above, nothing herein shall supersede or modify
- the terms of any separate license agreement you may have executed
- with Licensor regarding such Contributions.
-
- 6. Trademarks. This License does not grant permission to use the trade
- names, trademarks, service marks, or product names of the Licensor,
- except as required for reasonable and customary use in describing the
- origin of the Work and reproducing the content of the NOTICE file.
-
- 7. Disclaimer of Warranty. Unless required by applicable law or
- agreed to in writing, Licensor provides the Work (and each
- Contributor provides its Contributions) on an "AS IS" BASIS,
- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
- implied, including, without limitation, any warranties or conditions
- of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
- PARTICULAR PURPOSE. You are solely responsible for determining the
- appropriateness of using or redistributing the Work and assume any
- risks associated with Your exercise of permissions under this License.
-
- 8. Limitation of Liability. In no event and under no legal theory,
- whether in tort (including negligence), contract, or otherwise,
- unless required by applicable law (such as deliberate and grossly
- negligent acts) or agreed to in writing, shall any Contributor be
- liable to You for damages, including any direct, indirect, special,
- incidental, or consequential damages of any character arising as a
- result of this License or out of the use or inability to use the
- Work (including but not limited to damages for loss of goodwill,
- work stoppage, computer failure or malfunction, or any and all
- other commercial damages or losses), even if such Contributor
- has been advised of the possibility of such damages.
-
- 9. Accepting Warranty or Additional Liability. While redistributing
- the Work or Derivative Works thereof, You may choose to offer,
- and charge a fee for, acceptance of support, warranty, indemnity,
- or other liability obligations and/or rights consistent with this
- License. However, in accepting such obligations, You may act only
- on Your own behalf and on Your sole responsibility, not on behalf
- of any other Contributor, and only if You agree to indemnify,
- defend, and hold each Contributor harmless for any liability
- incurred by, or claims asserted against, such Contributor by reason
- of your accepting any such warranty or additional liability.
-
- END OF TERMS AND CONDITIONS
-
- APPENDIX: How to apply the Apache License to your work.
-
- To apply the Apache License to your work, attach the following
- boilerplate notice, with the fields enclosed by brackets "[]"
- replaced with your own identifying information. (Don't include
- the brackets!) The text should be enclosed in the appropriate
- comment syntax for the file format. We also recommend that a
- file or class name and description of purpose be included on the
- same "printed page" as the copyright notice for easier
- identification within third-party archives.
-
- Copyright [yyyy] [name of copyright owner]
-
- Licensed 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.
diff --git a/tags/java-M1-20060518/java/samples/sca/helloworldweb/README.txt b/tags/java-M1-20060518/java/samples/sca/helloworldweb/README.txt
deleted file mode 100644
index 9b26d1690a..0000000000
--- a/tags/java-M1-20060518/java/samples/sca/helloworldweb/README.txt
+++ /dev/null
@@ -1,35 +0,0 @@
-Apache Tuscany M1 build (May, 2006)
-===================================
-
-http://incubator.apache.org/tuscany/
-
-Tuscany is an effort undergoing incubation at the Apache Software Foundation
-(ASF), sponsored by the Web Services PMC.
-
-Incubation is required of all newly accepted projects until a further review
-indicates that the infrastructure, communications, and decision making process
-have stabilized in a manner consistent with other successful ASF projects.
-
-While incubation status is not necessarily a reflection of the completeness or
-stability of the code, it does indicate that the project has yet to be fully
-endorsed by the ASF.
-
-
-Support
--------
-
-Any problem with this release can be reported to the Tuscany mailing list
-or in the JIRA issue tracker.
-
-Mailing list subscription:
- tuscany-dev-subscribe@ws.apache.org
-
-Jira:
- http://issues.apache.org/jira/browse/Tuscany
-
-
-Thank you for using Tuscany!
-
-
-The Tuscany Team.
-
diff --git a/tags/java-M1-20060518/java/samples/sca/helloworldweb/build.xml b/tags/java-M1-20060518/java/samples/sca/helloworldweb/build.xml
deleted file mode 100644
index 077ea72dd1..0000000000
--- a/tags/java-M1-20060518/java/samples/sca/helloworldweb/build.xml
+++ /dev/null
@@ -1,52 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<!--
- * Copyright (c) 2005-2006 The Apache Software Foundation or its licensors, as applicable.
- *
- * Licensed 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 name="samples" default="compile">
- <property name="mainDir" value="../../.."/>
- <path id="javac.classpath">
- <fileset dir="${mainDir}/lib">
- <include name="tuscany-runtime-incubating-M1.jar"/>
- </fileset>
- </path>
- <path id="java.classpath">
- <fileset dir="${mainDir}/lib">
- <include name="tuscany-runtime-incubating-M1.jar"/>
- </fileset>
- <pathelement path="target/sample-helloworldweb.jar"/>
- </path>
-
- <target name="init">
- <mkdir dir="target/classes"/>
- </target>
-
- <target name="compile" depends="init">
- <javac srcdir="src/main/java" destdir="target/classes" debug="on" source="1.5" target="1.5">
- <classpath refid="javac.classpath"/>
- </javac>
- <copy todir="target/classes">
- <fileset dir="src/main/resources"/>
- </copy>
- <war destfile="target/sample-helloworldweb.war" webxml="src/main/webapp/WEB-INF/web.xml">
- <classes dir="target/classes"/>
- </war>
- </target>
-
- <target name="clean">
- <delete quiet="true" includeemptydirs="true">
- <fileset dir="target" excludes="sample-helloworldweb-incubating-M1.war"/>
- </delete>
- </target>
-</project>
diff --git a/tags/java-M1-20060518/java/samples/sca/helloworldweb/pom.xml b/tags/java-M1-20060518/java/samples/sca/helloworldweb/pom.xml
deleted file mode 100644
index fdc9629d9e..0000000000
--- a/tags/java-M1-20060518/java/samples/sca/helloworldweb/pom.xml
+++ /dev/null
@@ -1,51 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<!--
- * Copyright (c) 2005-2006 The Apache Software Foundation or its licensors, as applicable.
- *
- * Licensed 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>
- <parent>
- <groupId>org.apache.tuscany.samples.sca</groupId>
- <artifactId>tuscany-samples-sca</artifactId>
- <version>incubating-M1</version>
- </parent>
- <modelVersion>4.0.0</modelVersion>
- <artifactId>sample-helloworldweb</artifactId>
- <packaging>war</packaging>
- <name>Tuscany HelloWorld Web Application Sample</name>
- <description>A sample JSP that invokes a HelloWorld component.</description>
- <version>incubating-M1</version>
-
- <dependencies>
- <dependency>
- <groupId>org.apache.tuscany</groupId>
- <artifactId>tuscany-core</artifactId>
- <version>${pom.version}</version>
- <scope>provided</scope>
- </dependency>
- <dependency>
- <groupId>org.apache.tuscany.sca.containers</groupId>
- <artifactId>tuscany-container-java</artifactId>
- <version>${pom.version}</version>
- <scope>provided</scope>
- </dependency>
-
- <dependency>
- <groupId>junit</groupId>
- <artifactId>junit</artifactId>
- <version>3.8.1</version>
- <scope>test</scope>
- </dependency>
- </dependencies>
-</project>
diff --git a/tags/java-M1-20060518/java/samples/sca/helloworldweb/readme.htm b/tags/java-M1-20060518/java/samples/sca/helloworldweb/readme.htm
deleted file mode 100644
index 037b1d70f8..0000000000
--- a/tags/java-M1-20060518/java/samples/sca/helloworldweb/readme.htm
+++ /dev/null
@@ -1,248 +0,0 @@
-<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
-<html><head><!--
- Copyright (c) 2005 The Apache Software Foundation or its licensors, as applicable.
-
- Licensed 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.
- -->
-
-
-
-
-
- <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
-
-
-
-
-
- <meta http-equiv="Content-Style-Type" content="text/css">
-
-
-
-
-
-
-
-
-
- <title>Tuscany Hello World Web Sample</title><!-- LINK rel="stylesheet" href="ait.css" type="text/css" --><!-- maven --><style type="text/css" media="all">
-@import url("../../../../css/maven-base.css");
-@import url("../../../../css/maven-theme.css");
-@import url("../../../../css/site.css");
- </style>
-
- <link rel="stylesheet" href="./css/print.css" type="text/css" media="print"><!-- end maven --></head>
-
-<body>
-
-
-
-<h2>Tuscany Hello World Web Sample</h2>
-
-
-
-<h3>Overview</h3>
-
-
-
-<p>The Tuscany hello world web sample shows using the Tuscany SCA
- runtime in a Tomcat environment being accessed from a JSP
- page&nbsp;that
- implements the classic introductory hello world example.</p>
-<h3>Location</h3>
-This sample is located &nbsp;in the samples\sca\helloworldweb directory.
-
-
-
-<h3>Setup</h3>
-
-Set up your server as described in the <a href="../../../GettingStarted.htm" target="_blank">Tomcat Setup</a>. &nbsp;
-
-If you are not using the pre-configured Tomcat server from the binary distribution, you will need to add <span style="font-weight: bold;">sample-helloworldweb-incubating-M1.war</span> to your tomcat's webapp directory.<br>
-
-
-
-<h3>Running</h3>
-
-
-
-Once you've started your web server, use your browse to view the
-following URL: <a href="http://localhost:8080/sample-helloworldweb/" target="_blank">http://localhost:8080/sample-helloworldweb/</a>
-<br>
-
-
-
-You should see a form you can supply your name and a submit button.
-&nbsp;Once you submit the form the JSP page calls a Java class that
-gets the CurrentModuleContext and locates the SCA component to execute
-the greeting service. &nbsp;Note, unlike the a J2SE in a Tomcat environment the Tuscany runtime is automatically
-initialized and running.
-<h3>Results</h3>
-
-
-
-<p>The page should be updated with the greeting displayed below
- the form.<br>
-
-
-
-</p>
-
-
-
-<h3>Code Overview</h3>
-
-
-
-The source files are physically organized as shown below:<br>
-
-
-<table style="text-align: left; width: 100%;" border="1" cellpadding="2" cellspacing="2">
-
-
- <tbody>
-
-
- <tr>
-
-
- <td>
-
-
- <pre>src<br>+---main<br> +---java<br> &brvbar; +---helloworld<br> &brvbar; HelloWorldImpl.java<br> &brvbar; HelloWorldService.java<br> &brvbar;<br> +---resources<br> &brvbar; sca.module<br> &brvbar;<br> +---webapp<br> &brvbar; HelloWorldWeb.jsp<br> &brvbar;<br> &brvbar;<br> +---WEB-INF<br> web.xml<br><br></pre>
-
-
- </td>
-
-
- </tr>
-
-
-
-
- </tbody>
-</table>
-
-
-<br>
-
-
-<br>
-
-
-
-<p>&nbsp;</p>
-
-
-
-<table style="text-align: left; width: 100%; height: 154px;" border="0" cellpadding="2" cellspacing="2">
-
-
-
- <tbody>
-
-
-
- <tr>
-
-
-
- <td style="vertical-align: top;">sca.module</td>
-
-
-
- <td>Defines the SCA module and component. Defines for the
- HelloWorldServiceComponent component and the Java class that
- implements that component</td>
-
-
-
- </tr>
-
-
-
- <tr>
-
-
-
- <td style="vertical-align: top;">HelloWorldService.java</td>
-
-
-
- <td>Defines the Java interface implemented by the component.</td>
-
-
-
- </tr>
-
-
-
- <tr>
-
-
-
- <td style="vertical-align: top;">HelloWorldImpl.java</td>
-
-
-
- <td>Implements the SCA component. Uses the SCA service
- annotation tag on the class to show what SCA interface is being
- implemented.</td>
-
-
-
- </tr>
-
-
-
-
- <tr>
-
-
- <td>HelloWorldWeb.jsp</td>
-
-
- <td>Handles Web form input.. Obtains the module context which was defined by the
- sca.module file. From the module context locates the
- HelloWorldServiceComponent and then calls&nbsp; the getGreetings
- method to invoke the component.&nbsp;and formats &nbsp;returned&nbsp;results.</td>
-
-
- </tr>
-
-
- <tr>
-
-
- <td>web.xml</td>
-
-
- <td>Standard J2EE web application's web.xml</td>
-
-
- </tr>
-
-
-
-
-
- </tbody>
-</table>
-
-
-
-<br>
-
-
-
-</body></html>
diff --git a/tags/java-M1-20060518/java/samples/sca/helloworldweb/src/main/java/helloworld/HelloWorldImpl.java b/tags/java-M1-20060518/java/samples/sca/helloworldweb/src/main/java/helloworld/HelloWorldImpl.java
deleted file mode 100644
index bf7209e7a8..0000000000
--- a/tags/java-M1-20060518/java/samples/sca/helloworldweb/src/main/java/helloworld/HelloWorldImpl.java
+++ /dev/null
@@ -1,31 +0,0 @@
-/**
- *
- * Copyright 2005 The Apache Software Foundation or its licensors, as applicable.
- *
- * Licensed 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 helloworld;
-
-import org.osoa.sca.annotations.Service;
-
-/**
- * This class implements the HelloWorld service.
- */
-@Service(HelloWorldService.class)
-public class HelloWorldImpl implements HelloWorldService {
-
- public String getGreetings(String name) {
- return "Hello " + name;
- }
-
-}
diff --git a/tags/java-M1-20060518/java/samples/sca/helloworldweb/src/main/java/helloworld/HelloWorldService.java b/tags/java-M1-20060518/java/samples/sca/helloworldweb/src/main/java/helloworld/HelloWorldService.java
deleted file mode 100644
index 1f87f17d74..0000000000
--- a/tags/java-M1-20060518/java/samples/sca/helloworldweb/src/main/java/helloworld/HelloWorldService.java
+++ /dev/null
@@ -1,26 +0,0 @@
-/**
- *
- * Copyright 2005 The Apache Software Foundation or its licensors, as applicable.
- *
- * Licensed 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 helloworld;
-
-/**
- * This is the business interface of the HelloWorld greetings service.
- */
-public interface HelloWorldService {
-
- public String getGreetings(String name);
-
-}
diff --git a/tags/java-M1-20060518/java/samples/sca/helloworldweb/src/main/resources/sca.module b/tags/java-M1-20060518/java/samples/sca/helloworldweb/src/main/resources/sca.module
deleted file mode 100644
index ec329b8a23..0000000000
--- a/tags/java-M1-20060518/java/samples/sca/helloworldweb/src/main/resources/sca.module
+++ /dev/null
@@ -1,24 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<!--
- Copyright (c) 2005 The Apache Software Foundation or its licensors, as applicable.
-
- Licensed 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.
- -->
-<module xmlns="http://www.osoa.org/xmlns/sca/0.9" xmlns:v="http://www.osoa.org/xmlns/sca/values/0.9"
- name="helloworld">
-
- <component name="HelloWorldServiceComponent">
- <implementation.java class="helloworld.HelloWorldImpl"/>
- </component>
-
-</module>
diff --git a/tags/java-M1-20060518/java/samples/sca/helloworldweb/src/main/webapp/HelloWorldWeb.jsp b/tags/java-M1-20060518/java/samples/sca/helloworldweb/src/main/webapp/HelloWorldWeb.jsp
deleted file mode 100644
index 5ebc111dd6..0000000000
--- a/tags/java-M1-20060518/java/samples/sca/helloworldweb/src/main/webapp/HelloWorldWeb.jsp
+++ /dev/null
@@ -1,79 +0,0 @@
-<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
-<%--
- * Copyright (c) 2005 The Apache Software Foundation or its licensors, as applicable.
- *
- * Licensed 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.
- --%>
-
-<HTML>
-<HEAD>
- <%@ page language="java" contentType="text/html; charset=ISO-8859-1"
- pageEncoding="ISO-8859-1" session="true" autoFlush="true"
- isThreadSafe="true" isErrorPage="false"
- import="helloworld.HelloWorldService"
- import="java.io.PrintWriter"
- import="java.io.StringWriter"
- import="org.osoa.sca.CurrentModuleContext"
- import="org.osoa.sca.ModuleContext"
- %>
- <META http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
- <META name="GENERATOR" content="IBM Software Development Platform">
- <TITLE>Tuscany HelloWorld WEB Example</TITLE>
- <%
- String name = request.getParameter("name");
- %>
-</HEAD>
-
-<BODY>
-<H2>Tuscany HelloWorld Web Application Sample</H2>
-
-<P>&nbsp;</P>
-
-<form action="HelloWorldWeb.jsp" method="get">Name
- please:&nbsp;&nbsp;&nbsp; <INPUT type="text" id="i1" name="name"
- size="40" maxlength="220"
- value="<%= null == name ? "World" : name %>"> <BR>
- <BR>
- <INPUT type="submit" name="submit" value="Submit"></FORM>
-<BR>
-
-<%
- try {
- if (null != name) {
- ModuleContext moduleContext = CurrentModuleContext.getContext();
- HelloWorldService helloworldService = (HelloWorldService) moduleContext.locateService("HelloWorldServiceComponent");
- String value = helloworldService.getGreetings(name);
-%>
-<HR>
-
-<P><%=value%>
- <%}
-}catch(Exception e){
- e.printStackTrace();
- StringWriter sw= new StringWriter();
- PrintWriter pw= new PrintWriter(sw);
-
- e.printStackTrace(pw);
- pw.flush();
-
-%>
- Whoops!<BR clear="all">
-<PRE>
- Exception &quot;<%=e.getClass().getName()%>&quot; Exception message: &quot;<%=e.getMessage()%>&quot;<BR clear="all">
- <%=sw.toString() %>
-</PRE>
-<%
-
- }%>
-</BODY>
-</HTML> \ No newline at end of file
diff --git a/tags/java-M1-20060518/java/samples/sca/helloworldweb/src/main/webapp/WEB-INF/web.xml b/tags/java-M1-20060518/java/samples/sca/helloworldweb/src/main/webapp/WEB-INF/web.xml
deleted file mode 100644
index e79a53705f..0000000000
--- a/tags/java-M1-20060518/java/samples/sca/helloworldweb/src/main/webapp/WEB-INF/web.xml
+++ /dev/null
@@ -1,27 +0,0 @@
-<?xml version="1.0" encoding="ISO-8859-1"?>
-<!--
- Copyright (c) 2005 The Apache Software Foundation or its licensors, as applicable.
-
- Licensed 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.
- -->
-<!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>Tuscany HelloWorld Web Application Sample</display-name>
-
- <welcome-file-list id="WelcomeFileList">
- <welcome-file>HelloWorldWeb.jsp</welcome-file>
- </welcome-file-list>
-
-</web-app>
diff --git a/tags/java-M1-20060518/java/samples/sca/helloworldweb/src/test/java/helloworld/HelloWorldTestCase.java b/tags/java-M1-20060518/java/samples/sca/helloworldweb/src/test/java/helloworld/HelloWorldTestCase.java
deleted file mode 100644
index b74323fe2a..0000000000
--- a/tags/java-M1-20060518/java/samples/sca/helloworldweb/src/test/java/helloworld/HelloWorldTestCase.java
+++ /dev/null
@@ -1,64 +0,0 @@
-/**
- *
- * Copyright 2005 The Apache Software Foundation or its licensors, as applicable.
- *
- * Licensed 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 helloworld;
-
-import helloworld.HelloWorldService;
-import junit.framework.TestCase;
-
-import org.apache.tuscany.core.client.TuscanyRuntime;
-import org.osoa.sca.CurrentModuleContext;
-import org.osoa.sca.ModuleContext;
-
-/**
- * This shows how to test the HelloWorld service component.
- */
-public class HelloWorldTestCase extends TestCase {
-
- private TuscanyRuntime tuscany;
-
- protected void setUp() throws Exception {
- super.setUp();
-
- // Create a Tuscany runtime for the sample module component
- tuscany = new TuscanyRuntime("HelloWorldModuleComponent", null);
-
- // Start the Tuscany runtime and associate it with this thread
- tuscany.start();
- }
-
- public void testGeetings() throws Exception {
-
- // Get the SCA module context.
- ModuleContext moduleContext = CurrentModuleContext.getContext();
-
- // Locate the HelloWorld service
- HelloWorldService helloworldService = (HelloWorldService) moduleContext.locateService("HelloWorldServiceComponent");
-
- // Invoke the HelloWorld service
- String value = helloworldService.getGreetings("World");
-
- assertEquals(value, "Hello World");
- }
-
- protected void tearDown() throws Exception {
-
- // Stop the Tuscany runtime
- tuscany.stop();
-
- super.tearDown();
- }
-}
diff --git a/tags/java-M1-20060518/java/samples/sca/helloworldws-celtix/LICENSE.txt b/tags/java-M1-20060518/java/samples/sca/helloworldws-celtix/LICENSE.txt
deleted file mode 100644
index d645695673..0000000000
--- a/tags/java-M1-20060518/java/samples/sca/helloworldws-celtix/LICENSE.txt
+++ /dev/null
@@ -1,202 +0,0 @@
-
- Apache License
- Version 2.0, January 2004
- http://www.apache.org/licenses/
-
- TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
-
- 1. Definitions.
-
- "License" shall mean the terms and conditions for use, reproduction,
- and distribution as defined by Sections 1 through 9 of this document.
-
- "Licensor" shall mean the copyright owner or entity authorized by
- the copyright owner that is granting the License.
-
- "Legal Entity" shall mean the union of the acting entity and all
- other entities that control, are controlled by, or are under common
- control with that entity. For the purposes of this definition,
- "control" means (i) the power, direct or indirect, to cause the
- direction or management of such entity, whether by contract or
- otherwise, or (ii) ownership of fifty percent (50%) or more of the
- outstanding shares, or (iii) beneficial ownership of such entity.
-
- "You" (or "Your") shall mean an individual or Legal Entity
- exercising permissions granted by this License.
-
- "Source" form shall mean the preferred form for making modifications,
- including but not limited to software source code, documentation
- source, and configuration files.
-
- "Object" form shall mean any form resulting from mechanical
- transformation or translation of a Source form, including but
- not limited to compiled object code, generated documentation,
- and conversions to other media types.
-
- "Work" shall mean the work of authorship, whether in Source or
- Object form, made available under the License, as indicated by a
- copyright notice that is included in or attached to the work
- (an example is provided in the Appendix below).
-
- "Derivative Works" shall mean any work, whether in Source or Object
- form, that is based on (or derived from) the Work and for which the
- editorial revisions, annotations, elaborations, or other modifications
- represent, as a whole, an original work of authorship. For the purposes
- of this License, Derivative Works shall not include works that remain
- separable from, or merely link (or bind by name) to the interfaces of,
- the Work and Derivative Works thereof.
-
- "Contribution" shall mean any work of authorship, including
- the original version of the Work and any modifications or additions
- to that Work or Derivative Works thereof, that is intentionally
- submitted to Licensor for inclusion in the Work by the copyright owner
- or by an individual or Legal Entity authorized to submit on behalf of
- the copyright owner. For the purposes of this definition, "submitted"
- means any form of electronic, verbal, or written communication sent
- to the Licensor or its representatives, including but not limited to
- communication on electronic mailing lists, source code control systems,
- and issue tracking systems that are managed by, or on behalf of, the
- Licensor for the purpose of discussing and improving the Work, but
- excluding communication that is conspicuously marked or otherwise
- designated in writing by the copyright owner as "Not a Contribution."
-
- "Contributor" shall mean Licensor and any individual or Legal Entity
- on behalf of whom a Contribution has been received by Licensor and
- subsequently incorporated within the Work.
-
- 2. Grant of Copyright License. Subject to the terms and conditions of
- this License, each Contributor hereby grants to You a perpetual,
- worldwide, non-exclusive, no-charge, royalty-free, irrevocable
- copyright license to reproduce, prepare Derivative Works of,
- publicly display, publicly perform, sublicense, and distribute the
- Work and such Derivative Works in Source or Object form.
-
- 3. Grant of Patent License. Subject to the terms and conditions of
- this License, each Contributor hereby grants to You a perpetual,
- worldwide, non-exclusive, no-charge, royalty-free, irrevocable
- (except as stated in this section) patent license to make, have made,
- use, offer to sell, sell, import, and otherwise transfer the Work,
- where such license applies only to those patent claims licensable
- by such Contributor that are necessarily infringed by their
- Contribution(s) alone or by combination of their Contribution(s)
- with the Work to which such Contribution(s) was submitted. If You
- institute patent litigation against any entity (including a
- cross-claim or counterclaim in a lawsuit) alleging that the Work
- or a Contribution incorporated within the Work constitutes direct
- or contributory patent infringement, then any patent licenses
- granted to You under this License for that Work shall terminate
- as of the date such litigation is filed.
-
- 4. Redistribution. You may reproduce and distribute copies of the
- Work or Derivative Works thereof in any medium, with or without
- modifications, and in Source or Object form, provided that You
- meet the following conditions:
-
- (a) You must give any other recipients of the Work or
- Derivative Works a copy of this License; and
-
- (b) You must cause any modified files to carry prominent notices
- stating that You changed the files; and
-
- (c) You must retain, in the Source form of any Derivative Works
- that You distribute, all copyright, patent, trademark, and
- attribution notices from the Source form of the Work,
- excluding those notices that do not pertain to any part of
- the Derivative Works; and
-
- (d) If the Work includes a "NOTICE" text file as part of its
- distribution, then any Derivative Works that You distribute must
- include a readable copy of the attribution notices contained
- within such NOTICE file, excluding those notices that do not
- pertain to any part of the Derivative Works, in at least one
- of the following places: within a NOTICE text file distributed
- as part of the Derivative Works; within the Source form or
- documentation, if provided along with the Derivative Works; or,
- within a display generated by the Derivative Works, if and
- wherever such third-party notices normally appear. The contents
- of the NOTICE file are for informational purposes only and
- do not modify the License. You may add Your own attribution
- notices within Derivative Works that You distribute, alongside
- or as an addendum to the NOTICE text from the Work, provided
- that such additional attribution notices cannot be construed
- as modifying the License.
-
- You may add Your own copyright statement to Your modifications and
- may provide additional or different license terms and conditions
- for use, reproduction, or distribution of Your modifications, or
- for any such Derivative Works as a whole, provided Your use,
- reproduction, and distribution of the Work otherwise complies with
- the conditions stated in this License.
-
- 5. Submission of Contributions. Unless You explicitly state otherwise,
- any Contribution intentionally submitted for inclusion in the Work
- by You to the Licensor shall be under the terms and conditions of
- this License, without any additional terms or conditions.
- Notwithstanding the above, nothing herein shall supersede or modify
- the terms of any separate license agreement you may have executed
- with Licensor regarding such Contributions.
-
- 6. Trademarks. This License does not grant permission to use the trade
- names, trademarks, service marks, or product names of the Licensor,
- except as required for reasonable and customary use in describing the
- origin of the Work and reproducing the content of the NOTICE file.
-
- 7. Disclaimer of Warranty. Unless required by applicable law or
- agreed to in writing, Licensor provides the Work (and each
- Contributor provides its Contributions) on an "AS IS" BASIS,
- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
- implied, including, without limitation, any warranties or conditions
- of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
- PARTICULAR PURPOSE. You are solely responsible for determining the
- appropriateness of using or redistributing the Work and assume any
- risks associated with Your exercise of permissions under this License.
-
- 8. Limitation of Liability. In no event and under no legal theory,
- whether in tort (including negligence), contract, or otherwise,
- unless required by applicable law (such as deliberate and grossly
- negligent acts) or agreed to in writing, shall any Contributor be
- liable to You for damages, including any direct, indirect, special,
- incidental, or consequential damages of any character arising as a
- result of this License or out of the use or inability to use the
- Work (including but not limited to damages for loss of goodwill,
- work stoppage, computer failure or malfunction, or any and all
- other commercial damages or losses), even if such Contributor
- has been advised of the possibility of such damages.
-
- 9. Accepting Warranty or Additional Liability. While redistributing
- the Work or Derivative Works thereof, You may choose to offer,
- and charge a fee for, acceptance of support, warranty, indemnity,
- or other liability obligations and/or rights consistent with this
- License. However, in accepting such obligations, You may act only
- on Your own behalf and on Your sole responsibility, not on behalf
- of any other Contributor, and only if You agree to indemnify,
- defend, and hold each Contributor harmless for any liability
- incurred by, or claims asserted against, such Contributor by reason
- of your accepting any such warranty or additional liability.
-
- END OF TERMS AND CONDITIONS
-
- APPENDIX: How to apply the Apache License to your work.
-
- To apply the Apache License to your work, attach the following
- boilerplate notice, with the fields enclosed by brackets "[]"
- replaced with your own identifying information. (Don't include
- the brackets!) The text should be enclosed in the appropriate
- comment syntax for the file format. We also recommend that a
- file or class name and description of purpose be included on the
- same "printed page" as the copyright notice for easier
- identification within third-party archives.
-
- Copyright [yyyy] [name of copyright owner]
-
- Licensed 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.
diff --git a/tags/java-M1-20060518/java/samples/sca/helloworldws-celtix/README.txt b/tags/java-M1-20060518/java/samples/sca/helloworldws-celtix/README.txt
deleted file mode 100644
index 9b26d1690a..0000000000
--- a/tags/java-M1-20060518/java/samples/sca/helloworldws-celtix/README.txt
+++ /dev/null
@@ -1,35 +0,0 @@
-Apache Tuscany M1 build (May, 2006)
-===================================
-
-http://incubator.apache.org/tuscany/
-
-Tuscany is an effort undergoing incubation at the Apache Software Foundation
-(ASF), sponsored by the Web Services PMC.
-
-Incubation is required of all newly accepted projects until a further review
-indicates that the infrastructure, communications, and decision making process
-have stabilized in a manner consistent with other successful ASF projects.
-
-While incubation status is not necessarily a reflection of the completeness or
-stability of the code, it does indicate that the project has yet to be fully
-endorsed by the ASF.
-
-
-Support
--------
-
-Any problem with this release can be reported to the Tuscany mailing list
-or in the JIRA issue tracker.
-
-Mailing list subscription:
- tuscany-dev-subscribe@ws.apache.org
-
-Jira:
- http://issues.apache.org/jira/browse/Tuscany
-
-
-Thank you for using Tuscany!
-
-
-The Tuscany Team.
-
diff --git a/tags/java-M1-20060518/java/samples/sca/helloworldws-celtix/build.xml b/tags/java-M1-20060518/java/samples/sca/helloworldws-celtix/build.xml
deleted file mode 100644
index 6cdc29cf7d..0000000000
--- a/tags/java-M1-20060518/java/samples/sca/helloworldws-celtix/build.xml
+++ /dev/null
@@ -1,58 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<!--
- * Copyright (c) 2005-2006 The Apache Software Foundation or its licensors, as applicable.
- *
- * Licensed 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 name="samples" default="compile">
- <property name="mainDir" value="../../.."/>
- <path id="javac.classpath">
- <fileset dir="${mainDir}/lib">
- <include name="tuscany-runtime-incubating-M1.jar"/>
- </fileset>
- <fileset dir="${mainDir}/lib/celtix">
- <include name="tuscany-celtix-incubating-M1.jar"/>
- </fileset>
- </path>
- <path id="java.classpath">
- <fileset dir="${mainDir}/lib">
- <include name="tuscany-runtime-incubating-M1.jar"/>
- </fileset>
- <fileset dir="${mainDir}/lib/celtix">
- <include name="tuscany-celtix-incubating-M1.jar"/>
- </fileset>
- <pathelement path="target/sample-helloworldws-celtix.jar"/>
- </path>
-
- <target name="init">
- <mkdir dir="target/classes"/>
- </target>
-
- <target name="compile" depends="init">
- <javac srcdir="src/main/java" destdir="target/classes" debug="on" source="1.5" target="1.5">
- <classpath refid="javac.classpath"/>
- </javac>
- <copy todir="target/classes">
- <fileset dir="src/main/resources"/>
- </copy>
- <jar destfile="target/sample-helloworldws-celtix.jar">
- <fileset dir="target/classes"/>
- </jar>
- </target>
-
- <target name="clean">
- <delete quiet="true" includeemptydirs="true">
- <fileset dir="target" excludes="sample-helloworldws-celtix-incubating-M1.jar"/>
- </delete>
- </target>
-</project>
diff --git a/tags/java-M1-20060518/java/samples/sca/helloworldws-celtix/pom.xml b/tags/java-M1-20060518/java/samples/sca/helloworldws-celtix/pom.xml
deleted file mode 100644
index b16d3b17c8..0000000000
--- a/tags/java-M1-20060518/java/samples/sca/helloworldws-celtix/pom.xml
+++ /dev/null
@@ -1,53 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<!--
- * Copyright (c) 2005-2006 The Apache Software Foundation or its licensors, as applicable.
- *
- * Licensed 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>
- <parent>
- <groupId>org.apache.tuscany.samples.sca</groupId>
- <artifactId>tuscany-samples-sca</artifactId>
- <version>incubating-M1</version>
- </parent>
-
- <modelVersion>4.0.0</modelVersion>
- <artifactId>sample-helloworldws-celtix</artifactId>
- <packaging>jar</packaging>
- <name>Tuscany HelloWorld Celtix Web Service Sample</name>
- <description>A sample HelloWorld Web Service.</description>
- <version>incubating-M1</version>
-
- <dependencies>
- <dependency>
- <groupId>org.apache.tuscany</groupId>
- <artifactId>tuscany-core</artifactId>
- <version>${pom.version}</version>
- <scope>provided</scope>
- </dependency>
- <dependency>
- <groupId>org.apache.tuscany.sca.containers</groupId>
- <artifactId>tuscany-container-java</artifactId>
- <version>${pom.version}</version>
- <scope>provided</scope>
- </dependency>
- <dependency>
- <groupId>org.apache.tuscany.sca.bindings</groupId>
- <artifactId>tuscany-binding-celtix</artifactId>
- <version>${pom.version}</version>
- <scope>provided</scope>
- </dependency>
-
-
- </dependencies>
-</project>
diff --git a/tags/java-M1-20060518/java/samples/sca/helloworldws-celtix/readme.htm b/tags/java-M1-20060518/java/samples/sca/helloworldws-celtix/readme.htm
deleted file mode 100644
index 9b6b360892..0000000000
--- a/tags/java-M1-20060518/java/samples/sca/helloworldws-celtix/readme.htm
+++ /dev/null
@@ -1,92 +0,0 @@
-<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
-<html>
-<head>
- <!-- Copyright (c) 2005 The Apache Software Foundation or its licensors, as applicable. Licensed 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. -->
- <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
- <meta http-equiv="Content-Style-Type" content="text/css">
- <title>Tuscany Hello World Celtix Web Service Sample</title><!-- LINK rel="stylesheet" href="ait.css" type="text/css" --><!-- maven -->
- <style type="text/css" media="all">
- @import url("../../../../css/maven-base.css");
- @import url("../../../../css/maven-theme.css");
- @import url("../../../../css/site.css");
- </style>
- <link rel="stylesheet" href="./css/print.css" type="text/css" media="print">
- <!-- end maven -->
-</head>
- <body>
- <h2>Tuscany Hello World Celtix Web service Sample</h2> <h3>Overview</h3>
- <p>
- The Tuscany hello world Celtix Web service sample shows using the Tuscany SCA runtime as a standalone web service.
- </p>
- <h3>Location</h3> This sample is located &nbsp;in the samples\sca\helloworldws-celtix
- directory.<br>
-
-
- <h3>Setup</h3>This sample depends on the Tuscany runtime, Celtix, and the sample jar,
-
- <span style="font-weight: bold;">
- sample-helloworldws-celtix-incubating-M1.jar
- </span>
-
-, all of these must be available on the classpath to run the sample.
-
-<h3>Running</h3>
-
- In the directory samples/sca/helloworldws-celtix use the JDK 1.5 java command to run the class helloworld.HelloWorldServer
-
- <pre>Linux: java -cp ../../../lib/tuscany-runtime-incubating-M1.jar:../../../lib/celtix/tuscany-celtix-incubating-M1.jar:target/sample-helloworldws-celtix-incubating-M1.jar helloworld.HelloWorldServer</pre>
- <pre>Windows: java -cp ../../../lib/tuscany-runtime-incubating-M1.jar;../../../lib/celtix/tuscany-celtix-incubating-M1.jar;target/sample-helloworldws-celtix-incubating-M1.jar helloworld.HelloWorldServer</pre>
-
- <h3>Code Overview</h3> The source files are physically organized as shown below:<br>
- <table style="text-align: left; width: 100%;" border="1" cellpadding="2" cellspacing="2">
- <tbody>
- <tr>
- <td>
- <pre>
- +---main
- +---java
- &brvbar; +---helloworld
- &brvbar; HelloWorldServer.java
- &brvbar; HelloWorldImpl.java
- &brvbar; HelloWorldService.java
- +---resources
- &brvbar; sca.module
- +---wsdl
- helloworld.wsdl
- </pre>
- </td>
- </tr>
- </tbody>
- </table>
- <br>
- <br>
- <table style="text-align: left; width: 100%; height: 154px;" border="0" cellpadding="2" cellspacing="2">
- <tbody>
- <tr>
- <td>HelloWorldServer.java</td>
- <td>Main method to startup the Tuscany runtime which will startup the services defined in sca.module</td>
- </tr>
- <tr>
- <td style="vertical-align: top;">HelloWorldService.java</td>
- <td>Defines the Java interface implemented by the component.</td>
- </tr>
- <tr>
- <td style="vertical-align: top;">HelloWorldImpl.java</td>
- <td>Implements the SCA component. Uses the SCA service annotation
- tag on the class to show what SCA interface is being implemented.</td>
- </tr>
- <tr>
- <td style="vertical-align: top; height: 62px;">sca.module</td>
- <td style="height: 62px;">Defines the SCA module, entryPoint and component.
- Defines for the HelloWorldServiceComponent component and the Java class that
- implements the component For the entryPoint it defines WSDL for the service, the
- Java interface provided by the service, and wires the service to the&nbsp;HelloWorldServiceComponent</td>
- </tr>
- <tr>
- <td>helloworld.wsdl</td>
- <td>WSDL for the service.</td>
- </tr>
- </tbody>
- </table>
- </body>
-</html> \ No newline at end of file
diff --git a/tags/java-M1-20060518/java/samples/sca/helloworldws-celtix/src/main/java/helloworld/HelloWorldImpl.java b/tags/java-M1-20060518/java/samples/sca/helloworldws-celtix/src/main/java/helloworld/HelloWorldImpl.java
deleted file mode 100644
index bf7209e7a8..0000000000
--- a/tags/java-M1-20060518/java/samples/sca/helloworldws-celtix/src/main/java/helloworld/HelloWorldImpl.java
+++ /dev/null
@@ -1,31 +0,0 @@
-/**
- *
- * Copyright 2005 The Apache Software Foundation or its licensors, as applicable.
- *
- * Licensed 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 helloworld;
-
-import org.osoa.sca.annotations.Service;
-
-/**
- * This class implements the HelloWorld service.
- */
-@Service(HelloWorldService.class)
-public class HelloWorldImpl implements HelloWorldService {
-
- public String getGreetings(String name) {
- return "Hello " + name;
- }
-
-}
diff --git a/tags/java-M1-20060518/java/samples/sca/helloworldws-celtix/src/main/java/helloworld/HelloWorldServer.java b/tags/java-M1-20060518/java/samples/sca/helloworldws-celtix/src/main/java/helloworld/HelloWorldServer.java
deleted file mode 100644
index e6290b3f37..0000000000
--- a/tags/java-M1-20060518/java/samples/sca/helloworldws-celtix/src/main/java/helloworld/HelloWorldServer.java
+++ /dev/null
@@ -1,49 +0,0 @@
-/**
- * Copyright 2005 The Apache Software Foundation or its licensors, as applicable.
- *
- * Licensed 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 helloworld;
-
-import org.apache.tuscany.core.client.TuscanyRuntime;
-import org.osoa.sca.CurrentModuleContext;
-import org.osoa.sca.ModuleContext;
-
-/**
- * This client program shows how to create an SCA runtime, start it,
- * locate the HelloWorld service and invoke it.
- */
-public class HelloWorldServer {
-
- public static final void main(String[] args) throws Exception {
-
- // Create a Tuscany runtime for the sample module component
- TuscanyRuntime tuscany = new TuscanyRuntime("HelloWorldModuleComponent", "http://helloworld");
-
- // Start the Tuscany runtime and associate it with this thread
- tuscany.start();
-
-
- System.out.println("Hit ENTER to exit");
- System.in.read();
-
- // Disassociate the runtime from this thread
- tuscany.stop();
-
- // Shut down the runtime
- tuscany.shutdown();
-
- System.exit(0);
- }
-}
-
diff --git a/tags/java-M1-20060518/java/samples/sca/helloworldws-celtix/src/main/java/helloworld/HelloWorldService.java b/tags/java-M1-20060518/java/samples/sca/helloworldws-celtix/src/main/java/helloworld/HelloWorldService.java
deleted file mode 100644
index 1f87f17d74..0000000000
--- a/tags/java-M1-20060518/java/samples/sca/helloworldws-celtix/src/main/java/helloworld/HelloWorldService.java
+++ /dev/null
@@ -1,26 +0,0 @@
-/**
- *
- * Copyright 2005 The Apache Software Foundation or its licensors, as applicable.
- *
- * Licensed 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 helloworld;
-
-/**
- * This is the business interface of the HelloWorld greetings service.
- */
-public interface HelloWorldService {
-
- public String getGreetings(String name);
-
-}
diff --git a/tags/java-M1-20060518/java/samples/sca/helloworldws-celtix/src/main/resources/sca.module b/tags/java-M1-20060518/java/samples/sca/helloworldws-celtix/src/main/resources/sca.module
deleted file mode 100644
index e16c62129a..0000000000
--- a/tags/java-M1-20060518/java/samples/sca/helloworldws-celtix/src/main/resources/sca.module
+++ /dev/null
@@ -1,33 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<!--
- Copyright (c) 2005 The Apache Software Foundation or its licensors, as applicable.
-
- Licensed 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.
- -->
-<module xmlns="http://www.osoa.org/xmlns/sca/0.9" xmlns:v="http://www.osoa.org/xmlns/sca/values/0.9"
- name="helloworld">
-
- <import.sdo wsdlLocation="wsdl/helloworld.wsdl"/>
- <import.wsdl location="wsdl/helloworld.wsdl" namespace="http://helloworld"/>
-
- <entryPoint name="HelloWorldService">
- <interface.wsdl interface="http://helloworld#wsdl.interface(HelloWorld)"/>
- <binding.ws port="http://helloworld#wsdl.endpoint(HelloWorldService/HelloWorldSoapPort)"/>
- <reference>HelloWorldServiceComponent/HelloWorldService</reference>
- </entryPoint>
-
- <component name="HelloWorldServiceComponent">
- <implementation.java class="helloworld.HelloWorldImpl"/>
- </component>
-
-</module>
diff --git a/tags/java-M1-20060518/java/samples/sca/helloworldws-celtix/src/main/resources/wsdl/helloworld.wsdl b/tags/java-M1-20060518/java/samples/sca/helloworldws-celtix/src/main/resources/wsdl/helloworld.wsdl
deleted file mode 100644
index 5e89bb071d..0000000000
--- a/tags/java-M1-20060518/java/samples/sca/helloworldws-celtix/src/main/resources/wsdl/helloworld.wsdl
+++ /dev/null
@@ -1,75 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<!--
- Copyright (c) 2005 The Apache Software Foundation or its licensors, as applicable.
-
- Licensed 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.
- -->
-<wsdl:definitions targetNamespace="http://helloworld" xmlns:tns="http://helloworld" xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/" xmlns:wsdlsoap="http://schemas.xmlsoap.org/wsdl/soap/" xmlns:xsd="http://www.w3.org/2001/XMLSchema"
- name="helloworld">
-
- <wsdl:types>
- <schema elementFormDefault="qualified" targetNamespace="http://helloworld" xmlns="http://www.w3.org/2001/XMLSchema">
-
- <element name="getGreetings">
- <complexType>
- <sequence>
- <element name="name" type="xsd:string"/>
- </sequence>
- </complexType>
- </element>
-
- <element name="getGreetingsResponse">
- <complexType>
- <sequence>
- <element name="getGreetingsReturn" type="xsd:string"/>
- </sequence>
- </complexType>
- </element>
- </schema>
- </wsdl:types>
-
- <wsdl:message name="getGreetingsRequest">
- <wsdl:part element="tns:getGreetings" name="parameters"/>
- </wsdl:message>
-
- <wsdl:message name="getGreetingsResponse">
- <wsdl:part element="tns:getGreetingsResponse" name="parameters"/>
- </wsdl:message>
-
- <wsdl:portType name="HelloWorld">
- <wsdl:operation name="getGreetings">
- <wsdl:input message="tns:getGreetingsRequest" name="getGreetingsRequest"/>
- <wsdl:output message="tns:getGreetingsResponse" name="getGreetingsResponse"/>
- </wsdl:operation>
- </wsdl:portType>
-
- <wsdl:binding name="HelloWorldSoapBinding" type="tns:HelloWorld">
- <wsdlsoap:binding style="document" transport="http://schemas.xmlsoap.org/soap/http"/>
- <wsdl:operation name="getGreetings">
- <wsdlsoap:operation soapAction=""/>
- <wsdl:input name="getGreetingsRequest">
- <wsdlsoap:body use="literal"/>
- </wsdl:input>
- <wsdl:output name="getGreetingsResponse">
- <wsdlsoap:body use="literal"/>
- </wsdl:output>
- </wsdl:operation>
- </wsdl:binding>
-
- <wsdl:service name="HelloWorldService">
- <wsdl:port binding="tns:HelloWorldSoapBinding" name="HelloWorldSoapPort">
- <wsdlsoap:address location="http://localhost:8080/sample-helloworldws/services/HelloWorldWebService"/>
- </wsdl:port>
- </wsdl:service>
-
-</wsdl:definitions>
diff --git a/tags/java-M1-20060518/java/samples/sca/helloworldws/LICENSE.txt b/tags/java-M1-20060518/java/samples/sca/helloworldws/LICENSE.txt
deleted file mode 100644
index d645695673..0000000000
--- a/tags/java-M1-20060518/java/samples/sca/helloworldws/LICENSE.txt
+++ /dev/null
@@ -1,202 +0,0 @@
-
- Apache License
- Version 2.0, January 2004
- http://www.apache.org/licenses/
-
- TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
-
- 1. Definitions.
-
- "License" shall mean the terms and conditions for use, reproduction,
- and distribution as defined by Sections 1 through 9 of this document.
-
- "Licensor" shall mean the copyright owner or entity authorized by
- the copyright owner that is granting the License.
-
- "Legal Entity" shall mean the union of the acting entity and all
- other entities that control, are controlled by, or are under common
- control with that entity. For the purposes of this definition,
- "control" means (i) the power, direct or indirect, to cause the
- direction or management of such entity, whether by contract or
- otherwise, or (ii) ownership of fifty percent (50%) or more of the
- outstanding shares, or (iii) beneficial ownership of such entity.
-
- "You" (or "Your") shall mean an individual or Legal Entity
- exercising permissions granted by this License.
-
- "Source" form shall mean the preferred form for making modifications,
- including but not limited to software source code, documentation
- source, and configuration files.
-
- "Object" form shall mean any form resulting from mechanical
- transformation or translation of a Source form, including but
- not limited to compiled object code, generated documentation,
- and conversions to other media types.
-
- "Work" shall mean the work of authorship, whether in Source or
- Object form, made available under the License, as indicated by a
- copyright notice that is included in or attached to the work
- (an example is provided in the Appendix below).
-
- "Derivative Works" shall mean any work, whether in Source or Object
- form, that is based on (or derived from) the Work and for which the
- editorial revisions, annotations, elaborations, or other modifications
- represent, as a whole, an original work of authorship. For the purposes
- of this License, Derivative Works shall not include works that remain
- separable from, or merely link (or bind by name) to the interfaces of,
- the Work and Derivative Works thereof.
-
- "Contribution" shall mean any work of authorship, including
- the original version of the Work and any modifications or additions
- to that Work or Derivative Works thereof, that is intentionally
- submitted to Licensor for inclusion in the Work by the copyright owner
- or by an individual or Legal Entity authorized to submit on behalf of
- the copyright owner. For the purposes of this definition, "submitted"
- means any form of electronic, verbal, or written communication sent
- to the Licensor or its representatives, including but not limited to
- communication on electronic mailing lists, source code control systems,
- and issue tracking systems that are managed by, or on behalf of, the
- Licensor for the purpose of discussing and improving the Work, but
- excluding communication that is conspicuously marked or otherwise
- designated in writing by the copyright owner as "Not a Contribution."
-
- "Contributor" shall mean Licensor and any individual or Legal Entity
- on behalf of whom a Contribution has been received by Licensor and
- subsequently incorporated within the Work.
-
- 2. Grant of Copyright License. Subject to the terms and conditions of
- this License, each Contributor hereby grants to You a perpetual,
- worldwide, non-exclusive, no-charge, royalty-free, irrevocable
- copyright license to reproduce, prepare Derivative Works of,
- publicly display, publicly perform, sublicense, and distribute the
- Work and such Derivative Works in Source or Object form.
-
- 3. Grant of Patent License. Subject to the terms and conditions of
- this License, each Contributor hereby grants to You a perpetual,
- worldwide, non-exclusive, no-charge, royalty-free, irrevocable
- (except as stated in this section) patent license to make, have made,
- use, offer to sell, sell, import, and otherwise transfer the Work,
- where such license applies only to those patent claims licensable
- by such Contributor that are necessarily infringed by their
- Contribution(s) alone or by combination of their Contribution(s)
- with the Work to which such Contribution(s) was submitted. If You
- institute patent litigation against any entity (including a
- cross-claim or counterclaim in a lawsuit) alleging that the Work
- or a Contribution incorporated within the Work constitutes direct
- or contributory patent infringement, then any patent licenses
- granted to You under this License for that Work shall terminate
- as of the date such litigation is filed.
-
- 4. Redistribution. You may reproduce and distribute copies of the
- Work or Derivative Works thereof in any medium, with or without
- modifications, and in Source or Object form, provided that You
- meet the following conditions:
-
- (a) You must give any other recipients of the Work or
- Derivative Works a copy of this License; and
-
- (b) You must cause any modified files to carry prominent notices
- stating that You changed the files; and
-
- (c) You must retain, in the Source form of any Derivative Works
- that You distribute, all copyright, patent, trademark, and
- attribution notices from the Source form of the Work,
- excluding those notices that do not pertain to any part of
- the Derivative Works; and
-
- (d) If the Work includes a "NOTICE" text file as part of its
- distribution, then any Derivative Works that You distribute must
- include a readable copy of the attribution notices contained
- within such NOTICE file, excluding those notices that do not
- pertain to any part of the Derivative Works, in at least one
- of the following places: within a NOTICE text file distributed
- as part of the Derivative Works; within the Source form or
- documentation, if provided along with the Derivative Works; or,
- within a display generated by the Derivative Works, if and
- wherever such third-party notices normally appear. The contents
- of the NOTICE file are for informational purposes only and
- do not modify the License. You may add Your own attribution
- notices within Derivative Works that You distribute, alongside
- or as an addendum to the NOTICE text from the Work, provided
- that such additional attribution notices cannot be construed
- as modifying the License.
-
- You may add Your own copyright statement to Your modifications and
- may provide additional or different license terms and conditions
- for use, reproduction, or distribution of Your modifications, or
- for any such Derivative Works as a whole, provided Your use,
- reproduction, and distribution of the Work otherwise complies with
- the conditions stated in this License.
-
- 5. Submission of Contributions. Unless You explicitly state otherwise,
- any Contribution intentionally submitted for inclusion in the Work
- by You to the Licensor shall be under the terms and conditions of
- this License, without any additional terms or conditions.
- Notwithstanding the above, nothing herein shall supersede or modify
- the terms of any separate license agreement you may have executed
- with Licensor regarding such Contributions.
-
- 6. Trademarks. This License does not grant permission to use the trade
- names, trademarks, service marks, or product names of the Licensor,
- except as required for reasonable and customary use in describing the
- origin of the Work and reproducing the content of the NOTICE file.
-
- 7. Disclaimer of Warranty. Unless required by applicable law or
- agreed to in writing, Licensor provides the Work (and each
- Contributor provides its Contributions) on an "AS IS" BASIS,
- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
- implied, including, without limitation, any warranties or conditions
- of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
- PARTICULAR PURPOSE. You are solely responsible for determining the
- appropriateness of using or redistributing the Work and assume any
- risks associated with Your exercise of permissions under this License.
-
- 8. Limitation of Liability. In no event and under no legal theory,
- whether in tort (including negligence), contract, or otherwise,
- unless required by applicable law (such as deliberate and grossly
- negligent acts) or agreed to in writing, shall any Contributor be
- liable to You for damages, including any direct, indirect, special,
- incidental, or consequential damages of any character arising as a
- result of this License or out of the use or inability to use the
- Work (including but not limited to damages for loss of goodwill,
- work stoppage, computer failure or malfunction, or any and all
- other commercial damages or losses), even if such Contributor
- has been advised of the possibility of such damages.
-
- 9. Accepting Warranty or Additional Liability. While redistributing
- the Work or Derivative Works thereof, You may choose to offer,
- and charge a fee for, acceptance of support, warranty, indemnity,
- or other liability obligations and/or rights consistent with this
- License. However, in accepting such obligations, You may act only
- on Your own behalf and on Your sole responsibility, not on behalf
- of any other Contributor, and only if You agree to indemnify,
- defend, and hold each Contributor harmless for any liability
- incurred by, or claims asserted against, such Contributor by reason
- of your accepting any such warranty or additional liability.
-
- END OF TERMS AND CONDITIONS
-
- APPENDIX: How to apply the Apache License to your work.
-
- To apply the Apache License to your work, attach the following
- boilerplate notice, with the fields enclosed by brackets "[]"
- replaced with your own identifying information. (Don't include
- the brackets!) The text should be enclosed in the appropriate
- comment syntax for the file format. We also recommend that a
- file or class name and description of purpose be included on the
- same "printed page" as the copyright notice for easier
- identification within third-party archives.
-
- Copyright [yyyy] [name of copyright owner]
-
- Licensed 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.
diff --git a/tags/java-M1-20060518/java/samples/sca/helloworldws/README.txt b/tags/java-M1-20060518/java/samples/sca/helloworldws/README.txt
deleted file mode 100644
index 9b26d1690a..0000000000
--- a/tags/java-M1-20060518/java/samples/sca/helloworldws/README.txt
+++ /dev/null
@@ -1,35 +0,0 @@
-Apache Tuscany M1 build (May, 2006)
-===================================
-
-http://incubator.apache.org/tuscany/
-
-Tuscany is an effort undergoing incubation at the Apache Software Foundation
-(ASF), sponsored by the Web Services PMC.
-
-Incubation is required of all newly accepted projects until a further review
-indicates that the infrastructure, communications, and decision making process
-have stabilized in a manner consistent with other successful ASF projects.
-
-While incubation status is not necessarily a reflection of the completeness or
-stability of the code, it does indicate that the project has yet to be fully
-endorsed by the ASF.
-
-
-Support
--------
-
-Any problem with this release can be reported to the Tuscany mailing list
-or in the JIRA issue tracker.
-
-Mailing list subscription:
- tuscany-dev-subscribe@ws.apache.org
-
-Jira:
- http://issues.apache.org/jira/browse/Tuscany
-
-
-Thank you for using Tuscany!
-
-
-The Tuscany Team.
-
diff --git a/tags/java-M1-20060518/java/samples/sca/helloworldws/build.xml b/tags/java-M1-20060518/java/samples/sca/helloworldws/build.xml
deleted file mode 100644
index 2ec1f34959..0000000000
--- a/tags/java-M1-20060518/java/samples/sca/helloworldws/build.xml
+++ /dev/null
@@ -1,52 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<!--
- * Copyright (c) 2005-2006 The Apache Software Foundation or its licensors, as applicable.
- *
- * Licensed 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 name="samples" default="compile">
- <property name="mainDir" value="../../.."/>
- <path id="javac.classpath">
- <fileset dir="${mainDir}/lib">
- <include name="tuscany-runtime-incubating-M1.jar"/>
- </fileset>
- </path>
- <path id="java.classpath">
- <fileset dir="${mainDir}/lib">
- <include name="tuscany-runtime-incubating-M1.jar"/>
- </fileset>
- <pathelement path="target/sample-helloworldws.jar"/>
- </path>
-
- <target name="init">
- <mkdir dir="target/classes"/>
- </target>
-
- <target name="compile" depends="init">
- <javac srcdir="src/main/java" destdir="target/classes" debug="on" source="1.5" target="1.5">
- <classpath refid="javac.classpath"/>
- </javac>
- <copy todir="target/classes">
- <fileset dir="src/main/resources"/>
- </copy>
- <war destfile="target/sample-helloworldws.war" webxml="src/main/webapp/WEB-INF/web.xml">
- <classes dir="target/classes"/>
- </war>
- </target>
-
- <target name="clean">
- <delete quiet="true" includeemptydirs="true">
- <fileset dir="target" excludes="sample-helloworldws-incubating-M1.war"/>
- </delete>
- </target>
-</project>
diff --git a/tags/java-M1-20060518/java/samples/sca/helloworldws/pom.xml b/tags/java-M1-20060518/java/samples/sca/helloworldws/pom.xml
deleted file mode 100644
index 32086e1074..0000000000
--- a/tags/java-M1-20060518/java/samples/sca/helloworldws/pom.xml
+++ /dev/null
@@ -1,57 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<!--
- * Copyright (c) 2005-2006 The Apache Software Foundation or its licensors, as applicable.
- *
- * Licensed 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>
- <parent>
- <groupId>org.apache.tuscany.samples.sca</groupId>
- <artifactId>tuscany-samples-sca</artifactId>
- <version>incubating-M1</version>
- </parent>
- <modelVersion>4.0.0</modelVersion>
- <artifactId>sample-helloworldws</artifactId>
- <packaging>war</packaging>
- <name>Tuscany HelloWorld Web Service Sample</name>
- <description>A sample HelloWorld Web Service.</description>
- <version>incubating-M1</version>
-
- <properties>
- <ws.type>axis2</ws.type>
- </properties>
-
- <dependencies>
-
- <dependency>
- <groupId>org.apache.tuscany</groupId>
- <artifactId>tuscany-core</artifactId>
- <version>${pom.version}</version>
- <scope>provided</scope>
- </dependency>
- <dependency>
- <groupId>org.apache.tuscany.sca.containers</groupId>
- <artifactId>tuscany-container-java</artifactId>
- <version>${pom.version}</version>
- <scope>provided</scope>
- </dependency>
-
- <dependency>
- <groupId>junit</groupId>
- <artifactId>junit</artifactId>
- <version>3.8.1</version>
- <scope>test</scope>
- </dependency>
-
- </dependencies>
-</project>
diff --git a/tags/java-M1-20060518/java/samples/sca/helloworldws/readme.htm b/tags/java-M1-20060518/java/samples/sca/helloworldws/readme.htm
deleted file mode 100644
index af3620aa9f..0000000000
--- a/tags/java-M1-20060518/java/samples/sca/helloworldws/readme.htm
+++ /dev/null
@@ -1,48 +0,0 @@
-<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
-<html><head><!-- Copyright (c) 2005 The Apache Software Foundation or its licensors, as applicable. Licensed 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. -->
-<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"><meta http-equiv="Content-Style-Type" content="text/css"><title>Tuscany
-Hello World Web Service Sample</title><!-- LINK rel="stylesheet" href="ait.css" type="text/css" --><!-- maven -->
-<style type="text/css" media="all">
-@import url("../../../../css/maven-base.css");
-@import url("../../../../css/maven-theme.css");
-@import url("../../../../css/site.css");
-</style><link rel="stylesheet" href="./css/print.css" type="text/css" media="print"><!-- end maven --></head>
-<body><h2>Tuscany
-Hello World WS Sample</h2>
-<h3>Overview</h3>
-<p>The Tuscany hello world ws sample shows using the Tuscany SCA
-runtime in a Tomcat environment&nbsp;providing&nbsp;a web
-service.</p>
-<h3>Location</h3>
-This sample is located &nbsp;in the samples\sca\helloworldws
-directory.<br>
-<h3>Setup</h3>
-Set up your server as described in the <a href="../../../GettingStarted.htm" target="_blank">Tomcat
-Setup</a>. &nbsp;If you are not using the pre-configured Tomcat server from the binary distribution, you will need to add
- <span style="font-weight: bold;">sample-helloworldws-incubating-M1.war</span>
-to your Tomcat's webapp directory.
-<h3>Running</h3>
-This service can be invoked by&nbsp;the Tuscany SCA <a target="_blank" href="../helloworldwsclient/readme.htm">helloworldwsclient</a> or <a target="_blank" href="../helloworldjsclient/readme.htm">helloworldjsclient</a>
-sample.<br>
-<h3>Code Overview</h3>
-The source files are physically organized as shown below:<br>
-<table style="text-align: left; width: 100%;" border="1" cellpadding="2" cellspacing="2"><tbody><tr><td>
-<pre>+---main<br> +---resources<br> &brvbar; &brvbar; sca.module<br> &brvbar; &brvbar;<br> &brvbar; +---wsdl<br> &brvbar; helloworld.wsdl<br> &brvbar;<br> +---webapp<br> +---WEB-INF<br> web.xml<br></pre></td></tr></tbody></table>
-<br><br><table style="text-align: left; width: 100%; height: 154px;" border="0" cellpadding="2" cellspacing="2"><tbody>
-<tr><td style="vertical-align: top; height: 62px;">sca.module</td>
-<td style="height: 62px;">Defines the SCA module,
-entryPoint and component. Defines for the HelloWorldServiceComponent
-component and the Java class that implements the component For the
-entryPoint it defines WSDL for the service, the Java interface provided
-by the service, and wires the service to
-the&nbsp;HelloWorldServiceComponent</td>
-</tr><tr>
-<td>helloworld.wsdl</td>
-<td>WSDL for the service.</td>
-</tr><tr><td>web.xml</td>
-<td>Standard J2EE web application's web.xml</td>
-</tr></tbody></table>
-<p>You may have noticed that there is no Java source for this
-components implementation. &nbsp;There reason is this sample reuses
-the code from the helloworld sample to implement the service.
-</p></body></html>
diff --git a/tags/java-M1-20060518/java/samples/sca/helloworldws/src/main/java/helloworld/HelloWorldImpl.java b/tags/java-M1-20060518/java/samples/sca/helloworldws/src/main/java/helloworld/HelloWorldImpl.java
deleted file mode 100644
index bf7209e7a8..0000000000
--- a/tags/java-M1-20060518/java/samples/sca/helloworldws/src/main/java/helloworld/HelloWorldImpl.java
+++ /dev/null
@@ -1,31 +0,0 @@
-/**
- *
- * Copyright 2005 The Apache Software Foundation or its licensors, as applicable.
- *
- * Licensed 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 helloworld;
-
-import org.osoa.sca.annotations.Service;
-
-/**
- * This class implements the HelloWorld service.
- */
-@Service(HelloWorldService.class)
-public class HelloWorldImpl implements HelloWorldService {
-
- public String getGreetings(String name) {
- return "Hello " + name;
- }
-
-}
diff --git a/tags/java-M1-20060518/java/samples/sca/helloworldws/src/main/java/helloworld/HelloWorldService.java b/tags/java-M1-20060518/java/samples/sca/helloworldws/src/main/java/helloworld/HelloWorldService.java
deleted file mode 100644
index 1f87f17d74..0000000000
--- a/tags/java-M1-20060518/java/samples/sca/helloworldws/src/main/java/helloworld/HelloWorldService.java
+++ /dev/null
@@ -1,26 +0,0 @@
-/**
- *
- * Copyright 2005 The Apache Software Foundation or its licensors, as applicable.
- *
- * Licensed 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 helloworld;
-
-/**
- * This is the business interface of the HelloWorld greetings service.
- */
-public interface HelloWorldService {
-
- public String getGreetings(String name);
-
-}
diff --git a/tags/java-M1-20060518/java/samples/sca/helloworldws/src/main/resources/sca.module b/tags/java-M1-20060518/java/samples/sca/helloworldws/src/main/resources/sca.module
deleted file mode 100644
index 20139fced7..0000000000
--- a/tags/java-M1-20060518/java/samples/sca/helloworldws/src/main/resources/sca.module
+++ /dev/null
@@ -1,33 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<!--
- Copyright (c) 2005 The Apache Software Foundation or its licensors, as applicable.
-
- Licensed 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.
- -->
-<module xmlns="http://www.osoa.org/xmlns/sca/0.9" xmlns:v="http://www.osoa.org/xmlns/sca/values/0.9"
- name="helloworld">
-
- <import.sdo wsdlLocation="wsdl/helloworld.wsdl"/>
- <import.wsdl wsdlLocation="wsdl/helloworld.wsdl"/>
-
- <entryPoint name="HelloWorldWebService">
- <interface.wsdl interface="http://helloworld#wsdl.interface(HelloWorld)"/>
- <binding.ws port="http://helloworld#wsdl.endpoint(HelloWorldService/HelloWorldSoapPort)"/>
- <reference>HelloWorldServiceComponent/HelloWorldService</reference>
- </entryPoint>
-
- <component name="HelloWorldServiceComponent">
- <implementation.java class="helloworld.HelloWorldImpl"/>
- </component>
-
-</module>
diff --git a/tags/java-M1-20060518/java/samples/sca/helloworldws/src/main/resources/wsdl/helloworld.wsdl b/tags/java-M1-20060518/java/samples/sca/helloworldws/src/main/resources/wsdl/helloworld.wsdl
deleted file mode 100644
index cbc15f58eb..0000000000
--- a/tags/java-M1-20060518/java/samples/sca/helloworldws/src/main/resources/wsdl/helloworld.wsdl
+++ /dev/null
@@ -1,75 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<!--
- Copyright (c) 2005 The Apache Software Foundation or its licensors, as applicable.
-
- Licensed 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.
- -->
-<wsdl:definitions targetNamespace="http://helloworld" xmlns:tns="http://helloworld" xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/" xmlns:wsdlsoap="http://schemas.xmlsoap.org/wsdl/soap/" xmlns:xsd="http://www.w3.org/2001/XMLSchema"
- name="helloworld">
-
- <wsdl:types>
- <schema elementFormDefault="qualified" targetNamespace="http://helloworld" xmlns="http://www.w3.org/2001/XMLSchema">
-
- <element name="getGreetings">
- <complexType>
- <sequence>
- <element name="name" type="xsd:string"/>
- </sequence>
- </complexType>
- </element>
-
- <element name="getGreetingsResponse">
- <complexType>
- <sequence>
- <element name="getGreetingsReturn" type="xsd:string"/>
- </sequence>
- </complexType>
- </element>
- </schema>
- </wsdl:types>
-
- <wsdl:message name="getGreetingsRequest">
- <wsdl:part element="tns:getGreetings" name="parameters"/>
- </wsdl:message>
-
- <wsdl:message name="getGreetingsResponse">
- <wsdl:part element="tns:getGreetingsResponse" name="parameters"/>
- </wsdl:message>
-
- <wsdl:portType name="HelloWorld">
- <wsdl:operation name="getGreetings">
- <wsdl:input message="tns:getGreetingsRequest" name="getGreetingsRequest"/>
- <wsdl:output message="tns:getGreetingsResponse" name="getGreetingsResponse"/>
- </wsdl:operation>
- </wsdl:portType>
-
- <wsdl:binding name="HelloWorldSoapBinding" type="tns:HelloWorld">
- <wsdlsoap:binding style="document" transport="http://schemas.xmlsoap.org/soap/http"/>
- <wsdl:operation name="getGreetings">
- <wsdlsoap:operation soapAction=""/>
- <wsdl:input name="getGreetingsRequest">
- <wsdlsoap:body use="literal"/>
- </wsdl:input>
- <wsdl:output name="getGreetingsResponse">
- <wsdlsoap:body use="literal"/>
- </wsdl:output>
- </wsdl:operation>
- </wsdl:binding>
-
- <wsdl:service name="HelloWorldService">
- <wsdl:port binding="tns:HelloWorldSoapBinding" name="HelloWorldSoapPort">
- <wsdlsoap:address location="http://localhost:8080/sample-helloworldws/services/HelloWorldWebService"/>
- </wsdl:port>
- </wsdl:service>
-
-</wsdl:definitions>
diff --git a/tags/java-M1-20060518/java/samples/sca/helloworldws/src/main/webapp/WEB-INF/web.xml b/tags/java-M1-20060518/java/samples/sca/helloworldws/src/main/webapp/WEB-INF/web.xml
deleted file mode 100644
index 603eebabb1..0000000000
--- a/tags/java-M1-20060518/java/samples/sca/helloworldws/src/main/webapp/WEB-INF/web.xml
+++ /dev/null
@@ -1,23 +0,0 @@
-<?xml version="1.0" encoding="ISO-8859-1"?>
-<!--
- Copyright (c) 2005 The Apache Software Foundation or its licensors, as applicable.
-
- Licensed 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.
- -->
-
-<!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>Tuscany HelloWorld Web Service Sample</display-name>
-
-</web-app>
diff --git a/tags/java-M1-20060518/java/samples/sca/helloworldwsclient/LICENSE.txt b/tags/java-M1-20060518/java/samples/sca/helloworldwsclient/LICENSE.txt
deleted file mode 100644
index d645695673..0000000000
--- a/tags/java-M1-20060518/java/samples/sca/helloworldwsclient/LICENSE.txt
+++ /dev/null
@@ -1,202 +0,0 @@
-
- Apache License
- Version 2.0, January 2004
- http://www.apache.org/licenses/
-
- TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
-
- 1. Definitions.
-
- "License" shall mean the terms and conditions for use, reproduction,
- and distribution as defined by Sections 1 through 9 of this document.
-
- "Licensor" shall mean the copyright owner or entity authorized by
- the copyright owner that is granting the License.
-
- "Legal Entity" shall mean the union of the acting entity and all
- other entities that control, are controlled by, or are under common
- control with that entity. For the purposes of this definition,
- "control" means (i) the power, direct or indirect, to cause the
- direction or management of such entity, whether by contract or
- otherwise, or (ii) ownership of fifty percent (50%) or more of the
- outstanding shares, or (iii) beneficial ownership of such entity.
-
- "You" (or "Your") shall mean an individual or Legal Entity
- exercising permissions granted by this License.
-
- "Source" form shall mean the preferred form for making modifications,
- including but not limited to software source code, documentation
- source, and configuration files.
-
- "Object" form shall mean any form resulting from mechanical
- transformation or translation of a Source form, including but
- not limited to compiled object code, generated documentation,
- and conversions to other media types.
-
- "Work" shall mean the work of authorship, whether in Source or
- Object form, made available under the License, as indicated by a
- copyright notice that is included in or attached to the work
- (an example is provided in the Appendix below).
-
- "Derivative Works" shall mean any work, whether in Source or Object
- form, that is based on (or derived from) the Work and for which the
- editorial revisions, annotations, elaborations, or other modifications
- represent, as a whole, an original work of authorship. For the purposes
- of this License, Derivative Works shall not include works that remain
- separable from, or merely link (or bind by name) to the interfaces of,
- the Work and Derivative Works thereof.
-
- "Contribution" shall mean any work of authorship, including
- the original version of the Work and any modifications or additions
- to that Work or Derivative Works thereof, that is intentionally
- submitted to Licensor for inclusion in the Work by the copyright owner
- or by an individual or Legal Entity authorized to submit on behalf of
- the copyright owner. For the purposes of this definition, "submitted"
- means any form of electronic, verbal, or written communication sent
- to the Licensor or its representatives, including but not limited to
- communication on electronic mailing lists, source code control systems,
- and issue tracking systems that are managed by, or on behalf of, the
- Licensor for the purpose of discussing and improving the Work, but
- excluding communication that is conspicuously marked or otherwise
- designated in writing by the copyright owner as "Not a Contribution."
-
- "Contributor" shall mean Licensor and any individual or Legal Entity
- on behalf of whom a Contribution has been received by Licensor and
- subsequently incorporated within the Work.
-
- 2. Grant of Copyright License. Subject to the terms and conditions of
- this License, each Contributor hereby grants to You a perpetual,
- worldwide, non-exclusive, no-charge, royalty-free, irrevocable
- copyright license to reproduce, prepare Derivative Works of,
- publicly display, publicly perform, sublicense, and distribute the
- Work and such Derivative Works in Source or Object form.
-
- 3. Grant of Patent License. Subject to the terms and conditions of
- this License, each Contributor hereby grants to You a perpetual,
- worldwide, non-exclusive, no-charge, royalty-free, irrevocable
- (except as stated in this section) patent license to make, have made,
- use, offer to sell, sell, import, and otherwise transfer the Work,
- where such license applies only to those patent claims licensable
- by such Contributor that are necessarily infringed by their
- Contribution(s) alone or by combination of their Contribution(s)
- with the Work to which such Contribution(s) was submitted. If You
- institute patent litigation against any entity (including a
- cross-claim or counterclaim in a lawsuit) alleging that the Work
- or a Contribution incorporated within the Work constitutes direct
- or contributory patent infringement, then any patent licenses
- granted to You under this License for that Work shall terminate
- as of the date such litigation is filed.
-
- 4. Redistribution. You may reproduce and distribute copies of the
- Work or Derivative Works thereof in any medium, with or without
- modifications, and in Source or Object form, provided that You
- meet the following conditions:
-
- (a) You must give any other recipients of the Work or
- Derivative Works a copy of this License; and
-
- (b) You must cause any modified files to carry prominent notices
- stating that You changed the files; and
-
- (c) You must retain, in the Source form of any Derivative Works
- that You distribute, all copyright, patent, trademark, and
- attribution notices from the Source form of the Work,
- excluding those notices that do not pertain to any part of
- the Derivative Works; and
-
- (d) If the Work includes a "NOTICE" text file as part of its
- distribution, then any Derivative Works that You distribute must
- include a readable copy of the attribution notices contained
- within such NOTICE file, excluding those notices that do not
- pertain to any part of the Derivative Works, in at least one
- of the following places: within a NOTICE text file distributed
- as part of the Derivative Works; within the Source form or
- documentation, if provided along with the Derivative Works; or,
- within a display generated by the Derivative Works, if and
- wherever such third-party notices normally appear. The contents
- of the NOTICE file are for informational purposes only and
- do not modify the License. You may add Your own attribution
- notices within Derivative Works that You distribute, alongside
- or as an addendum to the NOTICE text from the Work, provided
- that such additional attribution notices cannot be construed
- as modifying the License.
-
- You may add Your own copyright statement to Your modifications and
- may provide additional or different license terms and conditions
- for use, reproduction, or distribution of Your modifications, or
- for any such Derivative Works as a whole, provided Your use,
- reproduction, and distribution of the Work otherwise complies with
- the conditions stated in this License.
-
- 5. Submission of Contributions. Unless You explicitly state otherwise,
- any Contribution intentionally submitted for inclusion in the Work
- by You to the Licensor shall be under the terms and conditions of
- this License, without any additional terms or conditions.
- Notwithstanding the above, nothing herein shall supersede or modify
- the terms of any separate license agreement you may have executed
- with Licensor regarding such Contributions.
-
- 6. Trademarks. This License does not grant permission to use the trade
- names, trademarks, service marks, or product names of the Licensor,
- except as required for reasonable and customary use in describing the
- origin of the Work and reproducing the content of the NOTICE file.
-
- 7. Disclaimer of Warranty. Unless required by applicable law or
- agreed to in writing, Licensor provides the Work (and each
- Contributor provides its Contributions) on an "AS IS" BASIS,
- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
- implied, including, without limitation, any warranties or conditions
- of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
- PARTICULAR PURPOSE. You are solely responsible for determining the
- appropriateness of using or redistributing the Work and assume any
- risks associated with Your exercise of permissions under this License.
-
- 8. Limitation of Liability. In no event and under no legal theory,
- whether in tort (including negligence), contract, or otherwise,
- unless required by applicable law (such as deliberate and grossly
- negligent acts) or agreed to in writing, shall any Contributor be
- liable to You for damages, including any direct, indirect, special,
- incidental, or consequential damages of any character arising as a
- result of this License or out of the use or inability to use the
- Work (including but not limited to damages for loss of goodwill,
- work stoppage, computer failure or malfunction, or any and all
- other commercial damages or losses), even if such Contributor
- has been advised of the possibility of such damages.
-
- 9. Accepting Warranty or Additional Liability. While redistributing
- the Work or Derivative Works thereof, You may choose to offer,
- and charge a fee for, acceptance of support, warranty, indemnity,
- or other liability obligations and/or rights consistent with this
- License. However, in accepting such obligations, You may act only
- on Your own behalf and on Your sole responsibility, not on behalf
- of any other Contributor, and only if You agree to indemnify,
- defend, and hold each Contributor harmless for any liability
- incurred by, or claims asserted against, such Contributor by reason
- of your accepting any such warranty or additional liability.
-
- END OF TERMS AND CONDITIONS
-
- APPENDIX: How to apply the Apache License to your work.
-
- To apply the Apache License to your work, attach the following
- boilerplate notice, with the fields enclosed by brackets "[]"
- replaced with your own identifying information. (Don't include
- the brackets!) The text should be enclosed in the appropriate
- comment syntax for the file format. We also recommend that a
- file or class name and description of purpose be included on the
- same "printed page" as the copyright notice for easier
- identification within third-party archives.
-
- Copyright [yyyy] [name of copyright owner]
-
- Licensed 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.
diff --git a/tags/java-M1-20060518/java/samples/sca/helloworldwsclient/README.txt b/tags/java-M1-20060518/java/samples/sca/helloworldwsclient/README.txt
deleted file mode 100644
index 9b26d1690a..0000000000
--- a/tags/java-M1-20060518/java/samples/sca/helloworldwsclient/README.txt
+++ /dev/null
@@ -1,35 +0,0 @@
-Apache Tuscany M1 build (May, 2006)
-===================================
-
-http://incubator.apache.org/tuscany/
-
-Tuscany is an effort undergoing incubation at the Apache Software Foundation
-(ASF), sponsored by the Web Services PMC.
-
-Incubation is required of all newly accepted projects until a further review
-indicates that the infrastructure, communications, and decision making process
-have stabilized in a manner consistent with other successful ASF projects.
-
-While incubation status is not necessarily a reflection of the completeness or
-stability of the code, it does indicate that the project has yet to be fully
-endorsed by the ASF.
-
-
-Support
--------
-
-Any problem with this release can be reported to the Tuscany mailing list
-or in the JIRA issue tracker.
-
-Mailing list subscription:
- tuscany-dev-subscribe@ws.apache.org
-
-Jira:
- http://issues.apache.org/jira/browse/Tuscany
-
-
-Thank you for using Tuscany!
-
-
-The Tuscany Team.
-
diff --git a/tags/java-M1-20060518/java/samples/sca/helloworldwsclient/build.xml b/tags/java-M1-20060518/java/samples/sca/helloworldwsclient/build.xml
deleted file mode 100644
index 80258a4c81..0000000000
--- a/tags/java-M1-20060518/java/samples/sca/helloworldwsclient/build.xml
+++ /dev/null
@@ -1,58 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<!--
- * Copyright (c) 2005-2006 The Apache Software Foundation or its licensors, as applicable.
- *
- * Licensed 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 name="samples" default="compile">
- <property name="mainDir" value="../../.."/>
- <path id="javac.classpath">
- <fileset dir="${mainDir}/lib">
- <include name="tuscany-runtime-incubating-M1.jar"/>
- </fileset>
- <fileset dir="${mainDir}/lib/axis2">
- <include name="tuscany-axis2-incubating-M1.jar"/>
- </fileset>
- </path>
- <path id="java.classpath">
- <fileset dir="${mainDir}/lib">
- <include name="tuscany-runtime-incubating-M1.jar"/>
- </fileset>
- <fileset dir="${mainDir}/lib/axis2">
- <include name="tuscany-axis2-incubating-M1.jar"/>
- </fileset>
- <pathelement path="target/sample-helloworldwsclient.jar"/>
- </path>
-
- <target name="init">
- <mkdir dir="target/classes"/>
- </target>
-
- <target name="compile" depends="init">
- <javac srcdir="src/main/java" destdir="target/classes" debug="on" source="1.5" target="1.5">
- <classpath refid="javac.classpath"/>
- </javac>
- <copy todir="target/classes">
- <fileset dir="src/main/resources"/>
- </copy>
- <jar destfile="target/sample-helloworldwsclient.jar">
- <fileset dir="target/classes"/>
- </jar>
- </target>
-
- <target name="clean">
- <delete quiet="true" includeemptydirs="true">
- <fileset dir="target" excludes="sample-helloworldwsclient-incubating-M1.jar"/>
- </delete>
- </target>
-</project>
diff --git a/tags/java-M1-20060518/java/samples/sca/helloworldwsclient/pom.xml b/tags/java-M1-20060518/java/samples/sca/helloworldwsclient/pom.xml
deleted file mode 100644
index 9291bb5e47..0000000000
--- a/tags/java-M1-20060518/java/samples/sca/helloworldwsclient/pom.xml
+++ /dev/null
@@ -1,61 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<!--
- * Copyright (c) 2005-2006 The Apache Software Foundation or its licensors, as applicable.
- *
- * Licensed 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>
- <parent>
- <groupId>org.apache.tuscany.samples.sca</groupId>
- <artifactId>tuscany-samples-sca</artifactId>
- <version>incubating-M1</version>
- </parent>
- <modelVersion>4.0.0</modelVersion>
- <artifactId>sample-helloworldwsclient</artifactId>
- <packaging>jar</packaging>
- <name>Tuscany HelloWorld Web Service Client Sample</name>
- <description>A sample client for a HelloWorld Web Service.</description>
- <version>incubating-M1</version>
-
- <properties>
- <ws.type>axis2</ws.type>
- </properties>
-
- <dependencies>
- <dependency>
- <groupId>org.apache.tuscany</groupId>
- <artifactId>tuscany-core</artifactId>
- <version>${pom.version}</version>
- <scope>provided</scope>
- </dependency>
- <dependency>
- <groupId>org.apache.tuscany.sca.containers</groupId>
- <artifactId>tuscany-container-java</artifactId>
- <version>${pom.version}</version>
- <scope>provided</scope>
- </dependency>
- <dependency>
- <groupId>org.apache.tuscany.sca.bindings</groupId>
- <artifactId>tuscany-binding-${ws.type}</artifactId>
- <version>${pom.version}</version>
- <scope>provided</scope>
- </dependency>
-
- <dependency>
- <groupId>junit</groupId>
- <artifactId>junit</artifactId>
- <version>3.8.1</version>
- <scope>test</scope>
- </dependency>
- </dependencies>
-</project>
diff --git a/tags/java-M1-20060518/java/samples/sca/helloworldwsclient/readme.htm b/tags/java-M1-20060518/java/samples/sca/helloworldwsclient/readme.htm
deleted file mode 100644
index 5a69727ad2..0000000000
--- a/tags/java-M1-20060518/java/samples/sca/helloworldwsclient/readme.htm
+++ /dev/null
@@ -1,64 +0,0 @@
-<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
-<html><head><!-- Copyright (c) 2005 The Apache Software Foundation or its licensors, as applicable. Licensed 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. -->
-<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"> <meta http-equiv="Content-Style-Type" content="text/css"><title>Tuscany
-Hello World Web Sample</title> <!-- LINK rel="stylesheet" href="ait.css" type="text/css" --><!-- maven --><style type="text/css" media="all">
-@import url("../../../../css/maven-base.css");
-@import url("../../../../css/maven-theme.css");
-@import url("../../../../css/site.css");
-</style>
-<link rel="stylesheet" href="./css/print.css" type="text/css" media="print"><!-- end maven --></head>
-<body><h2>Tuscany Hello World WS Client Sample</h2>
-<h3>Overview</h3>
-<p>The Tuscany hello world WS client sample shows using the
-Tuscany SCA runtime in a J2SE environment invoking a web service. </p>
-<h3>Location</h3>
-This sample is located &nbsp;in the samples\sca\helloworldwsclient
-directory.<br>
-
-
-<h3>Setup</h3>This sample depends on the Tuscany runtime, Axis2, and the sample jar,
-
- <span style="font-weight: bold;">
- sample-helloworldwsclient-incubating-M1.jar
- </span>
-
-, all of these must be available on the classpath to run the sample. Additionally, one of the helloworld web services must be running, either the Tomcat version, <a target="_blank" href="../helloworldws/readme.htm">helloworldws sample</a> or the Celtix version, <a target="_blank" href="../helloworldws-celtix/readme.htm">helloworldws-celtix sample</a>.
-<ol>
-</ol>
-<h3>Running</h3>
-
- In the directory samples/sca/helloworldwsclient use the JDK 1.5 java command to run the class helloworld.HelloWorldClient
-
- <pre>Linux: java -cp ../../../lib/tuscany-runtime-incubating-M1.jar:../../../lib/axis2/tuscany-axis2-incubating-M1.jar:target/sample-helloworldwsclient-incubating-M1.jar helloworld.HelloWorldClient</pre>
- <pre>Windows: java -cp ../../../lib/tuscany-runtime-incubating-M1.jar;../../../lib/axis2/tuscany-axis2-incubating-M1.jar;target/sample-helloworldwsclient-incubating-M1.jar helloworld.HelloWorldClient</pre>
-
- <b>Note: </b> In the above classpaths, you can replace axis2/tuscany-axis2-incubating-M1.jar with celtix/tuscany-celtix-incubating-M1.jar to use Celtix as the underlying webservices implementation.
-
-<h3>Results</h3>
-<p>The sample when run should simply display to the standard
-output:<br> <code>Hello World</code></p>
-<h3>Code Overview</h3>
-The source files are physically organized as shown below:<br>
-<table style="text-align: left; width: 100%;" border="1" cellpadding="2" cellspacing="2"> <tbody> <tr>
-<td><pre>src<br>+---main<br> +---java<br> &brvbar; +---helloworld<br> &brvbar; HelloWorldClient.java<br> &brvbar; HelloWorldService.java<br> &brvbar;<br> +---resources<br> &brvbar; logging.properties<br> &brvbar; sca.module<br> &brvbar;<br> +---wsdl<br> helloworld.wsdl<br><br><br> <br></pre> </td> </tr>
-</tbody>
-</table><br>
-<br><table style="text-align: left; width: 100%; height: 154px;" border="0" cellpadding="2" cellspacing="2"> <tbody> <tr>
-<td style="vertical-align: top; height: 62px;">sca.module</td>
-<td style="height: 62px;">Defines the SCA module,
-externalService and component. Defines for the
-HelloWorldServiceComponent component and the Java class that implements
-the component For the externalService it defines WSDL for the service,
-the Java interface provided by the service.
-The&nbsp;the&nbsp;HelloWorldServiceComponent is via a
-referenced wired to the externalService</td> </tr> <tr>
-<td style="vertical-align: top;">HelloWorldClient.java</td>
-<td>Creates a Tuscany runtime and starts it. &nbsp;Obtains
-the module context which was defined by the sca.module file. From the
-module context locates the HelloWorldService entryPoint and then
-calls&nbsp; the getGreetings method to invoke the web service defined in the helloword.wsdl.</td>
-</tr> <tr> <td style="vertical-align: top; height: 26px;">HelloWorldService.java</td>
-<td style="height: 26px;">Defines the Java interface
-implemented by the component.</td> </tr> <tr> <td>helloworld.wsdl</td>
-<td>WSDL for the service.</td> </tr> </tbody>
-</table></body></html> \ No newline at end of file
diff --git a/tags/java-M1-20060518/java/samples/sca/helloworldwsclient/src/main/java/helloworld/HelloWorldClient.java b/tags/java-M1-20060518/java/samples/sca/helloworldwsclient/src/main/java/helloworld/HelloWorldClient.java
deleted file mode 100644
index be121bc63b..0000000000
--- a/tags/java-M1-20060518/java/samples/sca/helloworldwsclient/src/main/java/helloworld/HelloWorldClient.java
+++ /dev/null
@@ -1,67 +0,0 @@
-/**
- *
- * Copyright 2005 The Apache Software Foundation or its licensors, as applicable.
- *
- * Licensed 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 helloworld;
-
-import java.util.logging.Level;
-import java.util.logging.LogManager;
-import java.util.Properties;
-
-import org.osoa.sca.CurrentModuleContext;
-import org.osoa.sca.ModuleContext;
-
-import org.apache.tuscany.core.client.TuscanyRuntime;
-import org.apache.tuscany.common.monitor.MonitorFactory;
-import org.apache.tuscany.common.monitor.impl.JavaLoggingMonitorFactory;
-
-/**
- * This client program shows how to create an SCA runtime, start it,
- * locate the HelloWorld service and invoke it.
- */
-public class HelloWorldClient {
-
- public static final void main(String[] args) throws Exception {
-
- // Setup Tuscany monitoring to use java.util.logging
- LogManager.getLogManager().readConfiguration(HelloWorldClient.class.getResourceAsStream("/logging.properties"));
- Properties levels = new Properties();
- MonitorFactory monitorFactory = new JavaLoggingMonitorFactory(levels, Level.FINEST, "MonitorMessages");
-
- // Create a Tuscany runtime for the sample module component
- TuscanyRuntime tuscany = new TuscanyRuntime("HelloWorldModuleComponent", "http://helloworld", monitorFactory);
-
- // Start the Tuscany runtime and associate it with this thread
- tuscany.start();
-
- // Get the SCA module context.
- ModuleContext moduleContext = CurrentModuleContext.getContext();
-
- // Locate the HelloWorld service
- HelloWorldService helloworldService = (HelloWorldService) moduleContext.locateService("HelloWorldService");
-
- // Invoke the HelloWorld service
- String value = helloworldService.getGreetings("World");
-
- System.out.println(value);
- System.out.flush();
-
- // Disassociate the runtime from this thread
- tuscany.stop();
-
- // Shut down the runtime
- tuscany.shutdown();
- }
-}
diff --git a/tags/java-M1-20060518/java/samples/sca/helloworldwsclient/src/main/java/helloworld/HelloWorldService.java b/tags/java-M1-20060518/java/samples/sca/helloworldwsclient/src/main/java/helloworld/HelloWorldService.java
deleted file mode 100644
index 1f87f17d74..0000000000
--- a/tags/java-M1-20060518/java/samples/sca/helloworldwsclient/src/main/java/helloworld/HelloWorldService.java
+++ /dev/null
@@ -1,26 +0,0 @@
-/**
- *
- * Copyright 2005 The Apache Software Foundation or its licensors, as applicable.
- *
- * Licensed 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 helloworld;
-
-/**
- * This is the business interface of the HelloWorld greetings service.
- */
-public interface HelloWorldService {
-
- public String getGreetings(String name);
-
-}
diff --git a/tags/java-M1-20060518/java/samples/sca/helloworldwsclient/src/main/resources/logging.properties b/tags/java-M1-20060518/java/samples/sca/helloworldwsclient/src/main/resources/logging.properties
deleted file mode 100644
index 58407bd5a9..0000000000
--- a/tags/java-M1-20060518/java/samples/sca/helloworldwsclient/src/main/resources/logging.properties
+++ /dev/null
@@ -1,27 +0,0 @@
-# Copyright (c) 2006 The Apache Software Foundation or its licensors, as applicable.
-#
-# Licensed 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.
-#
-# $Rev$ $Date$
-#
-
-# Custom logging configuration for Tuscany samples
-# By default, only INFO level logging is enabled and ALL messages get sent to the console
-# For more messages from the runtime, uncomment specific settings at the end of this file
-handlers = java.util.logging.ConsoleHandler
-java.util.logging.ConsoleHandler.level = ALL
-java.util.logging.ConsoleHandler.formatter = java.util.logging.SimpleFormatter
-.level=INFO
-
-# Uncomment the next setting to get all Tuscany messages (this will be a lot)
-#org.apache.tuscany.level=FINEST \ No newline at end of file
diff --git a/tags/java-M1-20060518/java/samples/sca/helloworldwsclient/src/main/resources/sca.module b/tags/java-M1-20060518/java/samples/sca/helloworldwsclient/src/main/resources/sca.module
deleted file mode 100644
index 3247636e91..0000000000
--- a/tags/java-M1-20060518/java/samples/sca/helloworldwsclient/src/main/resources/sca.module
+++ /dev/null
@@ -1,28 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<!--
- Copyright (c) 2005 The Apache Software Foundation or its licensors, as applicable.
-
- Licensed 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.
- -->
-<module xmlns="http://www.osoa.org/xmlns/sca/0.9" xmlns:v="http://www.osoa.org/xmlns/sca/values/0.9"
- name="sampleHelloworld">
-
- <import.sdo wsdlLocation="wsdl/helloworld.wsdl"/>
- <import.wsdl wsdlLocation="wsdl/helloworld.wsdl"/>
-
- <externalService name="HelloWorldService">
- <interface.java interface="helloworld.HelloWorldService"/>
- <binding.ws port="http://helloworld#wsdl.endpoint(HelloWorldService/HelloWorldSoapPort)"/>
- </externalService>
-
-</module>
diff --git a/tags/java-M1-20060518/java/samples/sca/helloworldwsclient/src/main/resources/wsdl/helloworld.wsdl b/tags/java-M1-20060518/java/samples/sca/helloworldwsclient/src/main/resources/wsdl/helloworld.wsdl
deleted file mode 100644
index cbc15f58eb..0000000000
--- a/tags/java-M1-20060518/java/samples/sca/helloworldwsclient/src/main/resources/wsdl/helloworld.wsdl
+++ /dev/null
@@ -1,75 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<!--
- Copyright (c) 2005 The Apache Software Foundation or its licensors, as applicable.
-
- Licensed 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.
- -->
-<wsdl:definitions targetNamespace="http://helloworld" xmlns:tns="http://helloworld" xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/" xmlns:wsdlsoap="http://schemas.xmlsoap.org/wsdl/soap/" xmlns:xsd="http://www.w3.org/2001/XMLSchema"
- name="helloworld">
-
- <wsdl:types>
- <schema elementFormDefault="qualified" targetNamespace="http://helloworld" xmlns="http://www.w3.org/2001/XMLSchema">
-
- <element name="getGreetings">
- <complexType>
- <sequence>
- <element name="name" type="xsd:string"/>
- </sequence>
- </complexType>
- </element>
-
- <element name="getGreetingsResponse">
- <complexType>
- <sequence>
- <element name="getGreetingsReturn" type="xsd:string"/>
- </sequence>
- </complexType>
- </element>
- </schema>
- </wsdl:types>
-
- <wsdl:message name="getGreetingsRequest">
- <wsdl:part element="tns:getGreetings" name="parameters"/>
- </wsdl:message>
-
- <wsdl:message name="getGreetingsResponse">
- <wsdl:part element="tns:getGreetingsResponse" name="parameters"/>
- </wsdl:message>
-
- <wsdl:portType name="HelloWorld">
- <wsdl:operation name="getGreetings">
- <wsdl:input message="tns:getGreetingsRequest" name="getGreetingsRequest"/>
- <wsdl:output message="tns:getGreetingsResponse" name="getGreetingsResponse"/>
- </wsdl:operation>
- </wsdl:portType>
-
- <wsdl:binding name="HelloWorldSoapBinding" type="tns:HelloWorld">
- <wsdlsoap:binding style="document" transport="http://schemas.xmlsoap.org/soap/http"/>
- <wsdl:operation name="getGreetings">
- <wsdlsoap:operation soapAction=""/>
- <wsdl:input name="getGreetingsRequest">
- <wsdlsoap:body use="literal"/>
- </wsdl:input>
- <wsdl:output name="getGreetingsResponse">
- <wsdlsoap:body use="literal"/>
- </wsdl:output>
- </wsdl:operation>
- </wsdl:binding>
-
- <wsdl:service name="HelloWorldService">
- <wsdl:port binding="tns:HelloWorldSoapBinding" name="HelloWorldSoapPort">
- <wsdlsoap:address location="http://localhost:8080/sample-helloworldws/services/HelloWorldWebService"/>
- </wsdl:port>
- </wsdl:service>
-
-</wsdl:definitions>
diff --git a/tags/java-M1-20060518/java/samples/sca/pom.xml b/tags/java-M1-20060518/java/samples/sca/pom.xml
deleted file mode 100644
index ae04924f5e..0000000000
--- a/tags/java-M1-20060518/java/samples/sca/pom.xml
+++ /dev/null
@@ -1,45 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<!--
- * Copyright (c) 2005-2006 The Apache Software Foundation or its licensors, as applicable.
- *
- * Licensed 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>
- <parent>
- <groupId>org.apache.tuscany.samples</groupId>
- <artifactId>tuscany-samples</artifactId>
- <version>incubating-M1</version>
- </parent>
-
- <modelVersion>4.0.0</modelVersion>
- <groupId>org.apache.tuscany.samples.sca</groupId>
- <artifactId>tuscany-samples-sca</artifactId>
- <packaging>pom</packaging>
- <name>Tuscany SCA Samples</name>
- <version>incubating-M1</version>
-
- <modules>
- <module>helloworld</module>
- <module>helloworldweb</module>
- <module>calculator</module>
- <module>customerinfo</module>
- <module>helloworldws</module>
- <module>helloworldws-celtix</module>
- <module>helloworldwsclient</module>
- <module>supplychain</module>
- <module>helloworldjsonrpc</module>
- <module>helloworld-jms</module>
- <module>helloworlde4xws</module>
- <module>helloworldjsclient</module>
- </modules>
-</project>
diff --git a/tags/java-M1-20060518/java/samples/sca/readme.htm b/tags/java-M1-20060518/java/samples/sca/readme.htm
deleted file mode 100644
index 2e3af5de93..0000000000
--- a/tags/java-M1-20060518/java/samples/sca/readme.htm
+++ /dev/null
@@ -1,95 +0,0 @@
-<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
-<HTML>
-<HEAD>
-
-<!-- Copyright (c) 2005 The Apache Software Foundation or its licensors, as applicable. Licensed 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. -->
- <META CONTENT="text/html; charset=iso-8859-1" HTTP-EQUIV="Content-Type">
- <META CONTENT="text/css" HTTP-EQUIV="Content-Style-Type">
- <TITLE>Tuscany SCA Samples</TITLE>
- <STYLE MEDIA="all" TYPE="text/css">
-@import url("../../javadoc/css/maven-base.css");
-@import url("../../javadoc/css/maven-theme.css");
-@import url("../../javadoc/css//site.css");
- </STYLE>
- <LINK HREF="./css/print.css" MEDIA="print" REL="stylesheet"
- TYPE="text/css">
-</HEAD>
-<BODY>
-<H2>Tuscany SCA Technology Samples</H2> To configure and build&nbsp; see
-<A HREF="../../GettingStarted.htm">Sample setup</A><BR>
-<BR>
-<DIV CLASS="section">
- <H3>Sample Summary</H3>
- <TABLE CLASS="bodyTable">
- <CAPTION STYLE="text-decoration: underline;">Tuscany samples summary</CAPTION>
-
- <TBODY>
- <TR CLASS="a">
- <TD> <A HREF="helloworld/readme.htm" TARGET="_blank">helloworld</A></TD>
- <TD>Sample showing a J2SE client using the Tuscany SCA runtime and
- invoking a component.
- </TD>
- </TR>
- <TR CLASS="b">
- <TD><A HREF="helloworldweb/readme.htm" TARGET="_blank">helloworldweb</A>&nbsp;</TD>
- <TD>Sample showing a J2EE web app client using the Tuscany SCA
- runtime and invoking a component.
- </TD>
- </TR>
- <TR CLASS="a">
- <TD><A HREF="helloworldws/readme.htm" TARGET="_blank">helloworldws</A>&nbsp;</TD>
- <TD>Sample showing a Tuscany SCA component exposed as a Web
- service endpoint.
- </TD>
- </TR>
- <TR CLASS="b">
- <TD><A HREF="helloworldwsclient/readme.htm" TARGET="_blank">helloworldwsclient</A>&nbsp;</TD>
- <TD>Sample showing a J2SE client using the Tuscany SCA runtime and
- invoking a remote Web service
- </TD>
- </TR>
- <TR CLASS="a">
- <TD><A HREF="helloworldws-celtix/readme.htm">helloworldws-celtix</A></TD>
- <TD>HelloWorld Sample using Celtix.</TD>
- </TR>
- <TR CLASS="b">
- <TD><A HREF="helloworld-jms/server/readme.htm">helloworld-jms server</A></TD>
- <TD>HelloWorld JMS server sample using Celtix.</TD>
- </TR>
- <TR CLASS="a">
- <TD><A HREF="helloworld-jms/client/readme.htm">helloworld-jms client</A></TD>
- <TD>HelloWorld JMS client sample using Celtix.</TD>
- </TR>
- <TR CLASS="b">
- <TD><A HREF="helloworlde4xws/readme.htm">helloworlde4xws</A></TD>
- <TD>Sample showing a JavaScript/E4X component exposed as a Web
- service</TD>
- </TR>
- <TR CLASS="a">
- <TD><A HREF="helloworldjsonrpc/readme.htm">helloworldjsonrpc</A></TD>
- <TD>Sample HelloWorld Web application using JSON-RPC</TD>
- </TR>
- <TR CLASS="b">
- <TD><A HREF="helloworldjsclient/readme.htm">helloworldjsclient</A></TD>
- <TD>Another JSON-RPC web app sample showing a Web service client</TD>
- </TR>
- <TR CLASS="a">
- <TD><A HREF="calculator/readme.htm">calculator</A></TD>
- <TD>Sample showing &nbsp;Tuscany SCA runtime using multiple
- components.</TD>
- </TR>
- <TR CLASS="b">
- <TD><A HREF="customerinfo/readme.htm">customerinfo</A></TD>
- <TD>Sample showing &nbsp;a component &nbsp;exposing a WSDL
- &nbsp;portType interface and using the dynamic SDO API</TD>
- </TR>
- <TR CLASS="a">
- <TD><A HREF="supplychain/readme.htm">supplychain</A></TD>
- <TD>Sample showing the use of Tuscany SCA asynchronous API</TD>
- </TR>
- </TBODY>
- </TABLE>
- <BR>
-</DIV>
-</BODY>
-</HTML>
diff --git a/tags/java-M1-20060518/java/samples/sca/supplychain/LICENSE.txt b/tags/java-M1-20060518/java/samples/sca/supplychain/LICENSE.txt
deleted file mode 100644
index d645695673..0000000000
--- a/tags/java-M1-20060518/java/samples/sca/supplychain/LICENSE.txt
+++ /dev/null
@@ -1,202 +0,0 @@
-
- Apache License
- Version 2.0, January 2004
- http://www.apache.org/licenses/
-
- TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
-
- 1. Definitions.
-
- "License" shall mean the terms and conditions for use, reproduction,
- and distribution as defined by Sections 1 through 9 of this document.
-
- "Licensor" shall mean the copyright owner or entity authorized by
- the copyright owner that is granting the License.
-
- "Legal Entity" shall mean the union of the acting entity and all
- other entities that control, are controlled by, or are under common
- control with that entity. For the purposes of this definition,
- "control" means (i) the power, direct or indirect, to cause the
- direction or management of such entity, whether by contract or
- otherwise, or (ii) ownership of fifty percent (50%) or more of the
- outstanding shares, or (iii) beneficial ownership of such entity.
-
- "You" (or "Your") shall mean an individual or Legal Entity
- exercising permissions granted by this License.
-
- "Source" form shall mean the preferred form for making modifications,
- including but not limited to software source code, documentation
- source, and configuration files.
-
- "Object" form shall mean any form resulting from mechanical
- transformation or translation of a Source form, including but
- not limited to compiled object code, generated documentation,
- and conversions to other media types.
-
- "Work" shall mean the work of authorship, whether in Source or
- Object form, made available under the License, as indicated by a
- copyright notice that is included in or attached to the work
- (an example is provided in the Appendix below).
-
- "Derivative Works" shall mean any work, whether in Source or Object
- form, that is based on (or derived from) the Work and for which the
- editorial revisions, annotations, elaborations, or other modifications
- represent, as a whole, an original work of authorship. For the purposes
- of this License, Derivative Works shall not include works that remain
- separable from, or merely link (or bind by name) to the interfaces of,
- the Work and Derivative Works thereof.
-
- "Contribution" shall mean any work of authorship, including
- the original version of the Work and any modifications or additions
- to that Work or Derivative Works thereof, that is intentionally
- submitted to Licensor for inclusion in the Work by the copyright owner
- or by an individual or Legal Entity authorized to submit on behalf of
- the copyright owner. For the purposes of this definition, "submitted"
- means any form of electronic, verbal, or written communication sent
- to the Licensor or its representatives, including but not limited to
- communication on electronic mailing lists, source code control systems,
- and issue tracking systems that are managed by, or on behalf of, the
- Licensor for the purpose of discussing and improving the Work, but
- excluding communication that is conspicuously marked or otherwise
- designated in writing by the copyright owner as "Not a Contribution."
-
- "Contributor" shall mean Licensor and any individual or Legal Entity
- on behalf of whom a Contribution has been received by Licensor and
- subsequently incorporated within the Work.
-
- 2. Grant of Copyright License. Subject to the terms and conditions of
- this License, each Contributor hereby grants to You a perpetual,
- worldwide, non-exclusive, no-charge, royalty-free, irrevocable
- copyright license to reproduce, prepare Derivative Works of,
- publicly display, publicly perform, sublicense, and distribute the
- Work and such Derivative Works in Source or Object form.
-
- 3. Grant of Patent License. Subject to the terms and conditions of
- this License, each Contributor hereby grants to You a perpetual,
- worldwide, non-exclusive, no-charge, royalty-free, irrevocable
- (except as stated in this section) patent license to make, have made,
- use, offer to sell, sell, import, and otherwise transfer the Work,
- where such license applies only to those patent claims licensable
- by such Contributor that are necessarily infringed by their
- Contribution(s) alone or by combination of their Contribution(s)
- with the Work to which such Contribution(s) was submitted. If You
- institute patent litigation against any entity (including a
- cross-claim or counterclaim in a lawsuit) alleging that the Work
- or a Contribution incorporated within the Work constitutes direct
- or contributory patent infringement, then any patent licenses
- granted to You under this License for that Work shall terminate
- as of the date such litigation is filed.
-
- 4. Redistribution. You may reproduce and distribute copies of the
- Work or Derivative Works thereof in any medium, with or without
- modifications, and in Source or Object form, provided that You
- meet the following conditions:
-
- (a) You must give any other recipients of the Work or
- Derivative Works a copy of this License; and
-
- (b) You must cause any modified files to carry prominent notices
- stating that You changed the files; and
-
- (c) You must retain, in the Source form of any Derivative Works
- that You distribute, all copyright, patent, trademark, and
- attribution notices from the Source form of the Work,
- excluding those notices that do not pertain to any part of
- the Derivative Works; and
-
- (d) If the Work includes a "NOTICE" text file as part of its
- distribution, then any Derivative Works that You distribute must
- include a readable copy of the attribution notices contained
- within such NOTICE file, excluding those notices that do not
- pertain to any part of the Derivative Works, in at least one
- of the following places: within a NOTICE text file distributed
- as part of the Derivative Works; within the Source form or
- documentation, if provided along with the Derivative Works; or,
- within a display generated by the Derivative Works, if and
- wherever such third-party notices normally appear. The contents
- of the NOTICE file are for informational purposes only and
- do not modify the License. You may add Your own attribution
- notices within Derivative Works that You distribute, alongside
- or as an addendum to the NOTICE text from the Work, provided
- that such additional attribution notices cannot be construed
- as modifying the License.
-
- You may add Your own copyright statement to Your modifications and
- may provide additional or different license terms and conditions
- for use, reproduction, or distribution of Your modifications, or
- for any such Derivative Works as a whole, provided Your use,
- reproduction, and distribution of the Work otherwise complies with
- the conditions stated in this License.
-
- 5. Submission of Contributions. Unless You explicitly state otherwise,
- any Contribution intentionally submitted for inclusion in the Work
- by You to the Licensor shall be under the terms and conditions of
- this License, without any additional terms or conditions.
- Notwithstanding the above, nothing herein shall supersede or modify
- the terms of any separate license agreement you may have executed
- with Licensor regarding such Contributions.
-
- 6. Trademarks. This License does not grant permission to use the trade
- names, trademarks, service marks, or product names of the Licensor,
- except as required for reasonable and customary use in describing the
- origin of the Work and reproducing the content of the NOTICE file.
-
- 7. Disclaimer of Warranty. Unless required by applicable law or
- agreed to in writing, Licensor provides the Work (and each
- Contributor provides its Contributions) on an "AS IS" BASIS,
- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
- implied, including, without limitation, any warranties or conditions
- of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
- PARTICULAR PURPOSE. You are solely responsible for determining the
- appropriateness of using or redistributing the Work and assume any
- risks associated with Your exercise of permissions under this License.
-
- 8. Limitation of Liability. In no event and under no legal theory,
- whether in tort (including negligence), contract, or otherwise,
- unless required by applicable law (such as deliberate and grossly
- negligent acts) or agreed to in writing, shall any Contributor be
- liable to You for damages, including any direct, indirect, special,
- incidental, or consequential damages of any character arising as a
- result of this License or out of the use or inability to use the
- Work (including but not limited to damages for loss of goodwill,
- work stoppage, computer failure or malfunction, or any and all
- other commercial damages or losses), even if such Contributor
- has been advised of the possibility of such damages.
-
- 9. Accepting Warranty or Additional Liability. While redistributing
- the Work or Derivative Works thereof, You may choose to offer,
- and charge a fee for, acceptance of support, warranty, indemnity,
- or other liability obligations and/or rights consistent with this
- License. However, in accepting such obligations, You may act only
- on Your own behalf and on Your sole responsibility, not on behalf
- of any other Contributor, and only if You agree to indemnify,
- defend, and hold each Contributor harmless for any liability
- incurred by, or claims asserted against, such Contributor by reason
- of your accepting any such warranty or additional liability.
-
- END OF TERMS AND CONDITIONS
-
- APPENDIX: How to apply the Apache License to your work.
-
- To apply the Apache License to your work, attach the following
- boilerplate notice, with the fields enclosed by brackets "[]"
- replaced with your own identifying information. (Don't include
- the brackets!) The text should be enclosed in the appropriate
- comment syntax for the file format. We also recommend that a
- file or class name and description of purpose be included on the
- same "printed page" as the copyright notice for easier
- identification within third-party archives.
-
- Copyright [yyyy] [name of copyright owner]
-
- Licensed 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.
diff --git a/tags/java-M1-20060518/java/samples/sca/supplychain/README.txt b/tags/java-M1-20060518/java/samples/sca/supplychain/README.txt
deleted file mode 100644
index 9b26d1690a..0000000000
--- a/tags/java-M1-20060518/java/samples/sca/supplychain/README.txt
+++ /dev/null
@@ -1,35 +0,0 @@
-Apache Tuscany M1 build (May, 2006)
-===================================
-
-http://incubator.apache.org/tuscany/
-
-Tuscany is an effort undergoing incubation at the Apache Software Foundation
-(ASF), sponsored by the Web Services PMC.
-
-Incubation is required of all newly accepted projects until a further review
-indicates that the infrastructure, communications, and decision making process
-have stabilized in a manner consistent with other successful ASF projects.
-
-While incubation status is not necessarily a reflection of the completeness or
-stability of the code, it does indicate that the project has yet to be fully
-endorsed by the ASF.
-
-
-Support
--------
-
-Any problem with this release can be reported to the Tuscany mailing list
-or in the JIRA issue tracker.
-
-Mailing list subscription:
- tuscany-dev-subscribe@ws.apache.org
-
-Jira:
- http://issues.apache.org/jira/browse/Tuscany
-
-
-Thank you for using Tuscany!
-
-
-The Tuscany Team.
-
diff --git a/tags/java-M1-20060518/java/samples/sca/supplychain/build.xml b/tags/java-M1-20060518/java/samples/sca/supplychain/build.xml
deleted file mode 100644
index 8311b1708b..0000000000
--- a/tags/java-M1-20060518/java/samples/sca/supplychain/build.xml
+++ /dev/null
@@ -1,52 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<!--
- * Copyright (c) 2005-2006 The Apache Software Foundation or its licensors, as applicable.
- *
- * Licensed 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 name="samples" default="compile">
- <property name="mainDir" value="../../.."/>
- <path id="javac.classpath">
- <fileset dir="${mainDir}/lib">
- <include name="tuscany-runtime-incubating-M1.jar"/>
- </fileset>
- </path>
- <path id="java.classpath">
- <fileset dir="${mainDir}/lib">
- <include name="tuscany-runtime-incubating-M1.jar"/>
- </fileset>
- <pathelement path="target/sample-supplychain.jar"/>
- </path>
-
- <target name="init">
- <mkdir dir="target/classes"/>
- </target>
-
- <target name="compile" depends="init">
- <javac srcdir="src/main/java" destdir="target/classes" debug="on" source="1.5" target="1.5">
- <classpath refid="javac.classpath"/>
- </javac>
- <copy todir="target/classes">
- <fileset dir="src/main/resources"/>
- </copy>
- <jar destfile="target/sample-supplychain.jar">
- <fileset dir="target/classes"/>
- </jar>
- </target>
-
- <target name="clean">
- <delete quiet="true" includeemptydirs="true">
- <fileset dir="target" excludes="sample-supplychain-incubating-M1.jar"/>
- </delete>
- </target>
-</project>
diff --git a/tags/java-M1-20060518/java/samples/sca/supplychain/pom.xml b/tags/java-M1-20060518/java/samples/sca/supplychain/pom.xml
deleted file mode 100644
index 3ee6f1e9f1..0000000000
--- a/tags/java-M1-20060518/java/samples/sca/supplychain/pom.xml
+++ /dev/null
@@ -1,52 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<!--
- * Copyright (c) 2005-2006 The Apache Software Foundation or its licensors, as applicable.
- *
- * Licensed 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>
- <parent>
- <groupId>org.apache.tuscany.samples.sca</groupId>
- <artifactId>tuscany-samples-sca</artifactId>
- <version>incubating-M1</version>
- </parent>
-
- <modelVersion>4.0.0</modelVersion>
- <artifactId>sample-supplychain</artifactId>
- <packaging>jar</packaging>
- <name>Tuscany Supply Chain Sample</name>
- <description>A sample implementation of an asynchronous supply chain application.</description>
- <version>incubating-M1</version>
-
- <dependencies>
- <dependency>
- <groupId>org.apache.tuscany</groupId>
- <artifactId>tuscany-core</artifactId>
- <version>${pom.version}</version>
- <scope>provided</scope>
- </dependency>
- <dependency>
- <groupId>org.apache.tuscany.sca.containers</groupId>
- <artifactId>tuscany-container-java</artifactId>
- <version>${pom.version}</version>
- <scope>provided</scope>
- </dependency>
-
- <dependency>
- <groupId>junit</groupId>
- <artifactId>junit</artifactId>
- <version>3.8.1</version>
- <scope>test</scope>
- </dependency>
- </dependencies>
-</project>
diff --git a/tags/java-M1-20060518/java/samples/sca/supplychain/readme.htm b/tags/java-M1-20060518/java/samples/sca/supplychain/readme.htm
deleted file mode 100644
index d7e2d92c53..0000000000
--- a/tags/java-M1-20060518/java/samples/sca/supplychain/readme.htm
+++ /dev/null
@@ -1,71 +0,0 @@
-<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
-<html><head><!-- Copyright (c) 2005 The Apache Software Foundation or its licensors, as applicable. Licensed 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. -->
-<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"> <meta http-equiv="Content-Style-Type" content="text/css"><title>Tuscany
-Supply Chain</title><!-- LINK rel="stylesheet" href="ait.css" type="text/css" -->
-<style type="text/css" media="all">
-@import url("../../../../css/maven-base.css");
-@import url("../../../../css/maven-theme.css");
-@import url("../../../../css/site.css");
-</style><link rel="stylesheet" href="./css/print.css" type="text/css" media="print"></head>
-<body><h2>Tuscany
-Supply Chain Sample</h2>
-<h3>Overview</h3>
-<p>The Tuscany supply chain sample shows using the Tuscany SCA
-runtime in a J2SE environment&nbsp;executing the SCA asynchronous API.</p>
-<h3>Location</h3>This
-sample is located &nbsp;in the samples\sca\supplychain directory.<br>
-<h3>Setup</h3>This sample depends on the Tuscany runtime
-and the sample jar,&nbsp;<span style="font-weight: bold;">sample-supplychain-incubating-M1.jar</span>
-, both of these must be available on the classpath to run the sample.
-<h3>Running</h3> In the directory&nbsp;samples\sca\supplychain
-use the JDK 1.5 java command to run the class <span style="font-weight: bold;">supplychain.SupplyChainClient</span> <pre>Linux: java -cp ../../../lib/tuscany-runtime-incubating-M1.jar:target\sample-supplychain-incubating-M1.jar supplychain.SupplyChainClient</pre>
-<pre>Windows: java -cp ../../../lib/tuscany-runtime-incubating-M1.jar;target\sample-supplychain-incubating-M1.jar supplychain.SupplyChainClient</pre><h3>Results</h3>
-<p>The sample when run should simply display to the standard
-output: <code></code></p><p>May 16, 2006
-3:12:13 PM org.apache.tuscany.core.client.TuscanyRuntime$Monitor
-moduleStarted<br>INFO: Started application module [supplychain]<br>Main
-thread Thread[main,5,main]<br>Work thread Thread[Thread-1,5,main]
-- <span style="font-weight: bold;">Order, submitted, fulfilled, shipped</span><code></code></p>
-<h3>Code Overview</h3>
-The source files are physically organized as shown below:
-<table style="text-align: left; width: 100%;" border="1" cellpadding="2" cellspacing="2"> <tbody> <tr><td>src<br>+---main<br>&nbsp;&nbsp;&nbsp;
-+---java<br>&nbsp;&nbsp;&nbsp;
-&brvbar;&nbsp;&nbsp; +---supplychain<br>&nbsp;&nbsp;&nbsp;
-&brvbar;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
-Customer.java<br>&nbsp;&nbsp;&nbsp;
-&brvbar;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
-CustomerComponentImpl.java<br>&nbsp;&nbsp;&nbsp;
-&brvbar;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
-Retailer.java<br>&nbsp;&nbsp;&nbsp;
-&brvbar;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
-RetailerComponentImpl.java<br>&nbsp;&nbsp;&nbsp;
-&brvbar;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
-Shipper.java<br>&nbsp;&nbsp;&nbsp;
-&brvbar;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
-ShipperComponentImpl.java<br>&nbsp;&nbsp;&nbsp;
-&brvbar;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
-SupplyChainClient.java<br>&nbsp;&nbsp;&nbsp;
-&brvbar;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
-Warehouse.java<br>&nbsp;&nbsp;&nbsp;
-&brvbar;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
-WarehouseComponentImpl.java<br>&nbsp;&nbsp;&nbsp;
-&brvbar;<br>&nbsp;&nbsp;&nbsp; +---resources<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
-logging.properties<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
-sca.module<br></td></tr></tbody></table>
-<br><table style="text-align: left; width: 879px; height: 154px;" border="0" cellpadding="2" cellspacing="2"> <tbody> <tr> <td style="vertical-align: top;">Customer.java</td>
-<td>Defines the Java interface implemented by the Customer
-component.</td>
-</tr> <tr> <td style="vertical-align: top;">CustomerComponentImpl.java</td>
-<td>Implements the SCA Customer component.</td>
-</tr> <tr> <td style="vertical-align: top;">Retailer.java</td>
-<td>Defines the Java interface implemented by the Retailer
-component.</td>
-</tr><tr><td>RetailerComponentImpl.java</td><td>Implements
-the SCA&nbsp;RetailerComponent component.</td></tr><tr><td>Shipper.java</td><td>Defines
-the Java interface implemented by the&nbsp;Shipper component</td></tr><tr><td>ShipperComponentImpl.java</td><td>Implements
-the SCA&nbsp;ShipperComponent component.</td></tr><tr><td>SupplyChainClient.java</td><td>SupplyChainClient.java
-loads SCA runtime</td></tr><tr><td>Warehouse.java</td><td>Defines
-the Java interface implemented by the&nbsp;Warehouse component.</td></tr><tr><td>WarehouseComponentImpl.java</td><td>Implements
-the SCA&nbsp;WarehouseComponent component.</td></tr><tr><td>logging.properties</td><td>Configures
-Tuscany logging. Provides the output of this demo.</td></tr><tr><td>sca.module</td><td>Defines
-and assembles the SCA components</td></tr> </tbody></table><br></body></html> \ No newline at end of file
diff --git a/tags/java-M1-20060518/java/samples/sca/supplychain/src/main/java/supplychain/Customer.java b/tags/java-M1-20060518/java/samples/sca/supplychain/src/main/java/supplychain/Customer.java
deleted file mode 100644
index 5d35802833..0000000000
--- a/tags/java-M1-20060518/java/samples/sca/supplychain/src/main/java/supplychain/Customer.java
+++ /dev/null
@@ -1,31 +0,0 @@
-/**
- *
- * Copyright 2005 The Apache Software Foundation or its licensors, as applicable.
- *
- * Licensed 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 supplychain;
-
-import org.osoa.sca.annotations.OneWay;
-
-/**
- * This is the business interface of the Customer service component.
- */
-public interface Customer {
-
- public void purchaseGoods();
-
- @OneWay
- public void notifyShipment(String order);
-
-}
diff --git a/tags/java-M1-20060518/java/samples/sca/supplychain/src/main/java/supplychain/CustomerComponentImpl.java b/tags/java-M1-20060518/java/samples/sca/supplychain/src/main/java/supplychain/CustomerComponentImpl.java
deleted file mode 100644
index 2ec01ebbc8..0000000000
--- a/tags/java-M1-20060518/java/samples/sca/supplychain/src/main/java/supplychain/CustomerComponentImpl.java
+++ /dev/null
@@ -1,44 +0,0 @@
-/**
- *
- * Copyright 2005 The Apache Software Foundation or its licensors, as applicable.
- *
- * Licensed 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 supplychain;
-
-import org.osoa.sca.annotations.Reference;
-import org.osoa.sca.annotations.Service;
-
-/**
- * This class implements the Customer service component.
- */
-@Service(Customer.class)
-public class CustomerComponentImpl implements Customer {
-
- private Retailer retailer;
-
- @Reference
- public void setRetailer(Retailer retailer) {
- this.retailer = retailer;
- }
-
- public void purchaseGoods() {
- retailer.submitOrder("Order");
- }
-
- public void notifyShipment(String order) {
- System.out.print("Work thread " + Thread.currentThread() + " - ");
- System.out.println(order);
- }
-
-}
diff --git a/tags/java-M1-20060518/java/samples/sca/supplychain/src/main/java/supplychain/Retailer.java b/tags/java-M1-20060518/java/samples/sca/supplychain/src/main/java/supplychain/Retailer.java
deleted file mode 100644
index 9496e730f5..0000000000
--- a/tags/java-M1-20060518/java/samples/sca/supplychain/src/main/java/supplychain/Retailer.java
+++ /dev/null
@@ -1,26 +0,0 @@
-/**
- *
- * Copyright 2005 The Apache Software Foundation or its licensors, as applicable.
- *
- * Licensed 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 supplychain;
-
-/**
- * This is the business interface of the Retailer service component.
- */
-public interface Retailer {
-
- public void submitOrder(String order);
-
-}
diff --git a/tags/java-M1-20060518/java/samples/sca/supplychain/src/main/java/supplychain/RetailerComponentImpl.java b/tags/java-M1-20060518/java/samples/sca/supplychain/src/main/java/supplychain/RetailerComponentImpl.java
deleted file mode 100644
index 4079bd2aea..0000000000
--- a/tags/java-M1-20060518/java/samples/sca/supplychain/src/main/java/supplychain/RetailerComponentImpl.java
+++ /dev/null
@@ -1,39 +0,0 @@
-/**
- *
- * Copyright 2005 The Apache Software Foundation or its licensors, as applicable.
- *
- * Licensed 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 supplychain;
-
-import org.osoa.sca.annotations.Reference;
-import org.osoa.sca.annotations.Service;
-
-/**
- * This class implements the Customer service component.
- */
-@Service(Retailer.class)
-public class RetailerComponentImpl implements Retailer {
-
- private Warehouse warehouse;
-
- @Reference
- public void setWarehouse(Warehouse warehouse) {
- this.warehouse = warehouse;
- }
-
- public void submitOrder(String order) {
- warehouse.fulfillOrder(order + ", submitted");
- }
-
-}
diff --git a/tags/java-M1-20060518/java/samples/sca/supplychain/src/main/java/supplychain/Shipper.java b/tags/java-M1-20060518/java/samples/sca/supplychain/src/main/java/supplychain/Shipper.java
deleted file mode 100644
index 94d60d99a2..0000000000
--- a/tags/java-M1-20060518/java/samples/sca/supplychain/src/main/java/supplychain/Shipper.java
+++ /dev/null
@@ -1,26 +0,0 @@
-/**
- *
- * Copyright 2005 The Apache Software Foundation or its licensors, as applicable.
- *
- * Licensed 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 supplychain;
-
-/**
- * This is the business interface of the Shipper service component.
- */
-public interface Shipper {
-
- public void processShipment(String order);
-
-}
diff --git a/tags/java-M1-20060518/java/samples/sca/supplychain/src/main/java/supplychain/ShipperComponentImpl.java b/tags/java-M1-20060518/java/samples/sca/supplychain/src/main/java/supplychain/ShipperComponentImpl.java
deleted file mode 100644
index 4283bed795..0000000000
--- a/tags/java-M1-20060518/java/samples/sca/supplychain/src/main/java/supplychain/ShipperComponentImpl.java
+++ /dev/null
@@ -1,39 +0,0 @@
-/**
- *
- * Copyright 2005 The Apache Software Foundation or its licensors, as applicable.
- *
- * Licensed 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 supplychain;
-
-import org.osoa.sca.annotations.Reference;
-import org.osoa.sca.annotations.Service;
-
-/**
- * This class implements the Warehouse service component.
- */
-@Service(Shipper.class)
-public class ShipperComponentImpl implements Shipper {
-
- private Customer customer;
-
- @Reference
- public void setCustomer(Customer customer) {
- this.customer = customer;
- }
-
- public void processShipment(String order) {
- customer.notifyShipment(order + ", shipped");
- }
-
-}
diff --git a/tags/java-M1-20060518/java/samples/sca/supplychain/src/main/java/supplychain/SupplyChainClient.java b/tags/java-M1-20060518/java/samples/sca/supplychain/src/main/java/supplychain/SupplyChainClient.java
deleted file mode 100644
index de30da9428..0000000000
--- a/tags/java-M1-20060518/java/samples/sca/supplychain/src/main/java/supplychain/SupplyChainClient.java
+++ /dev/null
@@ -1,57 +0,0 @@
-/**
- *
- * Copyright 2005 The Apache Software Foundation or its licensors, as applicable.
- *
- * Licensed 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 supplychain;
-
-import java.util.Properties;
-import java.util.logging.Level;
-import java.util.logging.LogManager;
-
-import org.apache.tuscany.common.monitor.MonitorFactory;
-import org.apache.tuscany.common.monitor.impl.JavaLoggingMonitorFactory;
-import org.apache.tuscany.core.client.TuscanyRuntime;
-import org.osoa.sca.CurrentModuleContext;
-import org.osoa.sca.ModuleContext;
-
-/**
- * This client program shows how to create an SCA runtime, start it,
- * locate a Customer service component and invoke it.
- */
-public class SupplyChainClient {
-
- public static final void main(String[] args) throws Exception {
-
- // Setup Tuscany monitoring to use java.util.logging
- LogManager.getLogManager().readConfiguration(SupplyChainClient.class.getResourceAsStream("/logging.properties"));
- Properties levels = new Properties();
- MonitorFactory monitorFactory = new JavaLoggingMonitorFactory(levels, Level.FINEST, "MonitorMessages");
-
- // Obtain Tuscany runtime
- TuscanyRuntime tuscany = new TuscanyRuntime("supplychain", null, monitorFactory);
-
- // Associate the application module component with this thread
- tuscany.start();
-
- // Obtain SCA module context.
- ModuleContext moduleContext = CurrentModuleContext.getContext();
-
- // Locate the HelloWorld service component and invoke it
- Customer customer = (Customer) moduleContext.locateService("CustomerComponent");
- System.out.println("Main thread " + Thread.currentThread());
- customer.purchaseGoods();
-
- }
-}
diff --git a/tags/java-M1-20060518/java/samples/sca/supplychain/src/main/java/supplychain/Warehouse.java b/tags/java-M1-20060518/java/samples/sca/supplychain/src/main/java/supplychain/Warehouse.java
deleted file mode 100644
index de52e71c1e..0000000000
--- a/tags/java-M1-20060518/java/samples/sca/supplychain/src/main/java/supplychain/Warehouse.java
+++ /dev/null
@@ -1,26 +0,0 @@
-/**
- *
- * Copyright 2005 The Apache Software Foundation or its licensors, as applicable.
- *
- * Licensed 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 supplychain;
-
-/**
- * This is the business interface of the Warehouse service component.
- */
-public interface Warehouse {
-
- public void fulfillOrder(String order);
-
-}
diff --git a/tags/java-M1-20060518/java/samples/sca/supplychain/src/main/java/supplychain/WarehouseComponentImpl.java b/tags/java-M1-20060518/java/samples/sca/supplychain/src/main/java/supplychain/WarehouseComponentImpl.java
deleted file mode 100644
index 96e0f2795b..0000000000
--- a/tags/java-M1-20060518/java/samples/sca/supplychain/src/main/java/supplychain/WarehouseComponentImpl.java
+++ /dev/null
@@ -1,39 +0,0 @@
-/**
- *
- * Copyright 2005 The Apache Software Foundation or its licensors, as applicable.
- *
- * Licensed 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 supplychain;
-
-import org.osoa.sca.annotations.Reference;
-import org.osoa.sca.annotations.Service;
-
-/**
- * This class implements the Warehouse service component.
- */
-@Service(Warehouse.class)
-public class WarehouseComponentImpl implements Warehouse {
-
- private Shipper shipper;
-
- @Reference
- public void setShipper(Shipper shipper) {
- this.shipper = shipper;
- }
-
- public void fulfillOrder(String order) {
- shipper.processShipment(order + ", fulfilled");
- }
-
-}
diff --git a/tags/java-M1-20060518/java/samples/sca/supplychain/src/main/resources/logging.properties b/tags/java-M1-20060518/java/samples/sca/supplychain/src/main/resources/logging.properties
deleted file mode 100644
index 58407bd5a9..0000000000
--- a/tags/java-M1-20060518/java/samples/sca/supplychain/src/main/resources/logging.properties
+++ /dev/null
@@ -1,27 +0,0 @@
-# Copyright (c) 2006 The Apache Software Foundation or its licensors, as applicable.
-#
-# Licensed 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.
-#
-# $Rev$ $Date$
-#
-
-# Custom logging configuration for Tuscany samples
-# By default, only INFO level logging is enabled and ALL messages get sent to the console
-# For more messages from the runtime, uncomment specific settings at the end of this file
-handlers = java.util.logging.ConsoleHandler
-java.util.logging.ConsoleHandler.level = ALL
-java.util.logging.ConsoleHandler.formatter = java.util.logging.SimpleFormatter
-.level=INFO
-
-# Uncomment the next setting to get all Tuscany messages (this will be a lot)
-#org.apache.tuscany.level=FINEST \ No newline at end of file
diff --git a/tags/java-M1-20060518/java/samples/sca/supplychain/src/main/resources/sca.module b/tags/java-M1-20060518/java/samples/sca/supplychain/src/main/resources/sca.module
deleted file mode 100644
index e44798b89f..0000000000
--- a/tags/java-M1-20060518/java/samples/sca/supplychain/src/main/resources/sca.module
+++ /dev/null
@@ -1,48 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<!--
- Copyright (c) 2005 The Apache Software Foundation or its licensors, as applicable.
-
- Licensed 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.
- -->
-<module xmlns="http://www.osoa.org/xmlns/sca/0.9" xmlns:v="http://www.osoa.org/xmlns/sca/values/0.9"
- name="supplychain">
-
- <component name="CustomerComponent">
- <implementation.java class="supplychain.CustomerComponentImpl"/>
- <references>
- <v:retailer>RetailerComponent</v:retailer>
- </references>
- </component>
-
- <component name="RetailerComponent">
- <implementation.java class="supplychain.RetailerComponentImpl"/>
- <references>
- <v:warehouse>WarehouseComponent</v:warehouse>
- </references>
- </component>
-
- <component name="WarehouseComponent">
- <implementation.java class="supplychain.WarehouseComponentImpl"/>
- <references>
- <v:shipper>ShipperComponent</v:shipper>
- </references>
- </component>
-
- <component name="ShipperComponent">
- <implementation.java class="supplychain.ShipperComponentImpl"/>
- <references>
- <v:customer>CustomerComponent</v:customer>
- </references>
- </component>
-
-</module>
diff --git a/tags/java-M1-20060518/java/samples/sca/supplychain/src/test/java/supplychain/SupplyChainClientTestCase.java b/tags/java-M1-20060518/java/samples/sca/supplychain/src/test/java/supplychain/SupplyChainClientTestCase.java
deleted file mode 100644
index ecc3b17985..0000000000
--- a/tags/java-M1-20060518/java/samples/sca/supplychain/src/test/java/supplychain/SupplyChainClientTestCase.java
+++ /dev/null
@@ -1,51 +0,0 @@
-/**
- *
- * Copyright 2005 The Apache Software Foundation or its licensors, as applicable.
- *
- * Licensed 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 supplychain;
-
-import junit.framework.TestCase;
-
-import org.apache.tuscany.core.client.TuscanyRuntime;
-import org.osoa.sca.CurrentModuleContext;
-import org.osoa.sca.ModuleContext;
-
-import supplychain.Customer;
-
-/**
- * This client program shows how to create an SCA runtime, start it,
- * locate a simple HelloWorld service component and invoke it.
- */
-public class SupplyChainClientTestCase extends TestCase {
-
- public void test() throws Exception {
-
- // Obtain Tuscany runtime
- TuscanyRuntime tuscany = new TuscanyRuntime("hello", null);
-
- // Associate the application module component with this thread
- tuscany.start();
-
- // Obtain SCA module context.
- ModuleContext moduleContext = CurrentModuleContext.getContext();
-
- // Locate the HelloWorld service component and invoke it
- // Locate the CustomerComponent service component and invoke it
- Customer customer = (Customer) moduleContext.locateService("CustomerComponent");
- System.out.println("Main thread " + Thread.currentThread());
- customer.purchaseGoods();
-
- }
-}