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 » WebSphere Message Broker (ACE) Support » Path to .configmgr file in z/os - 8041E

Post new topic  Reply to topic
 Path to .configmgr file in z/os - 8041E « View previous topic :: View next topic » 
Author Message
ganesh
PostPosted: Tue May 31, 2011 6:02 am    Post subject: Path to .configmgr file in z/os - 8041E Reply with quote

Master

Joined: 18 Jul 2010
Posts: 294

I am trying to pass the .configmgr file to the MQPropertyFileConfigManagerConnectionParameters(" " ) constructor and i get a 8041E error- Unable to open the selected file.

ConfigManagerConnectionParameters cmcpq = new MQPropertyFileConfigManagerConnectionParameters("com.a.b.cn");

I tried passing the path of file as - cn.configmgr, com/a/b/cn.configmgr, com.a.b.cn, ./cn.configmgr but none of them worked.

Would anyone be able to help me with this?
Back to top
View user's profile Send private message
mqmatt
PostPosted: Wed Jun 01, 2011 8:31 am    Post subject: Reply with quote

Grand Master

Joined: 04 Aug 2004
Posts: 1213
Location: Hursley, UK

For the MQPropertyFileConfigManagerConnectionParameters constructor, the CMP just instantiates a Java File object based on the String you provide, i.e. something like:
Code:
File f = new File(filename);                                                       
if (!f.exists()) {                                                                 
   // ... throw BIP8041
} else {
   ...

So you need to ensure that the pathname you specify is compatible with the file lookup algorithm on the platform you're running. To quote the java.io.File docs:
Quote:
A pathname, whether abstract or in string form, may be either absolute or relative. An absolute pathname is complete in that no other information is required in order to locate the file that it denotes. A relative pathname, in contrast, must be interpreted in terms of information taken from some other pathname. By default the classes in the java.io package always resolve relative pathnames against the current user directory. This directory is named by the system property user.dir, and is typically the directory in which the Java virtual machine was invoked.
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 » WebSphere Message Broker (ACE) Support » Path to .configmgr file in z/os - 8041E
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.