From e1539a531da3192dac843520d77c8c76e407a402 Mon Sep 17 00:00:00 2001 From: lresende Date: Sat, 21 Nov 2009 07:55:07 +0000 Subject: Moving 1.x tags git-svn-id: http://svn.us.apache.org/repos/asf/tuscany@882849 13f79535-47bb-0310-9956-ffa450edef68 --- .../samples/sca/helloworld-jms/server/readme.htm | 108 +++++++++++++++++++++ 1 file changed, 108 insertions(+) create mode 100644 sca-java-1.x/tags/java-M1-20060522/java/samples/sca/helloworld-jms/server/readme.htm (limited to 'sca-java-1.x/tags/java-M1-20060522/java/samples/sca/helloworld-jms/server/readme.htm') diff --git a/sca-java-1.x/tags/java-M1-20060522/java/samples/sca/helloworld-jms/server/readme.htm b/sca-java-1.x/tags/java-M1-20060522/java/samples/sca/helloworld-jms/server/readme.htm new file mode 100644 index 0000000000..a069618b38 --- /dev/null +++ b/sca-java-1.x/tags/java-M1-20060522/java/samples/sca/helloworld-jms/server/readme.htm @@ -0,0 +1,108 @@ + + + + + + + Tuscany Hello World JMS Service Sample + + + + + +

Tuscany Hello World JMS Service Sample

+

Overview

+

+ The Tuscany hello world jms sample shows using the Tuscany SCA runtime using the Celtix/J2SE environment to  provide a web service using + XML over JMS as well as SOAP over HTTP. +

+

Location

This sample is located  in the samples\sca\helloworld-jms\server + directory.
+ +

Setup

This sample depends on the Tuscany runtime, Celtix, and the sample jar, + + + sample-helloworldjms-service-incubating-M1.jar + + +, all of these must be available on the classpath to run the sample. + +

Running

+ + 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 helloworld.HelloWorldServer. + +
Linux:
+ + 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 +
+ +
Windows:
+ 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 +
+ + + +

Code Overview

The source files are physically organized as shown below:
+ + + + + + +
+
+   +---main
+   +---java
+   ¦   +---helloworld
+   ¦           HelloWorldServer.java
+   ¦           HelloWorldImpl.java
+   ¦           HelloWorldService.java
+   +---resources
+     ¦   sca.module
+     +---wsdl
+            helloworld.wsdl 
+   activemq.xml
+                
+
+
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + +
HelloWorldServer.javaMain method to startup the Tuscany runtime which will startup the services defined in sca.module
HelloWorldService.javaDefines the Java interface implemented by the component.
HelloWorldImpl.javaImplements the SCA component. Uses the SCA service annotation + tag on the class to show what SCA interface is being implemented.
sca.moduleDefines 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 HelloWorldServiceComponent
helloworld.wsdlWSDL for the service.
activemq.xmlConfiguration file for ActiveMQ to setup the broker
+ + \ No newline at end of file -- cgit v1.2.3