The Tuscany Greeter One-Way client sample shows using the Tuscany SCA
runtime in a J2SE environment loading a component client that
performs an asynchronous one-way web service call.
The client uses a one-way (asynchronous) interface
that is supported by the web services binding (binding.ws) that
it specifies. The component definition is given implicitly by
the Java code and the use of the @OneWay
annotation.
This sample is located in the samples\standalone\greeterwsclient-oneway directory. All the following commands should be issued while working in the sample directory.
Obtain the following prerequisites and install according to their documentation.
To build the sample issue :
mvn
The result after executing is in the target subdirectory the sample-greeterwsclient-oneway-1.0-incubator-M2.jar
This sample depends on the greeterws-oneway already running to execute successfully
Set up the Tuscany standalone runtime environment using the following command:
mvn dependency:unpack
After completion there should be a target\distribution subdirectory created that has the Tuscany standalone runtime.
Each sample can require one or more Tuscany runtime extensions. For this sample copy from target\distribution\contrib to the target\distribution\extensions directory the following extensions:
axis2-1.0-incubator-M2.jar | Axis webservices binding |
Execute the following command: (cut and paste to command line)
java -jar target/distribution/bin/launcher.jar target/sample-greeterwsclient-oneway-1.0-incubator-M2.jar
The sample when run should simply display to the Tomcat console window's standard output:
Hello John