You might want to remove deployed objects from an integration server if, for example, you want to rename them.
Stop all message flows in the integration server. For more details, see Stopping an integration server using the IBM Integration Toolkit or IBM Integration Explorer.
To remove an object from an integration server by using the IBM Integration Toolkit, complete the following steps.
The request is sent to the broker, and a synchronous response is sent back.
To remove an object from an integration server by using the IBM Integration Explorer, complete the following steps.
The request is sent to the broker, and a synchronous response is sent back.
To remove an object from an integration server by using the mqsideploy command, complete the following steps.
The command reports when responses are received from the broker. If the command completes successfully, it returns zero (0).
import com.ibm.broker.config.proxy.*;
public class DeleteDeployedObjects {
public static void main(String[] args) {
BrokerConnectionParameters bcp =
new MQBrokerConnectionParameters
("localhost", 1414, "QM1");
try {
BrokerProxy b =
BrokerProxy.getInstance(bcp);
ExecutionGroupProxy e =
b.getExecutionGroupByName("default");
e.deleteDeployedObjectsByName(
new String[] { "file1.cmf",
"file2.cmf",
"file3.dictionary",
"file4.xml" }, 0);
}
catch (ConfigManagerProxyException e) {
e.printStackTrace();
}
}
}
If you have removed one or more message flows, you can now remove the resource files that are associated with those message flows; for example, JAR files.