|
RSS Feed - WebSphere MQ Support
|
RSS Feed - Message Broker Support
|
 |
|
Alternate for Messages folder in MB Installation Path |
« View previous topic :: View next topic » |
Author |
Message
|
gaurav.udgir |
Posted: Thu Jun 10, 2010 12:54 am Post subject: Alternate for Messages folder in MB Installation Path |
|
|
Apprentice
Joined: 18 May 2009 Posts: 32
|
Hi All,
We are trying to write error message to the mqsi.log using the java code.
Code: |
MbService.logError(e.getClassName(), e.getMethodName(), e.getMessageSource(), e.getMessageKey(), e.getTraceText(), e.getInserts());
|
For this we created a Logging.properties file in message directory at Message Broker Installation path. After doing this change it worked.
But we don't want to put this file in messages directory or <broker installation path>. Is their any other way to access this file.
I tried to put this file to other location and provided the location in CLASSPATH, but this didn't worked. It thorws Error 4376.
Environment: AIX
Broker Version: 6.1.0.4
Please help.
Regards,
Gaurav |
|
Back to top |
|
 |
paranoid221 |
Posted: Mon Jun 14, 2010 12:38 am Post subject: |
|
|
 Centurion
Joined: 03 Apr 2006 Posts: 101 Location: USA
|
I would put such property files in /var/mqsi/shared-classes and broker's classloading does look in that directory for you already.
However, if this properties file you are using is not intended to be a shared resource (in other words you want the properties to be used for flows pertaining to your project only), you can put this file anywhere else on the filesystem and you should still be able to load it using getResourceAsStream java method. If you put the file in a directory that is not part of the classpath or is not in any of the directories that the broker classloader looks in then it is imperative that the path you provide to the method I mentioned above must be fully-qualified. _________________ LIFE is a series of complex calculations, somewhere multiplied by ZERO. |
|
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
|
|
|
|