ws-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Apache Wiki <wikidi...@apache.org>
Subject [Ws Wiki] Update of "Tuscany/TuscanyJava/SCA Java Overview" by Venkatakrishnan
Date Sat, 05 Aug 2006 09:29:18 GMT
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: general-unsubscribe@ws.apache.org
For additional commands, e-mail: general-help@ws.apache.org


Mime
View raw message