com.bea.b2b.protocol.xocp.conversation.local
Interface ConversationHandler


public interface ConversationHandler

The ConversationHandler interface represents a handler for receiving messages in a conversation. C-enabler applications should implement this interface.

Author:
Copyright © 2000 BEA Systems, Inc. All Rights Reserved.

Method Summary
 void onMessage(XOCPMessage msg)
          Callback to indicate that the specified message was received.
 void onTerminate(Conversation conv, int result)
          Callback to indicate that the specified conversation was terminated with the specified result (SUCCESS or FAILURE).
 

Method Detail

onMessage

public void onMessage(XOCPMessage msg)
Callback to indicate that the specified message was received.

Parameters:
msg - XOCP business message.

onTerminate

public void onTerminate(Conversation conv,
                        int result)
Callback to indicate that the specified conversation was terminated with the specified result (SUCCESS or FAILURE).

Parameters:
conv - Conversation being terminated.
result - Result of the conversation.