|
RSS Feed - WebSphere MQ Support
|
RSS Feed - Message Broker Support
|
 |
|
Bad Queue Store |
« View previous topic :: View next topic » |
Author |
Message
|
klingelb |
Posted: Fri Nov 19, 2004 7:56 am Post subject: Bad Queue Store |
|
|
 Apprentice
Joined: 25 Sep 2002 Posts: 28
|
try {
String registryPref = MqePlugin.getDefault().getPluginPreferences().getString(PREF_MQE_REGISTRY_LOCATION);
IPath registryLocation = validateRegistryLocation(registryPref);
qmgrfields = new MQeFields();
String qmname = InetAddress.getLocalHost().getHostName() + QMNAME_CONSTANT;
qmgrfields.putAscii(MQeQueueManager.Name,qmname);
regfields = new MQeFields();
regfields.putAscii(MQeRegistry.LocalRegType,FILE_REGISTRY_ADAPTER);
regfields.putAscii(MQeRegistry.Adapter,MQeDiskFieldsAdapter.class.getName());
if(registryLocation == null)
registryLocation = MqePlugin.getDefault().getStateLocation().append(DEFUALT_REGISTRY_DIR);
regfields.putAscii(MQeRegistry.DirName,registryLocation.toOSString());
parms = new MQeFields();
parms.putFields(MQeQueueManager.QueueManager, qmgrfields);
parms.putFields(MQeQueueManager.Registry, regfields);
qmConfig = new MQeQueueManagerConfigure(parms,registryLocation.append(qmname).append(QSTORE).toString());
if(qmConfig.queueManagerExists())
qmConfig.activate(parms);
else{
qmConfig.defineQueueManager();
qmConfig.defineDefaultAdminQueue();
qmConfig.defineDefaultAdminReplyQueue();
qmConfig.defineDefaultDeadLetterQueue();
qmConfig.defineDefaultSystemQueue();
qmConfig.activate(parms,registryLocation.append(QSTORE).toOSString());
}
} catch (UnknownHostException e) {
// TODO Auto-generated catch block
e.printStackTrace();
} catch (IllegalStateException e) {
// TODO Auto-generated catch block
e.printStackTrace();
} catch (Exception e) {
// TODO Auto-generated catch block
e.printStackTrace();
}
On the line: qmConfig = new MQeQueueManagerConfigure(parms,registryLocation.append(qmname).append(QSTORE).toString());
I get an MQeException: Code 3 detailMessage= "Bad queue store: C:/Documents and Settings/Administrator/My Documents/workspaces/runtime-workspace/.metadata/.plugins/com.ibm.wci.mqe/data/MQeRegistry/klingelbmobile1.ClientQM/Queues"
I am running on a win32 desktop workstation. Any ideas? |
|
Back to top |
|
 |
klingelb |
Posted: Fri Nov 19, 2004 1:29 pm Post subject: Bad Queue Store |
|
|
 Apprentice
Joined: 25 Sep 2002 Posts: 28
|
the line ----> qmConfig = new MQeQueueManagerConfigure(parms,registryLocation.append(qmname).append(QSTORE).toString());
should have been -----> qmConfig = new MQeQueueManagerConfigure(parms,"MsgLog:" + registryLocation.append(qmname).append(QSTORE).toString());
the "MsgLog:" is key |
|
Back to top |
|
 |
|
|
 |
|
Page 1 of 1 |
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
|
|
|