SCA Support

The SCA specification defines a number of annotations which can be used to add metadata to your POJOs to help give runtimes an idea over how the remoting and clustering should work.

For example using the SCA annotations you can describe which methods are asynchronous.

import org.osoa.sca.annotations.OneWay;

public class MyService {

    @OneWay   
    public void doSomething(String name, long foo) {
    }
}

Enabling SCA

To enable SCA you need to add the lingo-sca.jar to your classpath. Lingo will then use the SCAMetadataStrategy class by default for its Metadata Strategy unless you explicitly configure one in your Spring.xml. You can of course be specific and explicitly configure the Metadata Strategy implementation you wish to use etc.

Labels

 
(None)