Products | Versions |
---|---|
TIBCO ActiveMatrix BusinessWorks | - |
Not Applicable | - |
Resolution:
Description
= = = = = =
Configuring separate Log4j.properties per BusinessWorks (BW) Engine.
Environment:
===========
TIBCO BusinessWorks All Versions
Resolution:
==========
BWEngine comes with a log4j.properties/log4j.xml in the lib/ folder. This file is used by all bwEngine instances on a particular machine.
To configure separate log4j.properities per BW application you will need to adhere to the following steps:
1. Add a property to <BW_HOME>/lib/com/tibco/deployment/bwengine.xml as follows:
<property>
<name>Log4j External Location</name>
<option>java.property.log4j.configuration</option>
<default> /opt/tibco/bw/5.7/lib/log4j.properties</default>
<description>Log4j External Location</description>
</property>
2. Re-open the project in Designer and re-build the .ear file.
3. Deploy the application through the Admin GUI.
4. Under Admin Application configuration -> Process Archive -> Advanced -> java.property.log4j.configuration property. By default it will point to the Path of the default BW log4j properties file. You could specifyl an external path of the log4j properties files to override the default log4j properties file.