如果要移除訊息對映程式, 您必須在 instance_name.xml 檔中, 以手動方式將之從訊息對映程式群組中移除。如果要移除訊息對映程式,請執行下列步驟:
- 開啟 instance_name.xml 配置檔。
- 找出名稱為 MessageMapperGroup 的元件。
- 找出您要移除之訊息對映程式的 XML 配置節點。
其類似如下:
<MessageMapper messageMapperId="#" classname="class inplementing MessageMapper interface" enable="true" name="Name of Message Mapper"> <configuration /> </MessageMapper>
- 將 enable 參數變更為 "false"。 這會停用訊息對映程式,並讓其無法使用。