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 JeanSebastienDelfino:
http://wiki.apache.org/ws/Tuscany/J2SESetup

------------------------------------------------------------------------------
- = Set up your classpath to run Tuscany applications in J2SE =
+ = J2SE Classpath Configuration =
  
- To be able to run Tuscany applications in a J2SE environment, the Tuscany 
runtime JAR files and the JAR files they depend on must be added to your J2SE 
classpath.
+ Tuscany applications can be run in a J2SE 5.0 environment. Before you can run 
Tuscany applications in that environment, the Tuscany runtime JAR files and the 
JAR files they depend on must be added to your J2SE classpath.
  
  Add the following JAR files to the classpath:
- 
  {{{
  sca-api-SNAPSHOT.jar
  sdo-api-SNAPSHOT.jar
@@ -39, +38 @@

  wstx-asl-2.8.2.jar
  }}}
  
+ = Application Programming =
+ Application code that wishes to use SCA services must first start the Tuscany 
runtime. Then the application code can access the module context in the normal 
way using the !CurrentModuleContext API
+ {{{
+ TuscanyRuntime tuscany = new TuscanyRuntime("hello", null);
+ tuscany.start();
+ 
+ ModuleContext ctx = CurrentModuleContext.getContext();
+ MyService service = (MyService) ctx.locateService("serviceName");
+ service.doStuff(...);
+ 
+ tuscany.stop();
+ }}}
+ 

Reply via email to