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:26:22 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

------------------------------------------------------------------------------
      <<should have contents that ideally point to the Apache Tuscany Website>>
  
  == Samples ==
+    The samples demonstrate the deployment of one or more service components into the SCA
Runtime, then finding them and invoking service methods on them.
+   
+    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.
+ 
+    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();
+         helloWorldService = context.locateService(HelloWorldService.class, "HelloWorldComponent");
+         System.out.println(helloWorldService.sayHello("Friend"));"
+ 
+ 
+ 
      << 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