Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Clearly this pattern can be extended to any service your Web2.0 style application is required to communicate with. The full range of SCA features is then available to these services. For example, our Catalog service could easily be exposed as a web service (binding.ws) by extending the SCDL description of the service.

Code Block
    ...
    <service name="Catalog">
        <t:binding.jsonrpc/>
        <binding.ws/>
    </service>
    ...

Note that no changes to the Catalog component code are required. The Tuscany SCA runtime is doing all the hard work.

...

Application developers should have the freedom to choose their preferred data representation without being restricted by the above concerns and worrying about the mappings. Tuscany SCA automatically handles this for them. Tuscany provides the most poplular databindings including SDO, JAXB, XMLBeans, AXIOM, JSON, DOM, SAX and StAX. There are more than 50 transformers to convert data between the databindings. With the transformer graph, we support not only point-to-point transformations but also multiple-hop transformations. This approach greatly reduces the number of transformers required and makes it possible to transform data without a direct transformation logic. It's very common that some databindings will be supported required as the intermediaries, for example, the XML StingString, DOM Node and StAX XMLStreamReader are very populate in the XML world.

...

The java interface is interesting. We use The example uses StAX to streamline the XML data exchange over the web serviceservices. Thanks to the databinding framework, the component developer can choose its their preferred XML java databinding technology such as JAXB, SDO, DOM or StAX no matter how the SOAP message is represented in the web services stack (AXIOM is used by Axis2).

...

This is very useful for contacting external services or, in the case of services, for exposing SCA service to external applications. This approach would require ..... CAN WE REWORD THE FOLLOWING AS A CONTINUATION OF THIS SENTENCE INSTEAD? is used for all references and services within an SCA Domain then As this approach requires that explicit endpoint information is provided reference and service bindings are likely to require changing as services are moved between nodes in a domain. As a convenient alternative any service within the SCA Domain can be identified simply by name.

...

Tuscany SCA will automatically use a default binding to communicate with the target service regardless of whether the service is local or remote to the calling component. In this way the infrastructure can be adjusted and the components redeployed without having to change .composite file information. FIRST TIME WE USE .composite in the paper. Can this be changed to... without changing the SCLD?changing the SCDL.

Choosing how to run the Tuscany SCA runtime depends on your local environment but there are several options currently supported.

...