Versions Compared

Key

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

...

Note
titleTODO

And then what? (warning)

need

description

of

structure

and

operation

this

application

once

we've

decided

what

that

should

be {node} For more information on getting started with the Apache Tuscany SCA Java runtime see the [getting started] page. h3. helloworld-webapp This sample is not a contribution in it

be

Note
titleTODO
Wiki Markup

For more information on getting started with the Apache Tuscany SCA Java runtime see the getting started page.

helloworld-webapp

This sample is not a contribution in it's own right but demonstrates how to run the helloworld-contribution inside a web application.

To build this contribution using Maven do the following:

Code Block
's own right but demonstrates how to run the helloworld-contribution inside a web application. To build this contribution using Maven do the following: {code}

cd helloworld-webapp
mvn

This will produce a webapp as follows:

Code Block
{code} This will produce a webapp as follows: {code}

helloworld-webapp/target/helloworld.war
{code}

You

...

can

...

run

...

this

...

webapp

...

by

...

deploying

...

it

...

to

...

you're

...

favourite

...

webapp

...

container.

...

For

...

example,

...

you

...

can

...

deploy

...

to

...

Tomcat

...

and

...

run

...

as

...

follows:

{
Code Block
}

cp helloworld-webapp/target/helloworld.war my_tomcat_install/webapps
my_tomcat_install/bin/catalina run
{code} {note:title=TODO} This sample webapp
Note
titleTODO

This sample webapp doesn't

provide

any

web

pages

so

how

to

make

it

do

something?

Note
titleTODO
Wiki Markup
need description of structure and operation this application once we've decided what that should be
{node}

{note:title=TODO}
For more information on creating webapps to run SCA contributions with Tuscany see - ?

...

Running something in Tuscany requires one or more contributions, and a method of launching the contributions to make the services they provide available. The sections below describes various means of launching contributions with the Tuscany SCA Java runtime. It's not important that you try all of these but they show you what's possible and hopefully show you how to use Tuscany in an environment that makes sense to you environment.

Some of the running-tuscany sub-directories just contain a README that gives you instructions. For example, maven just tells you how to configure and run contributions using the maven-tuscany-plugin. Other code more Others contain code. For example, embedded-jse contains simple Java launchers that show you how to start some of the sample contributions from a Java program.

The sample contributions in getting-started and learning-more should work regardless of which approach you adopt. However some approachsapproaches, like embedded-jse, don't have launchers for every single sample contribution.

...

Instructions for how to execute a sample contribution from the command line on Windows or linuxLinux.

eclipse

Instructions for how import sample contributions into eclipse and have them compile against the Tuscany runtime Jars. If you also use the simple Java launcher style demonstrated in the embedded-jse directory you can easily launch and debug contributioncontributions. The sample launching code can be included in JUnit tests if you want to be able to automatically test your contributions.

...