Sonic ESB API

com.sonicsw.xq
Interface XQProcessContinuationHandler


public interface XQProcessContinuationHandler

Implement this interface to save and retrieve process continuation objects from the appropriate data source. The data source could be a database, message header, cache, file, etc.

See Also:
XQProcessContinuation

Method Summary
 XQProcessContinuation retrieve(XQMessage message, XQServiceContext serviceContext)
          Create a process continuation object from the target data source.
 void save(XQMessage message, XQServiceContext serviceContext, XQProcessContinuation continuation)
          Write the process continuation object to the appropriate data source.
 

Method Detail

save

void save(XQMessage message,
          XQServiceContext serviceContext,
          XQProcessContinuation continuation)
Write the process continuation object to the appropriate data source. Depending on your use case you can also retain relevant information from the XQMessage (like message headers, ReplyTo destination, etc.)

Parameters:
message - The XQMessage
serviceContext - The service context of the service doing the passivation
continuation - The continuation object

retrieve

XQProcessContinuation retrieve(XQMessage message,
                               XQServiceContext serviceContext)
Create a process continuation object from the target data source. If you have persisted information related to the message then also make adequate changes to the XQMessage object that is passed to this method.

Parameters:
message - The XQMessage
serviceContext - The service context of the service doign the activation
Returns:
A new process continuation object

Sonic ESB API

Copyright © 2001-2012 Progress Software Corporation. All Rights Reserved.
HTML formatted on 13-Mar-2012.