Mfp.submitMessage

Description

Submits a message to the Message Feed server. Before submitting a message, the authenticate method must be called to authenticate to the server.

A message can be submitted either using a file path or an input stream, hence the two alternative method syntaxes.

A message is submitted to a specified integration engine activity. The message consists of data and attributes and is optionally identified by a message ID.

The method returns the reply as an object of class MfpSubmitMessageReply.

Class

core.mfp.Mfp

Method

submitMessage

Syntax

public MfpSubmitMessageReply

submitMessage (String integration, String activity, String filePath, MfpAttribute attributes[ ], String messageId, int acknowledge, int timeout) throws MfpException

 

public MfpSubmitMessageReply

submitMessage(String integration, String activity, InputStream dataStream, MfpAttribute attributes[ ], String messageId, int acknowledge, int timeout) throws MfpException

Parameters

Error handling

The submitMessage method throws an MfpException when authentication fails.

Use the MfpException.toString method to get a textual description of the exception.