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 » Alternate for Messages folder in MB Installation Path

Post new topic  Reply to topic
 Alternate for Messages folder in MB Installation Path « View previous topic :: View next topic » 
Author Message
gaurav.udgir
PostPosted: Thu Jun 10, 2010 12:54 am    Post subject: Alternate for Messages folder in MB Installation Path Reply with quote

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
View user's profile Send private message
paranoid221
PostPosted: Mon Jun 14, 2010 12:38 am    Post subject: Reply with quote

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
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 » Alternate for Messages folder in MB Installation Path
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.