|
RSS Feed - WebSphere MQ Support
|
RSS Feed - Message Broker Support
|
 |
|
Path to .configmgr file in z/os - 8041E |
« View previous topic :: View next topic » |
Author |
Message
|
ganesh |
Posted: Tue May 31, 2011 6:02 am Post subject: Path to .configmgr file in z/os - 8041E |
|
|
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 |
|
 |
mqmatt |
Posted: Wed Jun 01, 2011 8:31 am Post subject: |
|
|
 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 |
|
 |
|
|
 |
|
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
|
|
|
|