8 Replies Latest reply on Jun 19, 2006 3:25 AM by Mark Little

    How to ensure the completion of BAParticipant at client side

    Qingjun Xiao Newbie

      using WS-BA,

      code@client side
      {
      userBusinessActivity.begin();
      
      call service A
      
      call service B
      
      userBusinessActivity.close();
      }


      if I want to call service A;B sequentially, how can i ensure service A is completed to initiate an invocation to service B after that point?

      Considering there are two different styles of service implementation,
      Service implementation in Style 1
       ----> rpc request
       check the validation of the request
       self registration to the BusinessActivityManager
       complete the job
       BusinessActivityManager.completed()
       <---- rpc response
      

      Service implementation in Style 2
       ------> rpc request
       check the validation of the request
       self registration to the BusinessActivityManager
       schedule a background worker thread to complete the job and return instantly
       <------ rpc response
      
       BusinessActivityManager.completed() will be called by worker thread later at some unpredictable point
      


      It seems if service A,B are both implemented in style 1, I can assure myself that service A, B is completed if return from rpc call. But what happens with services implemented in style 2. How can i check the status of the invoked service.