You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@tuscany.apache.org by dk...@apache.org on 2006/05/12 20:23:33 UTC

svn commit: r405823 - in /incubator/tuscany/java/samples/sca: ./ helloworld-jms/ helloworld-jms/client/ helloworld-jms/client/src/ helloworld-jms/client/src/main/ helloworld-jms/client/src/main/java/ helloworld-jms/client/src/main/java/helloworld/ hell...

Author: dkulp
Date: Fri May 12 11:23:31 2006
New Revision: 405823

URL: http://svn.apache.org/viewcvs?rev=405823&view=rev
Log:
Start of TUSCANY-354

Works find if you start an activemq broker on the proper URL
Still needs scripts and readmes to help get the broker started


Added:
    incubator/tuscany/java/samples/sca/helloworld-jms/
    incubator/tuscany/java/samples/sca/helloworld-jms/client/
    incubator/tuscany/java/samples/sca/helloworld-jms/client/pom.xml   (with props)
    incubator/tuscany/java/samples/sca/helloworld-jms/client/readme.htm   (with props)
    incubator/tuscany/java/samples/sca/helloworld-jms/client/src/
    incubator/tuscany/java/samples/sca/helloworld-jms/client/src/main/
    incubator/tuscany/java/samples/sca/helloworld-jms/client/src/main/java/
    incubator/tuscany/java/samples/sca/helloworld-jms/client/src/main/java/helloworld/
    incubator/tuscany/java/samples/sca/helloworld-jms/client/src/main/java/helloworld/HelloWorldClient.java   (with props)
    incubator/tuscany/java/samples/sca/helloworld-jms/client/src/main/java/helloworld/HelloWorldService.java   (with props)
    incubator/tuscany/java/samples/sca/helloworld-jms/client/src/main/resources/
    incubator/tuscany/java/samples/sca/helloworld-jms/client/src/main/resources/logging.properties   (with props)
    incubator/tuscany/java/samples/sca/helloworld-jms/client/src/main/resources/sca.module
    incubator/tuscany/java/samples/sca/helloworld-jms/client/src/main/resources/wsdl/
    incubator/tuscany/java/samples/sca/helloworld-jms/client/src/main/resources/wsdl/helloworld.wsdl   (with props)
    incubator/tuscany/java/samples/sca/helloworld-jms/client/src/test/
    incubator/tuscany/java/samples/sca/helloworld-jms/client/src/test/java/
    incubator/tuscany/java/samples/sca/helloworld-jms/pom.xml   (with props)
    incubator/tuscany/java/samples/sca/helloworld-jms/server/
    incubator/tuscany/java/samples/sca/helloworld-jms/server/pom.xml   (with props)
    incubator/tuscany/java/samples/sca/helloworld-jms/server/readme.htm   (with props)
    incubator/tuscany/java/samples/sca/helloworld-jms/server/src/
    incubator/tuscany/java/samples/sca/helloworld-jms/server/src/main/
    incubator/tuscany/java/samples/sca/helloworld-jms/server/src/main/java/
    incubator/tuscany/java/samples/sca/helloworld-jms/server/src/main/java/helloworld/
    incubator/tuscany/java/samples/sca/helloworld-jms/server/src/main/java/helloworld/HelloWorldServer.java   (with props)
    incubator/tuscany/java/samples/sca/helloworld-jms/server/src/main/resources/
    incubator/tuscany/java/samples/sca/helloworld-jms/server/src/main/resources/sca.module
    incubator/tuscany/java/samples/sca/helloworld-jms/server/src/main/resources/wsdl/
    incubator/tuscany/java/samples/sca/helloworld-jms/server/src/main/resources/wsdl/helloworld.wsdl   (with props)
    incubator/tuscany/java/samples/sca/helloworld-jms/server/src/test/
Modified:
    incubator/tuscany/java/samples/sca/pom.xml

Added: incubator/tuscany/java/samples/sca/helloworld-jms/client/pom.xml
URL: http://svn.apache.org/viewcvs/incubator/tuscany/java/samples/sca/helloworld-jms/client/pom.xml?rev=405823&view=auto
==============================================================================
--- incubator/tuscany/java/samples/sca/helloworld-jms/client/pom.xml (added)
+++ incubator/tuscany/java/samples/sca/helloworld-jms/client/pom.xml Fri May 12 11:23:31 2006
@@ -0,0 +1,57 @@
+<?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.sca.samples.jms</groupId>
+        <artifactId>tuscany-sca-jms-samples</artifactId>
+        <version>SNAPSHOT</version>
+    </parent>
+    <modelVersion>4.0.0</modelVersion>
+    <artifactId>helloworldwsclient-jms</artifactId>
+    <packaging>jar</packaging>
+    <name>Tuscany HelloWorld JMS Service Client Sample</name>
+    <description>A sample client for a HelloWorld JMS Service.</description>
+    <version>SNAPSHOT</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>

Propchange: incubator/tuscany/java/samples/sca/helloworld-jms/client/pom.xml
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: incubator/tuscany/java/samples/sca/helloworld-jms/client/pom.xml
------------------------------------------------------------------------------
    svn:mime-type = text/xml

Added: incubator/tuscany/java/samples/sca/helloworld-jms/client/readme.htm
URL: http://svn.apache.org/viewcvs/incubator/tuscany/java/samples/sca/helloworld-jms/client/readme.htm?rev=405823&view=auto
==============================================================================
--- incubator/tuscany/java/samples/sca/helloworld-jms/client/readme.htm (added)
+++ incubator/tuscany/java/samples/sca/helloworld-jms/client/readme.htm Fri May 12 11:23:31 2006
@@ -0,0 +1,269 @@
+<!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>Setup</h3>
+
+
+The jars for a <a href="../../../sampleSetup.htm" target="_blank">J2SE setup</a> &nbsp;including those necessary&nbsp;
+for web services are required including the sample's own jar <span style="font-weight: bold;">helloworldwsclient-SNAPSHOT.jar</span>.
+
+<h3>Running</h3>
+
+Using JDK 1.5 java command with the previous mentioned jars run the
+class org.apache.tuscany.samples.helloworldwsclient.HelloWorldClient
+
+<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>main<br>
+
+
+                +---java<br>
+
+
+                &brvbar;&nbsp;&nbsp; &brvbar;&nbsp;&nbsp;
+                sca.module<br>
+
+
+                &brvbar;&nbsp;&nbsp; &brvbar;<br>
+
+
+                &brvbar;&nbsp;&nbsp; +---org<br>
+
+
+                &brvbar;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
+                +---apache<br>
+
+
+                &brvbar;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
+                +---tuscany<br>
+
+
+                &brvbar;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
+                +---samples<br>
+&brvbar;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
++---helloworldwsclient<br>
+&brvbar;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
+HelloWorldClient.java<br>
+&brvbar;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
+HelloWorldService.java<br>
+&brvbar;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
+HelloWorldServiceComponentImpl.java<br>
+
+
+                &brvbar;<br>
+
+
+                +---resources<br>
+
+
+                &nbsp;&nbsp;&nbsp; &brvbar;&nbsp;&nbsp;
+                tuscany-model.config<br>
+
+
+                &nbsp;&nbsp;&nbsp; &brvbar;<br>
+
+
+                &nbsp;&nbsp;&nbsp; +---wsdl<br>
+
+
+                &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
+                helloworld.wsdl<br>
+
+
+                <br>
+
+
+            </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
+                HelloWorldServiceComponent and then calls&nbsp; the getGreetings
+                method to invoke the component.</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 style="vertical-align: top;">HelloWorldServiceComponentImpl.java</td>
+
+
+            <td>It does not directly implement the service; instead it
+                has an SCA reference that is wired in the sca.module to an
+                externalService that will provide the service. The service providing the implementation is the <a href="../helloworldws/readme.htm" target="_blank">helloworldws</a> sample.<br>
+
+
+            </td>
+
+
+        </tr>
+
+
+        <tr>
+
+
+            <td>tuscany-model.config</td>
+
+
+            <td>Maps the SCA Entry point WSDL to the physical WSDL file
+                location.</td>
+
+
+        </tr>
+
+
+        <tr>
+
+
+            <td>helloworld.wsdl</td>
+
+
+            <td>WSDL for the service.</td>
+
+
+        </tr>
+
+
+    
+  </tbody>
+</table>
+
+
+</body>
+</html>

Propchange: incubator/tuscany/java/samples/sca/helloworld-jms/client/readme.htm
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: incubator/tuscany/java/samples/sca/helloworld-jms/client/readme.htm
------------------------------------------------------------------------------
    svn:mime-type = text/html

Added: incubator/tuscany/java/samples/sca/helloworld-jms/client/src/main/java/helloworld/HelloWorldClient.java
URL: http://svn.apache.org/viewcvs/incubator/tuscany/java/samples/sca/helloworld-jms/client/src/main/java/helloworld/HelloWorldClient.java?rev=405823&view=auto
==============================================================================
--- incubator/tuscany/java/samples/sca/helloworld-jms/client/src/main/java/helloworld/HelloWorldClient.java (added)
+++ incubator/tuscany/java/samples/sca/helloworld-jms/client/src/main/java/helloworld/HelloWorldClient.java Fri May 12 11:23:31 2006
@@ -0,0 +1,67 @@
+/**
+ *
+ *  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();
+    }
+}

Propchange: incubator/tuscany/java/samples/sca/helloworld-jms/client/src/main/java/helloworld/HelloWorldClient.java
------------------------------------------------------------------------------
    svn:eol-style = native

Added: incubator/tuscany/java/samples/sca/helloworld-jms/client/src/main/java/helloworld/HelloWorldService.java
URL: http://svn.apache.org/viewcvs/incubator/tuscany/java/samples/sca/helloworld-jms/client/src/main/java/helloworld/HelloWorldService.java?rev=405823&view=auto
==============================================================================
--- incubator/tuscany/java/samples/sca/helloworld-jms/client/src/main/java/helloworld/HelloWorldService.java (added)
+++ incubator/tuscany/java/samples/sca/helloworld-jms/client/src/main/java/helloworld/HelloWorldService.java Fri May 12 11:23:31 2006
@@ -0,0 +1,26 @@
+/**
+ *
+ *  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);
+
+}

Propchange: incubator/tuscany/java/samples/sca/helloworld-jms/client/src/main/java/helloworld/HelloWorldService.java
------------------------------------------------------------------------------
    svn:eol-style = native

Added: incubator/tuscany/java/samples/sca/helloworld-jms/client/src/main/resources/logging.properties
URL: http://svn.apache.org/viewcvs/incubator/tuscany/java/samples/sca/helloworld-jms/client/src/main/resources/logging.properties?rev=405823&view=auto
==============================================================================
--- incubator/tuscany/java/samples/sca/helloworld-jms/client/src/main/resources/logging.properties (added)
+++ incubator/tuscany/java/samples/sca/helloworld-jms/client/src/main/resources/logging.properties Fri May 12 11:23:31 2006
@@ -0,0 +1,27 @@
+#  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

Propchange: incubator/tuscany/java/samples/sca/helloworld-jms/client/src/main/resources/logging.properties
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: incubator/tuscany/java/samples/sca/helloworld-jms/client/src/main/resources/logging.properties
------------------------------------------------------------------------------
    svn:mime-type = text/plain

Added: incubator/tuscany/java/samples/sca/helloworld-jms/client/src/main/resources/sca.module
URL: http://svn.apache.org/viewcvs/incubator/tuscany/java/samples/sca/helloworld-jms/client/src/main/resources/sca.module?rev=405823&view=auto
==============================================================================
--- incubator/tuscany/java/samples/sca/helloworld-jms/client/src/main/resources/sca.module (added)
+++ incubator/tuscany/java/samples/sca/helloworld-jms/client/src/main/resources/sca.module Fri May 12 11:23:31 2006
@@ -0,0 +1,28 @@
+<?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#HelloWorldPort"/>
+    </externalService>
+    
+</module>

Added: incubator/tuscany/java/samples/sca/helloworld-jms/client/src/main/resources/wsdl/helloworld.wsdl
URL: http://svn.apache.org/viewcvs/incubator/tuscany/java/samples/sca/helloworld-jms/client/src/main/resources/wsdl/helloworld.wsdl?rev=405823&view=auto
==============================================================================
--- incubator/tuscany/java/samples/sca/helloworld-jms/client/src/main/resources/wsdl/helloworld.wsdl (added)
+++ incubator/tuscany/java/samples/sca/helloworld-jms/client/src/main/resources/wsdl/helloworld.wsdl Fri May 12 11:23:31 2006
@@ -0,0 +1,82 @@
+<?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="HelloWorldService">
+        <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>

Propchange: incubator/tuscany/java/samples/sca/helloworld-jms/client/src/main/resources/wsdl/helloworld.wsdl
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: incubator/tuscany/java/samples/sca/helloworld-jms/client/src/main/resources/wsdl/helloworld.wsdl
------------------------------------------------------------------------------
    svn:mime-type = text/xml

Added: incubator/tuscany/java/samples/sca/helloworld-jms/pom.xml
URL: http://svn.apache.org/viewcvs/incubator/tuscany/java/samples/sca/helloworld-jms/pom.xml?rev=405823&view=auto
==============================================================================
--- incubator/tuscany/java/samples/sca/helloworld-jms/pom.xml (added)
+++ incubator/tuscany/java/samples/sca/helloworld-jms/pom.xml Fri May 12 11:23:31 2006
@@ -0,0 +1,34 @@
+<?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.sca.samples</groupId>
+        <artifactId>tuscany-sca-samples</artifactId>
+        <version>SNAPSHOT</version>
+    </parent>
+    <modelVersion>4.0.0</modelVersion>
+    <groupId>org.apache.tuscany.sca.samples.jms</groupId>
+    <artifactId>tuscany-sca-jms-samples</artifactId>
+    <packaging>pom</packaging>
+    <name>Tuscany SCA JMS Samples</name>
+    <version>SNAPSHOT</version>
+
+    <modules>
+        <module>client</module>
+        <module>server</module>
+    </modules>
+</project>

Propchange: incubator/tuscany/java/samples/sca/helloworld-jms/pom.xml
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: incubator/tuscany/java/samples/sca/helloworld-jms/pom.xml
------------------------------------------------------------------------------
    svn:mime-type = text/xml

Added: incubator/tuscany/java/samples/sca/helloworld-jms/server/pom.xml
URL: http://svn.apache.org/viewcvs/incubator/tuscany/java/samples/sca/helloworld-jms/server/pom.xml?rev=405823&view=auto
==============================================================================
--- incubator/tuscany/java/samples/sca/helloworld-jms/server/pom.xml (added)
+++ incubator/tuscany/java/samples/sca/helloworld-jms/server/pom.xml Fri May 12 11:23:31 2006
@@ -0,0 +1,58 @@
+<?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.sca.samples.jms</groupId>
+        <artifactId>tuscany-sca-jms-samples</artifactId>
+        <version>SNAPSHOT</version>
+    </parent>
+    <modelVersion>4.0.0</modelVersion>
+    <artifactId>helloworldws-jms</artifactId>
+    <packaging>jar</packaging>
+    <name>Tuscany HelloWorld Celtix JMS Service Sample</name>
+    <description>A sample HelloWorld JMS Service.</description>
+    <version>SNAPSHOT</version>
+
+    <dependencies>
+        <dependency>
+            <groupId>org.apache.tuscany.sca.samples</groupId>
+            <artifactId>helloworld</artifactId>
+            <version>${pom.version}</version>
+            <scope>compile</scope>
+        </dependency>
+        <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>

Propchange: incubator/tuscany/java/samples/sca/helloworld-jms/server/pom.xml
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: incubator/tuscany/java/samples/sca/helloworld-jms/server/pom.xml
------------------------------------------------------------------------------
    svn:mime-type = text/xml

Added: incubator/tuscany/java/samples/sca/helloworld-jms/server/readme.htm
URL: http://svn.apache.org/viewcvs/incubator/tuscany/java/samples/sca/helloworld-jms/server/readme.htm?rev=405823&view=auto
==============================================================================
--- incubator/tuscany/java/samples/sca/helloworld-jms/server/readme.htm (added)
+++ incubator/tuscany/java/samples/sca/helloworld-jms/server/readme.htm Fri May 12 11:23:31 2006
@@ -0,0 +1,187 @@
+
+
+
+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 Sample</h2>
+
+
+<h3>Overview</h3> The Tuscany hello world WS sample shows using the Tuscany SCA runtime in a J2SE environment to host a web service using the Celtix Web Service binding to provide the HTTP capabilities.
+
+
+<h3>Setup</h3>
+
+
+The jars for a <a href="../../../sampleSetup.htm" target="_blank">J2SE setup</a> &nbsp;including those necessary&nbsp;
+for web services are required including the sample's own jar <span style="font-weight: bold;">helloworldws-celtix-SNAPSHOT.jar</span>.
+
+<h3>Running</h3>
+
+Using JDK 1.5 java command with the previous mentioned jars run the
+class helloworld.HelloWorldServer
+
+<h3>Results</h3>
+
+
+<p>The sample when run should startup a Tuscany runtime and which will startup the HelloWorld service.   It will then display:<br>
+    <code>Hit ENTER to exit</code>
+and then wait for a client to hit it.   You can then run the helloworldwsclient sample in another window to hit the server.   When done, press ENTER to cause the server to shutdown.
+</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>main<br>
+
+
+                +---src/java/main<br>
+
+
+
+                &brvbar;&nbsp;&nbsp; &brvbar;<br>
+&brvbar;&nbsp;&nbsp;&nbsp;+---helloworld<br>
+&brvbar;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;HelloWorldServer.java<br>
+
+
+                &brvbar;<br>
+
+
+                +---resources<br>
+
+
+                &nbsp;&nbsp;&nbsp; &brvbar;&nbsp;&nbsp;sca.module<br>
+
+
+                &nbsp;&nbsp;&nbsp; &brvbar;<br>
+
+
+                &nbsp;&nbsp;&nbsp; +---wsdl<br>
+
+
+                &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
+                helloworld.wsdl<br>
+
+
+                
+
+
+            </td>
+
+
+        </tr>
+
+
+    
+  </tbody>
+</table>
+
+
+<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;">HelloWorldServer.java</td>
+
+
+            <td>Creates a Tuscany runtime and starts it.
+                </td>
+
+
+        </tr>
+
+
+        
+        <tr>
+            <td>helloworld.wsdl</td>
+            <td>WSDL for the service.</td>
+        </tr>
+
+
+    
+  </tbody>
+</table>
+
+
+</body>
+</html>

Propchange: incubator/tuscany/java/samples/sca/helloworld-jms/server/readme.htm
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: incubator/tuscany/java/samples/sca/helloworld-jms/server/readme.htm
------------------------------------------------------------------------------
    svn:mime-type = text/html

Added: incubator/tuscany/java/samples/sca/helloworld-jms/server/src/main/java/helloworld/HelloWorldServer.java
URL: http://svn.apache.org/viewcvs/incubator/tuscany/java/samples/sca/helloworld-jms/server/src/main/java/helloworld/HelloWorldServer.java?rev=405823&view=auto
==============================================================================
--- incubator/tuscany/java/samples/sca/helloworld-jms/server/src/main/java/helloworld/HelloWorldServer.java (added)
+++ incubator/tuscany/java/samples/sca/helloworld-jms/server/src/main/java/helloworld/HelloWorldServer.java Fri May 12 11:23:31 2006
@@ -0,0 +1,49 @@
+/**
+ *  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);
+    }
+}
+

Propchange: incubator/tuscany/java/samples/sca/helloworld-jms/server/src/main/java/helloworld/HelloWorldServer.java
------------------------------------------------------------------------------
    svn:eol-style = native

Added: incubator/tuscany/java/samples/sca/helloworld-jms/server/src/main/resources/sca.module
URL: http://svn.apache.org/viewcvs/incubator/tuscany/java/samples/sca/helloworld-jms/server/src/main/resources/sca.module?rev=405823&view=auto
==============================================================================
--- incubator/tuscany/java/samples/sca/helloworld-jms/server/src/main/resources/sca.module (added)
+++ incubator/tuscany/java/samples/sca/helloworld-jms/server/src/main/resources/sca.module Fri May 12 11:23:31 2006
@@ -0,0 +1,39 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+  Copyright (c) 2005 BEA Sytems Inc.
+  Copyright (c) 2005 International Business Machines
+
+  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="HelloWorldServiceJMS">
+        <interface.wsdl interface="http://helloworld#HelloWorld"/>
+        <binding.ws port="http://helloworld#HelloWorldPort"/>
+        <reference>HelloWorldServiceComponent/HelloWorldService</reference>
+    </entryPoint>
+    <entryPoint name="HelloWorldService">
+        <interface.wsdl interface="http://helloworld#HelloWorld"/>
+        <binding.ws port="http://helloworld#HelloWorldSoapPort"/>
+        <reference>HelloWorldServiceComponent/HelloWorldService</reference>
+    </entryPoint>
+
+    <component name="HelloWorldServiceComponent">
+        <implementation.java class="helloworld.HelloWorldImpl"/>
+    </component>
+    
+</module>

Added: incubator/tuscany/java/samples/sca/helloworld-jms/server/src/main/resources/wsdl/helloworld.wsdl
URL: http://svn.apache.org/viewcvs/incubator/tuscany/java/samples/sca/helloworld-jms/server/src/main/resources/wsdl/helloworld.wsdl?rev=405823&view=auto
==============================================================================
--- incubator/tuscany/java/samples/sca/helloworld-jms/server/src/main/resources/wsdl/helloworld.wsdl (added)
+++ incubator/tuscany/java/samples/sca/helloworld-jms/server/src/main/resources/wsdl/helloworld.wsdl Fri May 12 11:23:31 2006
@@ -0,0 +1,99 @@
+<?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="HelloWorldService">
+        <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="HelloWorldSoapService">
+        <wsdl:port binding="tns:HelloWorldSoapBinding" name="HelloWorldSoapPort">
+            <wsdlsoap:address location="http://localhost:8080/helloworldws-SNAPSHOT/services/HelloWorldWebService"/>
+        </wsdl:port>
+    </wsdl:service>
+
+</wsdl:definitions>

Propchange: incubator/tuscany/java/samples/sca/helloworld-jms/server/src/main/resources/wsdl/helloworld.wsdl
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: incubator/tuscany/java/samples/sca/helloworld-jms/server/src/main/resources/wsdl/helloworld.wsdl
------------------------------------------------------------------------------
    svn:mime-type = text/xml

Modified: incubator/tuscany/java/samples/sca/pom.xml
URL: http://svn.apache.org/viewcvs/incubator/tuscany/java/samples/sca/pom.xml?rev=405823&r1=405822&r2=405823&view=diff
==============================================================================
--- incubator/tuscany/java/samples/sca/pom.xml (original)
+++ incubator/tuscany/java/samples/sca/pom.xml Fri May 12 11:23:31 2006
@@ -39,5 +39,6 @@
         <module>supplychain</module>
         <module>helloworldjsonrpc</module>
         <module>JavaScript</module>
+        <module>helloworld-jms</module>
     </modules>
 </project>