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 ====
     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. 
  
+ 
-         "CompositeContext context = CurrentCompositeContext.getContext();
+         "CompositeContext context = CurrentCompositeContext.getContext();"
-         helloWorldService = context.locateService(HelloWorldService.class, 
"HelloWorldComponent");
+         "helloWorldService = context.locateService(HelloWorldService.class, 
"HelloWorldComponent");"
-         System.out.println(helloWorldService.sayHello("Friend"));"
+         "System.out.println(helloWorldService.sayHello("Friend"));"
  
  
  
-     << lists the samples that are there in SCA and the features that they 
demonstrate >>
+ << lists the samples that are there in SCA and the features that they 
demonstrate >>
         
    
  

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

Reply via email to