Dear Wiki user,

You have subscribed to a wiki page or wiki category on "Ws Wiki" for change 
notification.

The following page has been changed by Venkatakrishnan:
http://wiki.apache.org/ws/Tuscany/TuscanyJava/SCA_Java_Overview

------------------------------------------------------------------------------
    
     The responsibility of bringing up the runtime, loading it with components 
defined in various scdls and finally deploying them as Service Components 
(runtime artifacts) in abstracted into the Launcher.  Hence to test a sample 
service component, the first step would be to start the launcher.
  
- ==== Tescases in Samples ====
+ === Tescases in Samples ===
     The testcases of SCA Samples extend from SCATestCase which starts the 
Launcher as part of the test setup.  Thus before the testcases are actually 
executed the Laucher is started and it handles the booting of the SCA Runtime, 
loading of system components as well as the application components (spread 
across various scdl files).  Hence the sample testcases simply deal with 
obtaining a runtime context, locating the service component being tested and 
invoking service methods on them. 
  
  
@@ -54, +54 @@

          helloWorldService = context.locateService(HelloWorldService.class, 
"HelloWorldComponent");
          System.out.println(helloWorldService.sayHello("Friend"));''
  
- ==== Running Samples from within IDE ====
+ === Running Samples from within IDE ===
  Download the source code from 
https://svn.apache.org/repos/asf/incubator/tuscany/java and build the 
distribution.  This will create <Tuscany 
Codebase>\distribution\sca\standalone\target with two files 
standalone-1.0-SNAPSHOT-bin.tar.gz and standalone-1.0-SNAPSHOT-bin.zip.
  
  Unpack say standalone-1.0-SNAPSHOT-bin.zip, if you are working on windows, to 
some location on your machine for example c:\Tuscany_Standalone.
  
- ===== Running Samples from within IDEA & Eclipse =====
+ ==== Running Samples from within IDEA & Eclipse ====
      * Create a junit configuration for e.g. CalculatorTestCase
      * Edit that configuration to set the system property 
"-Dtuscany.installDir=c:\Tuscany_Standalone"
      * Run or Debug that configuration
  
- ===== Remote Debugging =====
+ ==== Remote Debugging ====
  $ java -Xdebug -Xnoagent -Djava.compiler=NONE - 
Xrunjdwp:transport=dt_socket,server=y,suspend=y,address=5005 -jar 
bin/launcher.jar --classpath ~/.m2/repository/org/apache/tuscany/samples/ 
sca/sample-localwire/1.0-SNAPSHOT/sample-localwire-1.0-SNAPSHOT.jar
  
  and then attach to the suspended process.

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to