Versions Compared

Key

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

...

  • Providing and assembling the service behind your B2B exchanges

TODO - Policy driven approach

binding.ws

Enabling Web 2.0

A web2.0 style application's ability to present a dynamic and responsive interface relies on an organizations ability to provide services for the application to interact. As you might expect Tuscany SCA is ideally placed to provide those services using popular technologies such as JSON, XML, RSS, Atom. From the Tuscany Java SCA store sample (samples/store) you can see a catalog service providing a service over JSONRPC

...

Tuscany SCA supports other modes of operation also, for example, the Tuscant Java SCA Chat sample (samples/chat) uses binding.dwr to provide a Direct Web Remoting (https://dwr.dev.java.net/)connection between the browser app and an SCA service. Using this binding service to browser communication is supported alongside browser to service communication.

Script To provide consistency for Web2.0 style application developers script language based component implementations can also be used. Tuscany SCA provides implementation.script which currently supports Javascript, Groovy, Ruby and Python. Those developers comfortable with writing browser based scripts can , for example, write service base java script components

Code Block

SCDL showing implementation.script
Code Block

Simple javascript component

TODO - Policy driven approach

...

now provides server side component implementations also. The Tuscany Java SCA Calculator Script (samples/calculator-script) shows scripts at work.

Code Block

    <component name="AddServiceComponent">
        <tuscany:implementation.script script="calculator/AddServiceImpl.js"/>
    </component>
Code Block

function add(n1, n2) {
   return n1 + n2;
}

Data integration

In an SOA environment, business service collaborations are achieved by data exchanges between service components. Business data come from different sources and they are represented in different ways. Tuscany provides a few features in the data area to facilitate the data integrations.

...