public MQeQueueManager startQueueManager() throws Exception {
logger.debug("Starting the queue manager.");
// Create all the configuration information needed to construct the
// queue manager in memory.
MQeFields config = new MQeFields();
// Construct the queue manager section parameters.
MQeFields queueManagerSection = new MQeFields();
queueManagerSection.putAscii(MQeQueueManager.Name, queueManagerName);
config.putFields(MQeQueueManager.QueueManager, queueManagerSection);
// Construct the registry section parameters.
// In this examples, we use a public registry.
MQeFields registrySection = new MQeFields();
registrySection.putAscii(
MQeRegistry.Adapter,
"com.ibm.mqe.adapters.MQeDiskFieldsAdapter");
registrySection.putAscii(
MQeRegistry.DirName,
baseDirectoryName + queueManagerName + "/Registry");
config.putFields("Registry", registrySection);