Versions Compared

Key

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

...

Code Block
@Remotable
public interface CalculatorService {
   String calculate(Integer n1);
}

@Remotable
@AsyncInvocation

public interface CalculatorServiceAsync {

   void calculateAsync(Integer n1, ResponseDispatch<String> response);

}

binding-comet

Executing the command "mvn" in this sample project creates a web archive suitable for deployment to Tomcat. It makes use of the tuscany coment binding. Comet support allows a servlet to process IO asynchronously, receiving events when data is available for reading on the connection (rather than always using a blocking read), and writing data back on connections asynchronously (most likely responding to some event raised from some other source).

Warningnote
titleTODO

Understand and DocumentNeeds expert review/update

binding-jsonrpc

This sample demonstrates using a simple calculator service component which makes use of four services for the basic arithmetic functions. In this variant of the calculator sample you can see by looking in the src/main/resources/Calculator.composite xml file that the AddService is configured to be invoked using the json rpc protocol.

...