summaryrefslogtreecommitdiffstats
path: root/sca-java-2.x/branches/2.0-Beta3/unreleased/samples/getting-started/helloworld-scaclient/README
blob: 0cfd8df59071bb81a6e0dfdcef5ad667af6cc73b (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
Tuscany - Getting Started - Helloworld SCAClient Sample
-------------------------------------------------------

This sample demonstrates using the OASIS SCAClient API to invoke a service in a remote SCA domain.

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

This project has a Java class with a main method which uses the SCAClient API to invoke a Helloworld
service in a remote SCA domain.

Before running this sample you must have a helloworld service running in a SCA domain somewhere,
for example, you can do that by using a separate command prompt to run the Tuscany 
"Getting Started - Helloworld Sample" with the command 

   mvn tuscany:run -DdomainURI=uri:default

(including that domainURI parameter activates the Tuscany distributed domain) 
 
You can then run this SCAClient sample with the Maven command: 

   mvn tuscany:run

You should see the following oputput:

   HelloworldSCAClient, using domainURI uri:default
   Calling HelloworldComponent.sayHello("world")
   Hello world