ASG
IBM
Zystems
Cressida
Icon
Netflexity
 
  MQSeries.net
Search  Search       Tech Exchange      Education      Certifications      Library      Info Center      SupportPacs      LinkedIn  Search  Search                                                                   FAQ  FAQ   Usergroups  Usergroups
 
Register  ::  Log in Log in to check your private messages
 
RSS Feed - WebSphere MQ Support RSS Feed - Message Broker Support

MQSeries.net Forum Index » IBM MQ Telemetry / Low Latency Messaging / Everyplace » Bad Queue Store

Post new topic  Reply to topic
 Bad Queue Store « View previous topic :: View next topic » 
Author Message
klingelb
PostPosted: Fri Nov 19, 2004 7:56 am    Post subject: Bad Queue Store Reply with quote

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
View user's profile Send private message
klingelb
PostPosted: Fri Nov 19, 2004 1:29 pm    Post subject: Bad Queue Store Reply with quote

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
View user's profile Send private message
Display posts from previous:   
Post new topic  Reply to topic Page 1 of 1

MQSeries.net Forum Index » IBM MQ Telemetry / Low Latency Messaging / Everyplace » Bad Queue Store
Jump to:  



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
Protected by Anti-Spam ACP
 
 


Theme by Dustin Baccetti
Powered by phpBB © 2001, 2002 phpBB Group

Copyright © MQSeries.net. All rights reserved.