Versions Compared

Key

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

...

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 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.

...

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

...