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 » Broker specific config file location

Post new topic  Reply to topic
 Broker specific config file location « View previous topic :: View next topic » 
Author Message
ceteareth
PostPosted: Sun Sep 02, 2012 11:07 pm    Post subject: Broker specific config file location Reply with quote

Acolyte

Joined: 12 Aug 2012
Posts: 51

I have a logback.xml which i saved in 'IBM\MQSI\Common\wsrr'. As part of the requirement i need to log all the services per broker. right now all logs per service per broker are configured in one xml file and the logger is named like <broker>_service1. I think it would be better if i have a config file per broker rather than having only one for all the services in all the brokers. Is there a file location specific to a broker which does the same thing as 'IBM\MQSI\Common\wsrr' ?
Back to top
View user's profile Send private message
Vitor
PostPosted: Mon Sep 03, 2012 3:31 am    Post subject: Reply with quote

Grand High Poobah

Joined: 11 Nov 2005
Posts: 26093
Location: Texas, USA

WMB doesn't use config files in that way, and what you're describing sounds a lot like the log4j config file to me.

On that basis, at least one person will be along in a moment (or possibly tomorrow depending on Labor Day plans) with a wealth of advice on using it.

IMHO if you a common location for all of the configuration files, create one & get the brokers to use it. You've already added the relevant jar files to (presumably) a common location rather than each flow using the function including them.
_________________
Honesty is the best policy.
Insanity is the best defence.
Back to top
View user's profile Send private message
lancelotlinc
PostPosted: Thu Sep 06, 2012 5:39 am    Post subject: Reply with quote

Jedi Knight

Joined: 22 Mar 2010
Posts: 4941
Location: Bloomington, IL USA

To have a separate log4j configurator per broker instance, you need to create two new class loader configurable services per broker instance. In the class loader configurable service that loads first, you put the path to the log4j.properties file. In the class loader configurable service that loads next, you put the path to the log4j jar.

See these InfoCentre links that describe how to create class loader configurable services.

http://publib.boulder.ibm.com/infocenter/wmbhelp/v7r0m0/index.jsp?topic=%2Fcom.ibm.etools.mft.doc%2Fan60170_.htm

http://www-01.ibm.com/support/docview.wss?uid=swg27019658&aid=1

http://www-01.ibm.com/support/docview.wss?uid=swg27019796&aid=1
_________________
http://leanpub.com/IIB_Tips_and_Tricks
Save $20: Coupon Code: MQSERIES_READER
Back to top
View user's profile Send private message Send e-mail
Vitor
PostPosted: Thu Sep 06, 2012 6:07 am    Post subject: Reply with quote

Grand High Poobah

Joined: 11 Nov 2005
Posts: 26093
Location: Texas, USA

Clearly your Labor Day plans were more expansive than I thought.
_________________
Honesty is the best policy.
Insanity is the best defence.
Back to top
View user's profile Send private message
mapa
PostPosted: Sun Sep 09, 2012 3:05 pm    Post subject: Reply with quote

Master

Joined: 09 Aug 2001
Posts: 257
Location: Malmö, Sweden

I've abandoned log4j and use Slf4j with Logback (which implements SLF4J natively).

I am using the logback.configurationFile JVM system property to set the location of the logback.xml

Oddly enough on the broker I had to add the "file:/" to the property, otherwise I get an exception in sun.misc.URLClassPath which I did not get on my Oracle JVM:
Code:

mqsichangeproperties MB8BROKER -e default -o ComIbmJVMManager -n jvmSystemProperty -v"-Dlogback.configurationFile=file:/C:/path/logback.xml"

You have to do this per ExecutionGroup though.

(Yes, I know, Windows and also WMB 8.0.0.0)
Back to top
View user's profile Send private message Visit poster's website
ceteareth
PostPosted: Sun Sep 09, 2012 9:36 pm    Post subject: Reply with quote

Acolyte

Joined: 12 Aug 2012
Posts: 51

Thanks. i will try this out.
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 » Broker specific config file location
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.