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.
If you want to remove a shared library, you must first remove any resources that reference that shared library.
To remove an object from an integration server by using the IBM Integration Toolkit, complete the following steps.
The request is sent to the integration node, 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 integration node. 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 IntegrationNodeConnectionParameters
("localhost", 4414);
try {
BrokerProxy b =
BrokerProxy.getInstance(bcp);
ExecutionGroupProxy e =
b.getExecutionGroupByName("default");
e.deleteDeployedObjectsByName(
new String[] { "file1.msgflow",
"file2.msgflow",
"file3.xsd",
"file4.msgflow" }, 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.