public interface DefaultFailedMessageRetrierJmxMBean extends ChildRuntimeInfoComponentMBean
DefaultFailedMessageRetrier
Modifier and Type | Method and Description |
---|---|
boolean |
retryMessage(java.io.File file)
Retry a message that has been written to the filesystem.
|
boolean |
retryMessage(SerializableMessage msg)
Retry a message.
|
getParentId, getParentObjectName
createObjectName, registerMBean, unregisterMBean
boolean retryMessage(SerializableMessage msg) throws CoreException
Using metadata that is already present in the message, namely Workflow.WORKFLOW_ID_KEY
, retry the message. Note that
the return code only indicates that a workflow was found, and the message was successfully submitted to the workflow. It does
not indicate anything about the successful processing (or not) of the message.
msg
- the messageCoreException
- if there was an error unwrapping the file using DefaultSerializableMessageTranslator
boolean retryMessage(java.io.File file) throws java.io.IOException, CoreException
This assumes that the contents of the file has previously been encoded using a MimeEncoder
and written out to the
filesystem. It will decode the file and then submit it using retryMessage(SerializableMessage)
. Note that the
return code only indicates that a workflow was found, and the message was successfully submitted to the workflow. It does not
indicate anything about the successful processing (or not) of the message.
file
- the file, local to the adapter that contains the message to be retried.java.io.IOException
- if there was an error reading the file.CoreException
- if there was an error decoding the file using MimeEncoder
.