Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Tuscany

...

Samples

The Tuscany Samples are shipped with Tuscany binary and source releases. If you are using tuscany from a release distribution then make sure you are looking at the documentation that corresponds to the samples as they stood at the time of the release.

2.0-beta

...

samples documentation

If however you are working with a snapshot distribution, or using samples code from the trunk of our source repository, then you've come to the right place, as the documentation here reflects the curtrent status of the samples in the trunk of our source tree.

In a distribution, the samples source code is found in either a binary or source code distribution in the samples directory, directly under the root directory. The following sections are laid out to match the structure of the samples directory and its subdirectories.

Table of Contents
minLevel2
outlinetrue

getting-started

The basic package of SCA application artifacts is a contribution which for this simple sample is found in contribution-helloworld.  There's also a  directory which contains all you need to make a web application archive which can be deployed to a web container such as Tomcat, so that the sayHello service can be run in the web container. To see Tuscany in action you must launch a component withing a Tuscany runtime environment. Launching contributions is discussed in the "Running Tuscany" section below.

contribution-helloworld

In this folder you'll find the simplest contribution, implemented in Java, that implements the "business logic" of saying hello to a person whose name is supplied as input to the service. This contribution contains Java implementation code offering the service String sayHello(String name), where the implementation of the service prepends "Hello" to the name and prints the result to the console.

helloworld-webapp

Warning
titleTODO

It's not at all clear how this is supposed to work once it is in the web container - I have asked on the dev list

running-tuscany

Running something in Tuscany requires one or more contributions, and a method of launching the contributions to make them available as services. The sections below describes various means of launching contributions into an executing  tuscany runtime.

command-line

To execute a sample contribution from the command line on Windows, from a command prompt in the samples directory, run the command ...

Code Block
 documentation|TUSCANYxDOCx2x:2.0-beta-Samples documentation]

If however you are working with a snapshot distribution, or using samples code from the trunk of our source repository, then you've come to the right place, as the documentation here reflects the curtrent status of the samples in the trunk of our source tree.

{color:#000000}In a distribution, the samples source code is found in either a binary or source code distribution in the samples directory, directly under the root directory. The following sections are laid out to match the structure of the samples directory and its subdirectories.{color}\\

{toc:outline=true|minLevel=2}

h2. getting-started

The basic package of SCA application artifacts is a contribution which for this simple sample is found in contribution-helloworld.  There's also a  directory which contains all you need to make a web application archive which can be deployed to a web container such as Tomcat, so that the sayHello service can be run in the web container. To see Tuscany in action you must launch a component withing a Tuscany runtime environment. Launching contributions is discussed in the "Running Tuscany" section below.

h3. contribution-helloworld


In this folder you'll find the simplest contribution, implemented in Java, that implements the "business logic" of saying hello to a person whose name is supplied as input to the service. This contribution contains Java implementation code offering the service String sayHello(String name), where the implementation of the service prepends "Hello" to the name and prints the result to the console.


h3. helloworld-webapp

{warning:title=TODO} It's not at all clear how this is supposed to work once it is in the web container - I have asked on the dev list
{warning}


h2. running-tuscany

Running something in Tuscany requires one or more contributions, and a method of launching the contributions to make them available as services. The sections below describes various means of launching contributions into an executing  tuscany runtime.


h3. command-line

To execute a sample contribution from the command line on Windows, from a command prompt in the samples directory, run the command ...

{code}
..\bin\tuscany.bat "contribution-name"
{code}

for

...

example

{
Code Block
}
..\bin\tuscany.bat contribution-binding-sca-calculator
{code}

or

...

on

...

*nix

...

platforms,

...

from

...

a

...

shell

...

prompt

...

in

...

the

...

samples

...

directory,

...

run

...

the

...

command

...

...

{
Code Block
}
../bin/tuscany.sh contribution-binding-sca-calculator
{code}

h3. embedded

embedded-jse

...

This

...

directory

...

contains

...

sample

...

java

...

launchers

...

for

...

the

...


tuscany

...

sample

...

contributions.

...

To

...

use

...

the

...

sample

...

JSE

...

launchers

...

with

...

ant

...

execute

...

the

...

command

{
Code Block
}
ant run-<contributionname>
{code}

where

...

run-<contributionname>

...

is

...

one

...

of

...

the

...

targets

...

in

...

the

...

build.xml

...

file

...

To

...

use

...

this

...

sample

...

launcher

...

to

...

run

...

all

...

of

...

the

...

contributions

...

as

...

junit

...

test

...

cases,

...

execute

...

the

...

command

...

"mvn"

...

in

...

the

...

launcher

...

directory.

...

embedded-osgi

...

The

...

launchers

...

implemented

...

in

...

the

...

src/main/java/launchers

...

directory

...

each

...

launch

...

a

...

specific

...

contribution

...

into

...

the

...

OSGI

...

runtime.

...


To

...

use

...

this

...

sample

...

OSGI

...

launcher

...

with

...

ant

...

excute

...

the

...

command

{
Code Block
}
ant run-<contributionname>
{code}

where

...

run-<contributionname>

...

is

...

one

...

of

...

the

...

targets

...

in

...

the

...

build.xml

...

file

...

To

...

use

...

this

...

sample

...

launcher

...

to

...

run

...

all

...

of

...

the

...

contributions

...

as

...

junit

...

test

...

cases,

...


execute

...

the

...

command

{}mvn{code} in the launcher directory. h3. maven To execute a sample contribution from Maven look for contributions that have the following configuration in their pom.xml file: <plugin>
Code Block
mvn

in the launcher directory.

maven

To execute a sample contribution from Maven

look for contributions that have the following configuration in their pom.xml file:

<plugin>
<groupId>org.apache.tuscany.maven.plugins</groupId>

...


<artifactId>maven-tuscany-plugin</artifactId>

...


<version>2.0-SNAPSHOT</version>

...


</plugin>

...

For

...

contributions

...

that

...

have

...

this,

...

for

...

example,

...

learning-more/binding-sca/contribution-calculator,

...

do

...

the

...

following

...

cd

...

samples/learning-more/binding-sca/contribution-calculator

...


mvn

...

tuscany:run

...

This

...

will

...

launch

...

the

...

contribution

...

in

...

the

...

Tuscany

...

runtime

...

and

...

then

...

wait.

...

At

...

this

...

point

...

you

...

can

...

use

...


other

...

clients

...

to

...

send

...

messages

...

to

...

services

...

that

...

the

...

running

...

SCA

...

applcation

...

exposes,

...


for

...

example,

...

try

...

learning-more/calculator-scaclient.

osgi

The Tuscany runtime can be run in and OSGi container. 

Running in Equinox

On Windows, run

Code Block


h3. osgi

The Tuscany runtime can be run in and OSGi container.&nbsp;


*Running in Equinox*

On Windows, run

{code}
java \-jar ..\..\modules\osgi-3.5.0-v20090520.jar \-configuration ..\..\features\configuration \-clean \-console

{code}

On \

On *Unix,

...

run

{
Code Block
}
java \-jar ../../modules/osgi-3.5.0-v20090520.jar \-configuration ../../features/configuration \-clean \-console

{code}

You

...

should

...

see

...

the

...

osgi

...

console:

{
Code Block
}
osgi>

osgi> Jun 22, 2009 1:32:27 PM org.apache.tuscany.sca.extensibility.equinox.EquinoxServiceDiscoveryActivator start

INFO: Equinox-based service discoverer is now configured.

{code}

You

...

can

...

run

...

"ss"

...

command

...

under

...

the

...

osgi>

...

to

...

see

...

the

...

status

...

of

...

the

...

bundles.

{
Code Block
}
osgi> ss

{code}

Then

...

you

...

can

...

install

...

and

...

start

...

contributions

...

as

...

bundles

...

by

...

doing

...

the

...

following:

{
Code Block
}
osgi> install file:./path/to/contribution_bundle.jar

{code}

Note

...

that

...

contribution_bundle.jar

...

will

...

need

...

an

...

activator

...

in

...

order

...

to

...

register

...

the

...

bundle

...

as

...

a

...

SCA

...

contribution

Warning

see

{warning} see

samples/????


TODO

is

this

still

true

{warning}

Running

...

on

...

Felix

...

See

...

http://tuscany.apache.org/documentation-2x/running-tuscany-sca-2x-with-equinox-and-felix.html

shell

This directory contains a sample shell program supporting simple commands to
start and stop SCA composites.

To build the sample shell do this:

Code Block
]


h3. shell

This directory contains a sample shell program supporting simple commands to
start and stop SCA composites.

To build the sample shell do this:
{code}
mvn install
{code}

To

...

run

...

it:

{
Code Block
}
./sca
{code}

at

...

the

...

prompt:

{
Code Block
}
start myNode ../../applications/store/target/sample-store.jar
{code}

or:

{
Code Block
}
start myNode http://people.apache.org/~jsdelfino/tuscany/java/test/sample-store.jar
{code}

also

...

try:

{
Code Block
}
status
stop myNode
bye
{code}

Starting

...

and

...

stopping

...

composites

...

is

...

pretty

...

fast.

...

To

...

see

...

that,

...

try

...

the

...

following

...


two

...

scripts,

...

which

...

start/stop

...

the

...

sample

...

store

...

composite

...

10

...

times.

{
Code Block
}
./sca <scripts/test.txt
{code}
or
{code}

or

Code Block
./sca <scripts/test-remote.txt
{code}

The

...

shell

...

can

...

also

...

run

...

as

...

a

...

Webapp.

...

To

...

try

...

it

...

install

...

target/scashell.war

...

in

...


a

...

Web

...

container,

...

point

...

your

...

Web

...

browser

...

to

...

http://localhost:8080/scashell

...


and

...

try

...

the

...

links

...

on

...

that

...

page.

...

webapp

To execute sample webapp based contributions (contributions that have webapp at the end of their name) you
can build the contribution using maven and then copy the resulting war file to your container of choice

For example, for binding-jsonrpc/contribution-calculator-webapp,

...

do

...

the

...

following

{
Code Block
}
cd samples/binding-jsonrpc/contribution-calculator-webapp
mvn
cp target/sample-contribution-binding-jsonrpc-calculator-webapp.war your_container_deployment-dir
{code}

As

...

an

...

alternative

...

sample

...

webapp

...

based

...

contributions

...

can

...

be

...

run

...

within

...

Jetty

...

directly

...

from

...

Maven,

...

look

...

for

...


webapp

...

contributions

...

that

...

have

...

the

...

following

...

configuration

...

in

...

their

...

pom.xml

...

file:

{
Code Block
}
<plugin>
    <groupId>org.mortbay.jetty</groupId>
    <artifactId>maven-jetty-plugin</artifactId>
    <version>6.1.18</version>
</plugin>
{code}

For

...

contributions

...

that

...

have

...

this,

...

for

...

example,

...

binding-jsonrpc/contribution-calculator-webapp,

...

do

...

the

...

following

{
Code Block
}
cd samples/binding-sca/contribution-calculator
mvn jetty:run
{code}

This will launch the contribution in the Jetty runtime and then wait. At this point you can use
HTTP clients to send messages to services that the running SCA applcation exposes. For this
example try pointing your browser at:

{code}

This will launch the contribution in the Jetty runtime and then wait. At this point you can use
HTTP clients to send messages to services that the running SCA applcation exposes. For this
example try pointing your browser at:

Code Block
http://localhost:8080/sample-contribution-binding-jsonrpc-calculator-webapp/
{code}

h2. 

learning-more

...

The

...

samples

...

found

...

in

...

the

...

contributions

...

below

...

illustrate

...

how

...

to

...

see

...

more

...

of

...

SCA

...

and

...

Tuscany's

...

features

...

in

...

action.

...

You'll

...

need

...

to

...

employ

...

the

...

information

...

above

...

in

...

the

...

"running

...

tuscany"

...

section

...

to

...

select

...

an

...

appropriate

...

way

...

of

...

runing

...

the

...

contributions

...

in

...

the

...

samples

...

listed

...

below.

...

async

This sample  demonstrates invocation of services offered in both synchronous and asynchronous forms. Asynchroncity is possible by either callback to or polling by the original service invoker.

sample-contribution-implementation-java-calculator-async

...

In the composite file src/main/resources/Calculator.composite

...

the

...

references

...

"calculatorServiceRefSync"

...

 and "calculatorServiceRefAsync"

...

make

...

use

...

of

...

the

...

alternative

...

implementations

...

of

...

the

...

Calculator

...

service

...

described

...

in

...

the

...

CalculatorSync

...

and

...

CalculatorAsync

...

components

...

and

...

implemented

...

in the calculator.CalculatorServiceSyncImpl

...

and

...

calculator.CalculatorServiceAsyncImpljava

...

classes.

...

 

embedded-jse-async-sample-launcher

...

Note

...

that

...

the

...

launcher

...

simply

...

starts

...

and

...

stops

...

a

...

node

...

running

...

the

...

contribution.  Within the contribution the CalculatorClient java class, marked with the @EagerInit annotation, runs its calculate method (marked with the @Init annotation), thereby triggering the calculation service to be performed. The calculator service is actually performed by the injected instance of CalculatorServiceProxyImpl, which uses both of its references (one for the sync service, one for the async) to perform calculations. The calculations are then performed by instances of CalculatorServiceSyncImpl and CalculatorServiceAsyncImpl. Note that the Tuscany runtime views the following two interfaces as compatible.

Code Block
 &nbsp;Within the contribution the CalculatorClient java class, marked with the @EagerInit annotation, runs its calculate method (marked with the @Init annotation), thereby triggering the calculation service to be performed. The calculator service is actually performed by the injected instance of CalculatorServiceProxyImpl, which uses both of its references (one for the sync service, one for the async) to perform calculations. The calculations are then performed by instances of&nbsp;CalculatorServiceSyncImpl and&nbsp;CalculatorServiceAsyncImpl. Note that the Tuscany runtime views the following two interfaces as compatible.

{code}
@Remotable
public interface CalculatorService {
   String calculate(Integer n1);
}

@Remotable
@AsyncInvocation

public interface CalculatorServiceAsync {

   void calculateAsync(Integer n1, ResponseDispatch<String> response);

}

{code}

h3. 

binding-comet

...

Executing

...

the

...

command

...

"mvn"

...

in

...

this

...

sample

...

project

...

creates

...

a

...

web

...

archive

...

suitable

...

for

...

deployment

...

to

...

Tomcat.

...

It

...

makes

...

use

...

of

...

the

...

tuscany

...

coment

...

binding.

...

Comet

...

support

...

allows

...

a

...

servlet

...

to

...

process

...

IO

...

asynchronously,

...

receiving

...

events

...

when

...

data

...

is

...

available

...

for

...

reading

...

on

...

the

...

connection

...

(rather

...

than

...

always

...

using

...

a

...

blocking

...

read),

...

and

...

writing

...

data

...

back

...

on

...

connections

...

asynchronously

...

(most

...

likely

...

responding

...

to

...

some

...

event

...

raised

...

from

...

some

...

other

...

source).

{:=TODO} {color:#000000}Needs expert review/update{color} {warning} h3. binding-jsonrpc This sample demonstrates using a simple calculator service component which makes use of four services for the basic arithmetic functions. In this variant of the calculator sample you can see by looking in the
Warning
title
TODO

Needs expert review/update

binding-jsonrpc

This sample demonstrates using a simple calculator service component which makes use of four services for the basic arithmetic functions. In this variant of the calculator sample you can see by looking in the src/main/resources/Calculator.composite

...

xml

...

file

...

that

...

the

...

AddService

...

is

...

configured

...

to

...

be

...

invoked

...

using

...

the

...

json

...

rpc

...

protocol.

...

contribution-calculator

...

This

...

variant

...

of

...

the

...

calculator

...

contribution

...

configures

...

the

...

AddService

...

to

...

be

...

accessed

...

via

...

the

...

JSON

...

RPC

...

protocol

...

(see

...

the

...

XML

...

in

...

the

...

Calculator.composite

...

file).

{:=
Warning
title
TODO
}

Needs

review/completion

contribution-calculator-webapp

Note
titleTODO

Understand and Document

binding-rmi

In this example the calculator function is split over two contributions in order to demonstrate the remote method invocation binding. The CalculatorService in the CalculatorServiceComponent defined in the CalculatorRMIServer.composite file is configured to be accessible using RMI.

Warning
titleTODO

Needs review/completion

contribution-calculator-reference (for binding-rmi)

This contribution serves the purpose of accessing the services of the calculator service contribution, in particular defining a reference that uses the add service of that contribution using the RMI protocol.

contribution-calculator-service (for binding-rmi)

This contribution defines the calcullators add service to be available via RMI invocation.

binding-sca

Note
titleTODO



Understand and Document

contribution-calculator

Note
titleTODO

Understand and Document

binding-ws

Note
titleTODO

Understand and Document

contribution-calculator

contribution-helloworld-ws-sdo

Note
titleTODO

Understand and Document

distributed-osgi

These samples demonstrate the execution of Tuscany contributions in a distributed OSGI environment.

dosgi-dynamic-calculator

dosgi-dynamic-calculator-operations

implementation-bpel

Note
titleTODO

contribution-helloworld-bpel

Note
titleTODO

check instructions work and fix up

This sample demonstrates an SCA service implemented by a BPEL process.

If you just want to run it to see what happens open a command prompt, navigate
to this sample directory, and do

Code Block

ant compile run

OR if you don't have ant, on Windows do

Code Block



{warning}

h4. contribution-calculator-webapp


{note:title=TODO}
{color:#000000}Understand and Document{color}
{note}

h3. binding-rmi

In this example the calculator function is split over two contributions in order to demonstrate the remote method invocation binding. The&nbsp;CalculatorService in the&nbsp;CalculatorServiceComponent defined in the&nbsp;CalculatorRMIServer.composite file is configured to be accessible using RMI.

{warning:title=TODO}

Needs review/completion


{warning

h4. contribution-calculator-reference


This contribution serves the purpose of accessing the services of the calculator service contribution, in particular defining a reference that uses the add service of that contribution using the RMI protocol.

h4. contribution-calculator-service


This contribution defines the calcullators add service to be available via RMI invocation.

h3. binding-sca


{note:title=TODO}
{color:#000000}Understand and Document{color}
{note}

h4. contribution-calculator


{note:title=TODO}
{color:#000000}Understand and Document{color}
{note}

h3. binding-ws


{note:title=TODO}
{color:#000000}Understand and Document{color}
{note}

h4. contribution-calculator

h4. contribution-helloworld-ws-sdo

{note:title=TODO}
{color:#000000}Understand and Document{color}
{note}


h3. distributed-osgi

These samples demonstrate the execution of Tuscany contributions in a distributed OSGI environment.

h4. dosgi-dynamic-calculator


h4. dosgi-dynamic-calculator-operations


h3. implementation-bpel
{note:title=TODO}{note}

h4. contribution-helloworld-bpel
{note:title=TODO}check instructions work and fix up{note}
This sample demonstrates an SCA service implemented by a BPEL process.

If you just want to run it to see what happens open a command prompt, navigate
to this sample directory, and do
{code}
ant compile run
{code}
OR if you don't have ant, on Windows do

{code}
mkdir target\classes
mkdir target\wsdl2java-source
java \-cp ..\..\lib\tuscany-sca-manifest.jar org.apache.tuscany.sdo.generate.XSD2JavaGenerator \-targetDirectory target/wsdl2java-source \-prefix HelloWorld \-noContainment \-noUnsettable src/main/resources/helloworld.wsdl
java \-cp ..\..\lib\tuscany-sca-manifest.jar org.apache.tuscany.tools.wsdl2java.generate.WSDL2JavaGenerator \-targetDirectory target/wsdl2java-source src/main/resources/helloworld.wsdl
unzip ..\..\lib\ode-dao-jpa-ojpa-derby-1.1.zip \-d target\database
javac \-d target\classes \-cp target\classes;..\..\lib\tuscany-sca-manifest.jar \-sourcepath src\main\java;target\wsdl2java-source \-target 1.5 \-g \-source 1.5 src\main\java\helloworld\BPELClient.java
copy src\main\resources\* target\classes
java \-cp ..\..\lib\tuscany-sca-manifest.jar;target\classes;target\database helloworld.BPELClient
{code}

and

...

on

...

*nix

...

do

{
Code Block
}
mkdir target/classes
mkdir target/wsdl2java-source
java \-cp ../../lib/tuscany-sca-manifest.jar org.apache.tuscany.sdo.generate.XSD2JavaGenerator \-targetDirectory target/wsdl2java-source \-prefix HelloWorld \-noContainment \-noUnsettable src/main/resources/helloworld.wsdl
java \-cp ../../lib/tuscany-sca-manifest.jar org.apache.tuscany.tools.wsdl2java.generate.WSDL2JavaGenerator \-targetDirectory target/wsdl2java-source src/main/resources/helloworld.wsdl
unzip ../../lib/ode-dao-jpa-ojpa-derby-1.1.zip \-d target/database
javac \-d target/classes \-cp target/classes;../../lib/tuscany-sca-manifest.jar \-sourcepath src/main/java;target/wsdl2java-source \-target 1.5 \-g \-source 1.5 src/main/java/helloworld/BPELClient.java
cp src/main/resources/\* target/classes
java \-cp ../../lib/tuscany-sca-manifest.jar:target/classes:target/database helloworld.BPELClient
{code}

The

...

sample

...

will

...

start

...

an

...

embedded

...

BPEL

...

engine,

...

deploy

...

a

...

process

...

and

...

invoke

...

it.

...

Sample

...

Overview

...

The

...

sample

...

provides

...

a

...

single

...

component

...

that

...

is

...

wired

...

to

...

a

...

service

...

with

...

a

...


web

...

service

...

binding.

{
Code Block
}
helloworld-bpel/
src/
main/
java/
helloworld/
BPELClient.java          	  - client application for
BEPELHelloWorldComponent

resources/
deploy.xml			  - ODE deployment descriptor
helloworld.bpel		  - helloworld bpel process
helloworld.componentType	  - helloworld bpel service description
helloworld.composite            - the SCA assembly for this sample
helloworld.wsdl                 - the service description that describes
the bpel process
log4j.properties                - logging configuration

test/
java/
helloworld/
BPELHelloWorldTestCase.java     - JUnit test case
helloworld-bpel.png                     - a pictorial representation of the
sample .composite file
build.xml                               - the Ant build file
pom.xml                                 - the Maven build file
{code}
*

Building

...

And

...

Running

...

The

...

Sample

...

Using

...

Ant

...

With

...

the

...

binary

...

distribution

...

the

...

sample

...

can

...

be

...

built

...

and

...

run

...

using

...

Ant

...

as

...


follows

{
Code Block
}
cd helloworld-bpel
ant compile
ant run
{code}
You should see the following output from the run target.

{code}

You should see the following output from the run target.

Code Block
run:
[java] Starting BPELHelloWorldComponent
[java] >>> Deploying : D:\temp\SCA1.1-RC1\tuscany-sca-1.1-incubating\samples\helloworld-bpel\target\classes
[java] ::arg:::::: <?xml version="1.0" encoding="UTF-8"?>
[java] <hello xmlns="http://tuscany.apache.org/implementation/bpel/example/helloworld.wsdl"><message xmlns="http://tuscany.apache.org/implementation/bpel/exampl
e/helloworld.wsdl">Hello</message></hello>
[java] ::message:: <?xml version="1.0" encoding="UTF-8"?>
[java] <message><TestPart><hello xmlns="http://tuscany.apache.org/implementation/bpel/example/helloworld.wsdl"><message xmlns="http://tuscany.apache.org/impleme
ntation/bpel/example/helloworld.wsdl">Hello</message></hello></TestPart></message>
[java] Status: RESPONSE
[java] Response: <?xml version="1.0" encoding="UTF-8"?>
[java] <message><TestPart><hello xmlns="http://tuscany.apache.org/implementation/bpel/example/helloworld.wsdl">Hello World</hello></TestPart></message>
[java] Hello World
[java] Stopping BPELHelloWorldComponent
[java] Stopped \!\!\!

BUILD SUCCESSFUL
Total time: 36 seconds
{code}
*

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.

...

When

...

using

...

Maven,

...

a

...

simple

...

test

...

is

...

present

...

that

...

exercise

...


the

...

same

...

logic

...

as

...

the

...

client

...

to

...

invoke

...

the

...

BPEl

...

process.

{
Code Block
}
cd helloworld-bpel
mvn
{code}
You should see the following output from the test phase.

{code}

You should see the following output from the test phase.

Code Block
\------------------------------------------------------\-
T E S T S
\------------------------------------------------------\-
Running helloworld.BPELHelloWorldTestCase
Starting BPELHelloWorldComponent
>>> Deploying : D:\dev\Opensource\Apache\Tuscany\source\java-sca-1.1\samples\helloworld-bpel\target\classes
::arg:::::: <?xml version="1.0" encoding="UTF-8"?>
<hello xmlns="http://tuscany.apache.org/implementation/bpel/example/helloworld.wsdl"><message xmlns="http://tuscany.apache.org/implementation/bpel/example/helloworld
.wsdl">Hello</message></hello>
::message:: <?xml version="1.0" encoding="UTF-8"?>
<message><TestPart><hello xmlns="http://tuscany.apache.org/implementation/bpel/example/helloworld.wsdl"><message xmlns="http://tuscany.apache.org/implementation/bpel
/example/helloworld.wsdl">Hello</message></hello></TestPart></message>
Status: RESPONSE
Response: <?xml version="1.0" encoding="UTF-8"?>
<message><TestPart><hello xmlns="http://tuscany.apache.org/implementation/bpel/example/helloworld.wsdl">Hello World</hello></TestPart></message>
Stopping BPELHelloWorldComponent
Stopped \!\!\!
Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 18.656 sec

Results :

Tests run: 1, Failures: 0, Errors: 0, Skipped: 0

[INFO] [jar:jar]
[INFO] Building jar: D:\dev\Opensource\Apache\Tuscany\source\java-sca-1.1\samples\helloworld-bpel\target\sample-helloworld-bpel.jar
[INFO] [install:install]
[INFO] Installing D:\dev\Opensource\Apache\Tuscany\source\java-sca-1.1\samples\helloworld-bpel\target\sample-helloworld-bpel.jar to C:\Documents and Settings\lresend
e\.m2\repository\org\apache\tuscany\sca\sample-helloworld-bpel\1.1-incubating-SNAPSHOT\sample-helloworld-bpel-1.1-incubating-SNAPSHOT.jar
[INFO] \-----------------------------------------------------------------------\-
[INFO] BUILD SUCCESSFUL
[INFO] \-----------------------------------------------------------------------\-
[INFO] Total time: 53 seconds
[INFO] Finished at: Sun Jan 13 09:54:39 PST 2008
[INFO] Final Memory: 24M/43M
[INFO] \-----------------------------------------------------------------------\-
{code}

{code}

{code}

This shows that the Junit test cases have run successfully.

h4. 
Code Block

This shows that the Junit test cases have run successfully.

helloworld-bpel-webapp

...

implementation-composite

{:=TODO} {color:#000000}Understand and Document{color} {note} h4. helloworld-recursive {note:title=TODO}Understand and Document{note} h4.
Note
title
TODO

Understand and Document

helloworld-recursive

Note
titleTODO

Understand and Document

helloworld-recursive-ws

{:=TODO} {color:#000000}Understand and Document{color} {note} h3.
Note
title
TODO

Understand and Document

implementation-extension

{:
Note
titleTODO

Understand and Document

implementation-java

Note
titleTODO

Understand and Document

contribution-calculator

Note
titleTODO

Understand and Document

implementation.osgi

dosgi-calculator

dosgi-calculator-operations

Note
titleTODO

Understand and Document

implementation-script

Note
titleTODO

Understand and Document

contribution-calculator

Note
titleTODO

Understand and Document

implementation-spring

Note
titleTODO

Understand and Document

contribution-helloworld-spring

Note
titleTODO

Understand and Document

helloworld-spring-webapp

implementation-webapp

helloworld-jaxrs-webapp

helloworld-jms-webapp

helloworld-js-client-webapp

helloworld-jsf-webapp

helloworld-jsp-webapp

helloworld-servlet-webapp

helloworld-stripes-webapp

logging-scribe

Note
titleTODO

Understand and Document

maven-osgi-junit

Note
titleTODO

Understand and Document

calculator-osgi

Note
titleTODO

Understand and Document

calculator-rest-osgi

Note
titleTODO

Understand and Document

sca-client

Note
titleTODO

Understand and Document

calculator-scaclient

Note
titleTODO

Understand and Document

helloworld-scaclient

Note
titleTODO

Understand and Document

applications

Note
titleTODO

Understand and Document

store

Note
titleTODO

Understand and Document

store-webapp

Note
titleTODO

Understand and Document

=TODO} {color:#000000}Understand and Document{color} {note} h3. implementation-java {note:title=TODO} {color:#000000}Understand and Document{color} {note} h4. contribution-calculator {note:title=TODO} {color:#000000}Understand and Document{color} {note} h3. implementation.osgi h4. dosgi-calculator h4. dosgi-calculator-operations {note:title=TODO} {color:#000000}Understand and Document{color} {note} h3. implementation-script {note:title=TODO} {color:#000000}Understand and Document{color} {note} h4. contribution-calculator {note:title=TODO} {color:#000000}Understand and Document{color} {note} h3. implementation-spring {note:title=TODO} {color:#000000}Understand and Document{color} {note} h4. contribution-helloworld-spring {note:title=TODO} {color:#000000}Understand and Document{color} {note} h4. helloworld-spring-webapp h3. implementation-webapp h4. helloworld-jaxrs-webapp h4. helloworld-jms-webapp h4. helloworld-js-client-webapp h4. helloworld-jsf-webapp h4. helloworld-jsp-webapp h4. helloworld-servlet-webapp h4. helloworld-stripes-webapp h3. logging-scribe {note:title=TODO} {color:#000000}Understand and Document{color} {note} h3. maven-osgi-junit {note:title=TODO} {color:#000000}Understand and Document{color} {note} h4. calculator-osgi {note:title=TODO} {color:#000000}Understand and Document{color} {note} h4. calculator-rest-osgi {note:title=TODO} {color:#000000}Understand and Document{color} {note} h3. sca-client {note:title=TODO} {color:#000000}Understand and Document{color} {note} h4. calculator-scaclient {note:title=TODO} {color:#000000}Understand and Document{color} {note} h4. helloworld-scaclient {note:title=TODO} {color:#000000}Understand and Document{color} {note} h2. applications {note:title=TODO} {color:#000000}Understand and Document{color} {note} h3. store {note:title=TODO} {color:#000000}Understand and Document{color} {note} h3. store-webapp {note:title=TODO} {color:#000000}Understand and Document{color} {note}