Skip to main content

Notice: this Wiki will be going read only early in 2024 and edits will no longer be possible. Please see: https://gitlab.eclipse.org/eclipsefdn/helpdesk/-/wikis/Wiki-shutdown-plan for the plan.

Jump to: navigation, search

Difference between revisions of "SCA Java support in STP"

(Setup Eclipse Plugins)
(SCA annotation editing)
Line 52: Line 52:
 
=== SCDL Editing ===
 
=== SCDL Editing ===
 
=== SCA annotation editing ===
 
=== SCA annotation editing ===
 +
The SCA and Tuscany annotations are supported by extending the annotation editing framework in STP.
 +
In the java source editor, once you select java class, method or field, we will show the applicable annotations in the Annotation Properties View.
 +
Then you can add appreciate annotation from there.
 +
Notice: the sca annotation validation rules hasn't been setup yet. It will be provided in the next milestone
 +
 +
[[Image:Sca_annotation_properties_view.JPG]]
 +
 
=== Generating WSDL ===  
 
=== Generating WSDL ===  
 
=== WSDL Editor ===
 
=== WSDL Editor ===

Revision as of 03:07, 24 January 2007

This wiki page is used to explain the current SCA Java support in STP Service Creation project.

It's just draft version, please give your valuable feedback to help us to improve it in the next milestone.

Thanks

Johnson Ma (Jan 24, 2007)

Introduction

We just added SCA Java support in STP service creation project. It allows user to create/debug SCA component within Eclipse by providing following functions:

  * Project wizard to help user to create sca java component
  * Fasttrack wizard to generate default.scdl and java empty interface/impl class
  * SCDL Editor. which is indeed the WST XML Editor with sca.xsd loaded
  * SCA and tuscany annotations editing support.
  * launch configuration to run & debug sca java component with Eclipse.
  * Integrated with Tuscany Java2Wsdl tool -sca-java-1.0-M2 release

Runtime/Spec info:

  * SCA java impl v0.95
  * SCA Assemble model v0.96
  * Tuscany-sca-java-1.0-M2 release

Setup Eclipse Plugins

The STP does not have update site yet. So we need to setup the Eclipse env manually. Please download and install the following plugins:

STP Plugins http://download.eclipse.org/stp/committers/
Apache Tuscany plugin http://www.eclipse.org/stp/plugins/tuscany-eclipse-plugin-1.0-incubator-M2.zip


Please set the Tuscany kit location in preference page as the image below before do any SCA related work.

Sca preferences.JPG

Creating SCA Java Component using STP Service Creation and Tuscany

Creating SCA Java component project

SCDL Editing

SCA annotation editing

The SCA and Tuscany annotations are supported by extending the annotation editing framework in STP. In the java source editor, once you select java class, method or field, we will show the applicable annotations in the Annotation Properties View. Then you can add appreciate annotation from there. Notice: the sca annotation validation rules hasn't been setup yet. It will be provided in the next milestone

Sca annotation properties view.JPG

Generating WSDL

WSDL Editor

Generating Jar file

Run the SCA Java component

Create client project

Deploy to tomcat container

Todo list

References

Back to the top