移除訊息對映程式

如果要移除訊息對映程式, 您必須在 instance_name.xml 檔中, 以手動方式將之從訊息對映程式群組中移除。如果要移除訊息對映程式,請執行下列步驟:

  1. 開啟 instance_name.xml 配置檔。
  2. 找出名稱為 MessageMapperGroup 的元件。
  3. 找出您要移除之訊息對映程式的 XML 配置節點。 其類似如下:
    <MessageMapper messageMapperId="#"
            classname="class inplementing MessageMapper interface"
            enable="true"
            name="Name of Message Mapper">
        <configuration />
        </MessageMapper>
    
  4. enable 參數變更為 "false"。 這會停用訊息對映程式,並讓其無法使用。