Normally, creating and starting a queue manager can require a large set of parameters. Therefore, the required parameters are supplied as an instance of MQeFields, storing the values as fields of correct type and name.
/*create fields for queue manager parameters and place the queue manager name MQeFields queueManagerParameters = new MQeFields(); queueManagerParameters.putAscii(MQeQueueManager.Name, "ExampleQM"); /*create fields for registry parameters and place the registry location MQeFields registryParameters = new MQeFields(); registryParameters.putAscii(MQeRegistry.DirName, "C:\\ExampleQM\\registry"); /*create fields for combined parameters and place the two sub fields MQeFields parameters = new MQeFields(); parameters.putFields(MQeQueueManager.Registry, queueManagerParameters); parameters.putFields(MQeQueueManager.Registry, registryParameters);Wherever you see "initialize the parameters" in code snippets, prepare a set of parameters as shown in the example, including the appropriate options. Only one queue manager name and one registry location are mandatory.