Differences between revisions 5 and 6
Revision 5 as of 2006-07-03 12:13:36
Size: 1281
Editor: adsl-ull-102-193
Revision 6 as of 2009-09-20 22:47:31
Size: 1281
Editor: localhost
Comment: converted to 1.6 markup
No differences found!

Local Stateless Callback


The ability to invoke a service in a non-blocking fashion and receive a stateless callback.

Use cases

1. Simple invocation

Implement infrastructure to support a simple invocation on a service which then performs a stateless callback. This use-case does not include use of SCA APIs such as ServiceReference. The following application artifacts illustrate this:

public interface MyService {

    public void someMethod(String arg); 

public interface MyServiceCallback {

    public void receiveResult(String result); 

public class SomeClientImpl implements AnotherService, MyServiceCallback {

   private MyService myService;


   public void setMyService(MyService service){
                myService = service;

   public void aClientMethod() {
   public void receiveResult(String result) {
       // do something

public class MyServiceImpl implements MyService {

    protected MyServiceCallback callback; 

    public void someMethod(String arg) {


Tuscany/TuscanyJava/Scenarios/ConversationalSupport/LocalStatelessCallback (last edited 2009-09-20 22:47:31 by localhost)