Connection definitions define the network for MQe and therefore great care should be taken when altering or deleting them. It is strongly recommended that when altering or deleting a connection definition one should ensure there is no activity on the network that may be using that connection definition.
As with creating a connection definition, in order to alter or delete a connection definition an administration message must be used. The approach is the same as for creating a connection definition, with a different action being used for the administration message. For instance in order to update a connection definition the following method should be used:
updateMessage.update( "com.ibm.mqe.adapters.MQeTcpipHttpAdapter:127.0.0.1:8083", null, null, "DefaultChannel", "Altered Example Connection");
In order to delete a connection definition all that is required is the resource name and the relevant action being set, so the following method is used:
deleteMessage.setAction(MQeAdminMsg.Action_Delete);