summaryrefslogtreecommitdiffstats
path: root/sca-java-2.x/trunk/samples/getting-started/helloworld-contribution/README
blob: 34c4b3a7887da7f423aca61e1a92c5fc3c7e4da3 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
Tuscany - Getting Started - Helloworld Sample
---------------------------------------------

This sample demonstrates a simple helloworld style SCA application and how to run that with Tuscany.

See the README in the top-level samples folder for general information on the Tuscany samples.

This project creates a jar format SCA contribution which has a deployable SCA composite. The composite
defines a single component named "HelloworldComponent" which implements a Helloworld service which
is implemented by a Java class. A JUnit testcase tests running the composite and invoking the service.

You can use the contribution built in the Tuscany Shell - at the root of a Tuscany binary distribution 
run the following command:

   bin\tuscany.bat samples\getting-started\helloworld-contribution  

You may then call the helloworld service with the shell command:

   invoke HelloworldComponent sayHello "your name"


---
 
This sample was created by the Tuscany contribution-jar Maven archetype. You can use that archetype to 
create you own SCA contribution projects by running the following maven command:

   mvn archetype:generate -DarchetypeCatalog=http://tuscany.apache.org

at the prompt select 1 to choose the contribution-jar archetype and then answer the questions. This project
used the following answers:

   Define value for property 'groupId': : org.apache.tuscany.sca.samples
   Define value for property 'artifactId': : helloworld-contribution
   Define value for property 'version': 1.0-SNAPSHOT: 2.0-SNAPSHOT
   Define value for property 'package': org.apache.tuscany.sca.samples: sample