com.ibm.commerce.messaging.commands

Class ResendMsgCmdImpl

  • All Implemented Interfaces:
    AccCommand, ControllerCommand, ECCommand, ECTargetableCommand, ResendMsgCmd, Protectable, ToolsControllerCommand, com.ibm.websphere.cache.Sizeable, com.ibm.websphere.command.CacheableCommand, com.ibm.websphere.command.Command, com.ibm.websphere.command.CommandCaller, com.ibm.websphere.command.TargetableCommand, java.io.Serializable


    public class ResendMsgCmdImpl
    extends com.ibm.commerce.messaging.commands.MessagingAdminCmd
    implements ResendMsgCmd
    ResendMsgCmdImpl is the default implementation of ResendMsgCmd. This command is used to send messages from either the MSGARCHIVE or MSGSTORE table.
    See Also:
    Serialized Form
    • Field Detail

      • COPYRIGHT

        public static final java.lang.String COPYRIGHT
        The IBM copyright notice field.
        See Also:
        Constant Field Values
    • Constructor Detail

      • ResendMsgCmdImpl

        public ResendMsgCmdImpl()
    • Method Detail

      • performExecute

        public void performExecute()
                            throws ECException
        /** The business logic of this command.

        Its execution is based on the mode, 0 or 1. If the mode is 0, this command retrieves and assembles the messaging objects found in MSGARCHIVE table. Otherwise, it will do the same job on the MSGSTORE table. The sending operation is sendTransacted.

        Specified by:
        performExecute in interface ECCommand
        Specified by:
        performExecute in interface com.ibm.websphere.command.TargetableCommand
        Overrides:
        performExecute in class AbstractECTargetableCommand
        Throws:
        ECException
      • validateParameters

        public void validateParameters()
                                throws ECException
        ControllerCommandImpl calls checkParameter in its performExecute. It is the responsibility of the command writers to implements this method if they want to perform server side parameter checking. They should either call checkParameters inside their performExecute or call super.performExecute() as the first statement in the performExecute method.

        Required parameters:

        • transport_id
        • msg_id
        • mode
        Specified by:
        validateParameters in interface ECCommand
        Overrides:
        validateParameters in class AbstractECTargetableCommand
        Throws:
        ECException - Raised with ERR_CMD_MISSING_PARAM when the needed parameters cannot be found in the request properties.