Author: rfeng
Date: Tue Sep 18 00:35:18 2007
New Revision: 576748
URL: http://svn.apache.org/viewvc?rev=576748&view=rev
Log:
Add the 1st cut of client/server programs, readme and ant script
Added:
incubator/tuscany/branches/sca-java-1.0/samples/quote-xquery/README
incubator/tuscany/branches/sca-java-1.0/samples/quote-xquery/build.xml
(with props)
incubator/tuscany/branches/sca-java-1.0/samples/quote-xquery/src/main/java/xquery/quote/XQueryQuoteClient.java
(with props)
incubator/tuscany/branches/sca-java-1.0/samples/quote-xquery/src/main/java/xquery/quote/XQueryQuoteServer.java
(with props)
Added: incubator/tuscany/branches/sca-java-1.0/samples/quote-xquery/README
URL:
http://svn.apache.org/viewvc/incubator/tuscany/branches/sca-java-1.0/samples/quote-xquery/README?rev=576748&view=auto
==============================================================================
--- incubator/tuscany/branches/sca-java-1.0/samples/quote-xquery/README (added)
+++ incubator/tuscany/branches/sca-java-1.0/samples/quote-xquery/README Tue Sep
18 00:35:18 2007
@@ -0,0 +1,318 @@
+Quote Xquery Sample
+===================
+
+ This sample covers the most important integration scenarios for the xquery
+ implementation type and its corresponding saxon data bindings.
+
+If you just want to run it to see what happens open two command prompts (one
for the server
+and the other for the client), navigate to this sample directory and do:
+
+ant run-server
+ant run
+
+OR if you don't have ant, on Windows do
+
+In the directory samples\quote-xquery use the JDK 1.5 java command to run the
class xquery.quote.XQueryQuoteClient
+
+Linux: java -cp
../../lib/tuscany-sca-manifest.jar:target/sample-quote-xquery.jar
xquery.quote.XQueryQuoteServer
+Linux: java -cp
../../lib/tuscany-sca-manifest.jar:target/sample-quote-xquery.jar
xquery.quote.XQueryQuoteClient
+
+Windows: java -cp
..\..\lib\tuscany-sca-manifest.jar;target\sample-quote-xquery.jar
xquery.quote.XQueryQuoteServer
+Windows: java -cp
..\..\lib\tuscany-sca-manifest.jar;target\sample-quote-xquery.jar
xquery.quote.XQueryQuoteClient
+
+Results
+----------
+The sample when run should simply display on the standard output some startup
messages followed by:
+
+The service side:
+Sep 18, 2007 12:28:57 AM org.apache.tuscany.sca.http.jetty.JettyServer
addServletMapping
+INFO: Added Servlet mapping: http://localhost:8085/QuoteJoinService
+Sep 18, 2007 12:28:57 AM org.apache.tuscany.sca.http.jetty.JettyServer
addServletMapping
+INFO: Added Servlet mapping: http://localhost:8085/AvailQuoteProviderService
+XQuery Quote server started (press enter to shutdown)
+
+The client side:
+Input quote for the price list:
+<?xml version="1.0" encoding="ASCII"?>
+<priceQuote xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:pri="http://www.example.org/price" xsi:type="pri:PriceQuote">
+ <customerName>Acme Inc</customerName>
+ <shipAddress street="12 Springs Rd" city="Morris Plains" state="nj"
zip="07960"/>
+ <priceRequests>
+ <priceRequest>
+ <widgetId>12</widgetId>
+ <price>1.0</price>
+ </priceRequest>
+ <priceRequest>
+ <widgetId>134</widgetId>
+ <price>34.1</price>
+ </priceRequest>
+ <priceRequest>
+ <widgetId>211</widgetId>
+ <price>10.0</price>
+ </priceRequest>
+ </priceRequests>
+</priceQuote>
+
+Input quote for the availability:
+<?xml version="1.0" encoding="ASCII"?>
+<availQuote xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:ava="http://www.example.org/avail" xsi:type="ava:AvailQuote">
+ <availRequest>
+ <widgetId>12</widgetId>
+ <requestedQuantity>10</requestedQuantity>
+ <quantityAvail>true</quantityAvail>
+ <shipDate>2003-03-22</shipDate>
+ </availRequest>
+ <availRequest>
+ <widgetId>134</widgetId>
+ <requestedQuantity>345</requestedQuantity>
+ <quantityAvail>false</quantityAvail>
+ <shipDate>BackOrder</shipDate>
+ </availRequest>
+ <availRequest>
+ <widgetId>211</widgetId>
+ <requestedQuantity>100</requestedQuantity>
+ <quantityAvail>true</quantityAvail>
+ <shipDate>2003-04-21</shipDate>
+ </availRequest>
+</availQuote>
+
+
+Output quote from local join:
+<?xml version="1.0" encoding="ASCII"?>
+<quote xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:quo="http://www.example.org/quote" xsi:type="quo:Quote">
+ <name>Acme Inc</name>
+ <address>12 Springs Rd,Morris Plains,NJ,07960</address>
+ <quoteResponse>
+ <widgetId>12</widgetId>
+ <unitPrice>1.0</unitPrice>
+ <requestedQuantity>10</requestedQuantity>
+ <fillOrder>true</fillOrder>
+ <shipDate>2003-03-22</shipDate>
+ <taxRate>0.1</taxRate>
+ <totalCost>11.0</totalCost>
+ </quoteResponse>
+ <quoteResponse>
+ <widgetId>134</widgetId>
+ <unitPrice>34.1</unitPrice>
+ <requestedQuantity>345</requestedQuantity>
+ <fillOrder>false</fillOrder>
+ <shipDate>BackOrder</shipDate>
+ <taxRate>0.1</taxRate>
+ <totalCost>0.0</totalCost>
+ </quoteResponse>
+ <quoteResponse>
+ <widgetId>211</widgetId>
+ <unitPrice>10.0</unitPrice>
+ <requestedQuantity>100</requestedQuantity>
+ <fillOrder>true</fillOrder>
+ <shipDate>2003-04-21</shipDate>
+ <taxRate>0.1</taxRate>
+ <totalCost>1100.0</totalCost>
+ </quoteResponse>
+</quote>
+
+
+Output quote from local join (second invokation):
+<?xml version="1.0" encoding="ASCII"?>
+<quote xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:quo="http://www.example.org/quote" xsi:type="quo:Quote">
+ <name>Acme Inc</name>
+ <address>12 Springs Rd,Morris Plains,NJ,07960</address>
+ <quoteResponse>
+ <widgetId>12</widgetId>
+ <unitPrice>1.0</unitPrice>
+ <requestedQuantity>10</requestedQuantity>
+ <fillOrder>true</fillOrder>
+ <shipDate>2003-03-22</shipDate>
+ <taxRate>0.2</taxRate>
+ <totalCost>12.0</totalCost>
+ </quoteResponse>
+ <quoteResponse>
+ <widgetId>134</widgetId>
+ <unitPrice>34.1</unitPrice>
+ <requestedQuantity>345</requestedQuantity>
+ <fillOrder>false</fillOrder>
+ <shipDate>BackOrder</shipDate>
+ <taxRate>0.2</taxRate>
+ <totalCost>0.0</totalCost>
+ </quoteResponse>
+ <quoteResponse>
+ <widgetId>211</widgetId>
+ <unitPrice>10.0</unitPrice>
+ <requestedQuantity>100</requestedQuantity>
+ <fillOrder>true</fillOrder>
+ <shipDate>2003-04-21</shipDate>
+ <taxRate>0.2</taxRate>
+ <totalCost>1200.0</totalCost>
+ </quoteResponse>
+</quote>
+
+
+Output quote from web service join:
+<?xml version="1.0" encoding="ASCII"?>
+<quote xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:quo="http://www.example.org/quote" xsi:type="quo:Quote">
+ <name>Acme Inc</name>
+ <address>12 Springs Rd,Morris Plains,NJ,07960</address>
+ <quoteResponse>
+ <widgetId>12</widgetId>
+ <unitPrice>1.0</unitPrice>
+ <requestedQuantity>10</requestedQuantity>
+ <fillOrder>true</fillOrder>
+ <shipDate>2003-03-22</shipDate>
+ <taxRate>0.1</taxRate>
+ <totalCost>11.0</totalCost>
+ </quoteResponse>
+ <quoteResponse>
+ <widgetId>134</widgetId>
+ <unitPrice>34.1</unitPrice>
+ <requestedQuantity>345</requestedQuantity>
+ <fillOrder>false</fillOrder>
+ <shipDate>BackOrder</shipDate>
+ <taxRate>0.1</taxRate>
+ <totalCost>0.0</totalCost>
+ </quoteResponse>
+ <quoteResponse>
+ <widgetId>211</widgetId>
+ <unitPrice>10.0</unitPrice>
+ <requestedQuantity>100</requestedQuantity>
+ <fillOrder>true</fillOrder>
+ <shipDate>2003-04-21</shipDate>
+ <taxRate>0.1</taxRate>
+ <totalCost>1100.0</totalCost>
+ </quoteResponse>
+</quote>
+
+
+Output quote from properties join:
+<?xml version="1.0" encoding="ASCII"?>
+<quote xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:quo="http://www.example.org/quote" xsi:type="quo:Quote">
+ <name>Acme Inc</name>
+ <address>12 Springs Rd,Morris Plains,NJ,07960</address>
+ <quoteResponse>
+ <widgetId>12</widgetId>
+ <unitPrice>1.0</unitPrice>
+ <requestedQuantity>10</requestedQuantity>
+ <fillOrder>true</fillOrder>
+ <shipDate>2003-03-22</shipDate>
+ <taxRate>0.1</taxRate>
+ <totalCost>11.0</totalCost>
+ </quoteResponse>
+ <quoteResponse>
+ <widgetId>134</widgetId>
+ <unitPrice>34.1</unitPrice>
+ <requestedQuantity>345</requestedQuantity>
+ <fillOrder>false</fillOrder>
+ <shipDate>BackOrder</shipDate>
+ <taxRate>0.1</taxRate>
+ <totalCost>0.0</totalCost>
+ </quoteResponse>
+ <quoteResponse>
+ <widgetId>211</widgetId>
+ <unitPrice>10.0</unitPrice>
+ <requestedQuantity>100</requestedQuantity>
+ <fillOrder>true</fillOrder>
+ <shipDate>2003-04-21</shipDate>
+ <taxRate>0.1</taxRate>
+ <totalCost>1100.0</totalCost>
+ </quoteResponse>
+</quote>
+
+
+Output quote from external references join:
+<?xml version="1.0" encoding="ASCII"?>
+<quote xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:quo="http://www.example.org/quote" xsi:type="quo:Quote">
+ <name>Acme Inc</name>
+ <address>12 Springs Rd,Morris Plains,NJ,07960</address>
+ <quoteResponse>
+ <widgetId>12</widgetId>
+ <unitPrice>1.0</unitPrice>
+ <requestedQuantity>10</requestedQuantity>
+ <fillOrder>true</fillOrder>
+ <shipDate>2003-03-22</shipDate>
+ <taxRate>0.1</taxRate>
+ <totalCost>11.0</totalCost>
+ </quoteResponse>
+ <quoteResponse>
+ <widgetId>134</widgetId>
+ <unitPrice>34.1</unitPrice>
+ <requestedQuantity>345</requestedQuantity>
+ <fillOrder>false</fillOrder>
+ <shipDate>BackOrder</shipDate>
+ <taxRate>0.1</taxRate>
+ <totalCost>0.0</totalCost>
+ </quoteResponse>
+ <quoteResponse>
+ <widgetId>211</widgetId>
+ <unitPrice>10.0</unitPrice>
+ <requestedQuantity>100</requestedQuantity>
+ <fillOrder>true</fillOrder>
+ <shipDate>2003-04-21</shipDate>
+ <taxRate>0.1</taxRate>
+ <totalCost>1100.0</totalCost>
+ </quoteResponse>
+</quote>
+
+
+
+Sample Overview
+---------------
+
+ 1. There is a central component for invoking the different
+ scenarios: QuoteJoinLocalComponent
+ 2. It provides the following cases:
+ - invoke XQuery component in the current assembly, by providing all needed
+ information as input parameters
+ - invoke XQuery component in external assembly, which is exposed as a web
+ service
+ - invoke XQuery component in the current assembly, which retrieves the
needed
+ information from the component properties
+ - invoke XQuery component in the current assembly, which retrieves the
needed
+ information from its references to other components:
+ - one of the components is in the current assembly
+ - the other component is in anther assembly and it is exposed (and
accessed)
+ as web service
+
+ 3. All of the XQuery components have reference to a component for
calculation of the
+ total price
+ 4. SDO is used for data interchange
+
+src/main/resources
+ wsdl
+ AvailQuote.xsd
+ PriceQuote.xsd
+ Quote.xsd
+ quotejoin.wsdl
+ META-INF
+ sca
+ quote_join_external_references.xq --- the external references
xquery script
+ quote_join_properties.xq --- the property-based join xquery script
+ quote_join.xq --- the join xquery script
+ xqueryquotews.composite --- composite file for the client side
+ xqueryquotewsclient.composite --- composite file for the service side
+
+ build.xml - the Ant build file
+ pom.xml - the Maven build file
+
+
+Building And Running The Sample Using Ant
+-----------------------------------------
+cd quote-xquery
+ant compile
+ant run-server
+
+you should see:
+Buildfile: build.xml
+
+run:
+
+
+
+Building And Running The Sample Using Maven
+-------------------------------------------
+With either the binary or source distributions the sample can be built and run
+using Maven as follows.
+
+cd quote-xquery
+mvn
+
+
+This shows that the Junit test cases have run successfully.
Added: incubator/tuscany/branches/sca-java-1.0/samples/quote-xquery/build.xml
URL:
http://svn.apache.org/viewvc/incubator/tuscany/branches/sca-java-1.0/samples/quote-xquery/build.xml?rev=576748&view=auto
==============================================================================
--- incubator/tuscany/branches/sca-java-1.0/samples/quote-xquery/build.xml
(added)
+++ incubator/tuscany/branches/sca-java-1.0/samples/quote-xquery/build.xml Tue
Sep 18 00:35:18 2007
@@ -0,0 +1,77 @@
+<!--
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied. See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+-->
+<project name="sample-quote-xquery" default="compile">
+ <property name="test.class" value="xquery.quote.XQueryQuoteClient" />
+ <property name="test.server.class"
value="xquery.quote.XQueryQuoteServer" />
+ <property name="test.jar" value="sample-quote-xquery.jar" />
+
+ <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>
+ <pathelement
location="../../lib/tuscany-sca-manifest.jar" />
+ </classpath>
+ </javac>
+ <copy todir="target/classes">
+ <fileset dir="src/main/resources" />
+ </copy>
+ <jar destfile="target/${test.jar}" basedir="target/classes">
+ <manifest>
+ <attribute name="Main-Class"
value="${test.class}" />
+ </manifest>
+ </jar>
+
+ </target>
+
+ <target name="run-classes">
+ <java classname="${test.class}" fork="true">
+ <classpath>
+ <pathelement path="target/classes" />
+ <pathelement
location="../../lib/tuscany-sca-manifest.jar" />
+ </classpath>
+ </java>
+ </target>
+
+ <target name="run" depends="compile">
+ <java classname="${test.class}" fork="true">
+ <classpath>
+ <pathelement path="target/${test.jar}" />
+ <pathelement
location="../../lib/tuscany-sca-manifest.jar" />
+ </classpath>
+ </java>
+ </target>
+
+ <target name="run-server" depends="compile">
+ <java classname="${test.server.class}" fork="true">
+ <classpath>
+ <pathelement path="target/${test.jar}" />
+ <pathelement location="../../lib/tuscany-sca-manifest.jar" />
+ </classpath>
+ </java>
+ </target>
+
+ <target name="clean">
+ <delete quiet="true" includeemptydirs="true">
+ <fileset dir="target" />
+ </delete>
+ </target>
+</project>
Propchange:
incubator/tuscany/branches/sca-java-1.0/samples/quote-xquery/build.xml
------------------------------------------------------------------------------
svn:eol-style = native
Propchange:
incubator/tuscany/branches/sca-java-1.0/samples/quote-xquery/build.xml
------------------------------------------------------------------------------
svn:keywords = Rev Date
Added:
incubator/tuscany/branches/sca-java-1.0/samples/quote-xquery/src/main/java/xquery/quote/XQueryQuoteClient.java
URL:
http://svn.apache.org/viewvc/incubator/tuscany/branches/sca-java-1.0/samples/quote-xquery/src/main/java/xquery/quote/XQueryQuoteClient.java?rev=576748&view=auto
==============================================================================
---
incubator/tuscany/branches/sca-java-1.0/samples/quote-xquery/src/main/java/xquery/quote/XQueryQuoteClient.java
(added)
+++
incubator/tuscany/branches/sca-java-1.0/samples/quote-xquery/src/main/java/xquery/quote/XQueryQuoteClient.java
Tue Sep 18 00:35:18 2007
@@ -0,0 +1,145 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied. See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ */
+package xquery.quote;
+
+import org.apache.tuscany.sca.host.embedded.SCADomain;
+import org.example.avail.AvailQuote;
+import org.example.price.PriceQuote;
+import org.example.quote.Quote;
+
+import commonj.sdo.DataObject;
+
+/**
+ * Integration test for the XQuery implementation type
+ * @version $Rev$ $Date$
+ * This test covers the most important integration scenarios for the xquery
+ * implementation type and its corresponding saxon data bindings:
+ *
+ * 1. There is a central component for invoking the different
+ * scenarios: QuoteJoinLocalComponent
+ * 2. It provides the following tests:
+ * - invoke XQuery component in the current assembly, by providing all
needed
+ * information as input parameters
+ * - invoke XQuery component in external assembly, which is exposed as a
web
+ * service
+ * - invoke XQuery component in the current assembly, which retrieves the
needed
+ * information from the component properties
+ * - invoke XQuery component in the current assembly, which retrieves the
needed
+ * information from its references to other components:
+ * - one of the components is in the current assembly
+ * - the other component is in anther assembly and it is exposed (and
accessed)
+ * as web service
+ *
+ * 3. All of the XQuery components have reference to a component for
calculation of the
+ * total price
+ * 4. SDO is used for data interchange
+ */
+public class XQueryQuoteClient {
+
+ public static boolean SHOW_DEBUG_MSG = false;
+
+ private SCADomain scaDomain;
+
+ private QuoteJoinLocal quoteJoinLocal;
+
+ public void startClient() throws Exception {
+ try {
+ scaDomain = SCADomain.newInstance("xqueryquotewsclient.composite");
+ quoteJoinLocal = scaDomain.getService(QuoteJoinLocal.class,
"QuoteJoinLocalComponent");
+ } catch (Throwable t) {
+ t.printStackTrace();
+ }
+ }
+
+ public void testQuoteJoin() {
+ AvailQuote availQuote = TestHelper.buildAvailQuoteData();
+ PriceQuote priceQuote = TestHelper.buildPriceQuoteData();
+
+ if (SHOW_DEBUG_MSG) {
+ System.out.println("Input quote for the price list:");
+ TestHelper.serializeToSystemOut((DataObject)priceQuote,
"priceQuote");
+ System.out.println();
+ System.out.println("Input quote for the availability:");
+ TestHelper.serializeToSystemOut((DataObject)availQuote,
"availQuote");
+ System.out.println();
+ }
+
+ Quote quote = quoteJoinLocal.joinPriceAndAvailQuotes(priceQuote,
availQuote, 0.1f);
+ if (SHOW_DEBUG_MSG) {
+ System.out.println();
+ System.out.println("Output quote from local join:");
+ TestHelper.serializeToSystemOut((DataObject)quote, "quote");
+ System.out.println();
+ }
+ // TestHelper.assertQuote(availQuote, priceQuote, quote, 0.1f);
+
+ quote = quoteJoinLocal.joinPriceAndAvailQuotes(priceQuote, availQuote,
0.2f);
+ if (SHOW_DEBUG_MSG) {
+ System.out.println();
+ System.out.println("Output quote from local join (second
invokation):");
+ TestHelper.serializeToSystemOut((DataObject)quote, "quote");
+ System.out.println();
+ }
+ // TestHelper.assertQuote(availQuote, priceQuote, quote, 0.2f);
+
+ quote = quoteJoinLocal.joinPriceAndAvailQuotesWs(priceQuote,
availQuote, 0.1f);
+ if (SHOW_DEBUG_MSG) {
+ System.out.println();
+ System.out.println("Output quote from web service join:");
+ TestHelper.serializeToSystemOut((DataObject)quote, "quote");
+ System.out.println();
+ }
+ // TestHelper.assertQuote(availQuote, priceQuote, quote, 0.1f);
+
+ quote = quoteJoinLocal.joinPriceAndAvailQuotes();
+ if (SHOW_DEBUG_MSG) {
+ System.out.println();
+ System.out.println("Output quote from properties join:");
+ TestHelper.serializeToSystemOut((DataObject)quote, "quote");
+ System.out.println();
+ }
+ // TestHelper.assertQuote(availQuote, priceQuote, quote, 0.1f);
+
+ quote = quoteJoinLocal.joinPriceAndAvailQuotes(0.1f);
+ if (SHOW_DEBUG_MSG) {
+ System.out.println();
+ System.out.println("Output quote from external references join:");
+ TestHelper.serializeToSystemOut((DataObject)quote, "quote");
+ System.out.println();
+ }
+ // TestHelper.assertQuote(availQuote, priceQuote, quote, 0.1f);
+ }
+
+ public void stopClient() throws Exception {
+ if (scaDomain != null) {
+ scaDomain.close();
+ }
+ }
+
+ public static void main(String[] args) throws Exception {
+ SHOW_DEBUG_MSG = true;
+ XQueryQuoteClient client = new XQueryQuoteClient();
+ client.startClient();
+ try {
+ client.testQuoteJoin();
+ } finally {
+ client.stopClient();
+ }
+ }
+}
Propchange:
incubator/tuscany/branches/sca-java-1.0/samples/quote-xquery/src/main/java/xquery/quote/XQueryQuoteClient.java
------------------------------------------------------------------------------
svn:eol-style = native
Propchange:
incubator/tuscany/branches/sca-java-1.0/samples/quote-xquery/src/main/java/xquery/quote/XQueryQuoteClient.java
------------------------------------------------------------------------------
svn:keywords = Rev Date
Added:
incubator/tuscany/branches/sca-java-1.0/samples/quote-xquery/src/main/java/xquery/quote/XQueryQuoteServer.java
URL:
http://svn.apache.org/viewvc/incubator/tuscany/branches/sca-java-1.0/samples/quote-xquery/src/main/java/xquery/quote/XQueryQuoteServer.java?rev=576748&view=auto
==============================================================================
---
incubator/tuscany/branches/sca-java-1.0/samples/quote-xquery/src/main/java/xquery/quote/XQueryQuoteServer.java
(added)
+++
incubator/tuscany/branches/sca-java-1.0/samples/quote-xquery/src/main/java/xquery/quote/XQueryQuoteServer.java
Tue Sep 18 00:35:18 2007
@@ -0,0 +1,37 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied. See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ */
+package xquery.quote;
+
+import java.io.IOException;
+
+import org.apache.tuscany.sca.host.embedded.SCADomain;
+
+public class XQueryQuoteServer {
+
+ public static void main(String[] args) {
+ SCADomain scaDomain = SCADomain.newInstance("xqueryquotews.composite");
+ try {
+ System.out.println("XQuery Quote server started (press enter to
shutdown)");
+ System.in.read();
+ } catch (IOException e) {
+ e.printStackTrace();
+ }
+ scaDomain.close();
+ }
+}
Propchange:
incubator/tuscany/branches/sca-java-1.0/samples/quote-xquery/src/main/java/xquery/quote/XQueryQuoteServer.java
------------------------------------------------------------------------------
svn:eol-style = native
Propchange:
incubator/tuscany/branches/sca-java-1.0/samples/quote-xquery/src/main/java/xquery/quote/XQueryQuoteServer.java
------------------------------------------------------------------------------
svn:keywords = Rev Date
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]