I deployed a (MD)Bean to the /lib subfolder of ActiveMQ and configured the 
activemq.xml accordingly.

The Bean runs successfully. As a side operation it does some logging which 
should be directed
to a second, separate logfile (e.g. $ACTIVEMQ_HOME/data/mylogfile123.log).

So it cannot use the default ActiveMQ log4j.properties file in subfolder /conf.
Instead I tried to add a second, own log4j.properties file into the deployed 
*.jar Bean.
I epected that the special log4j.properties file has priority over the default 
one.

Unfortunately this does not work. The output goes still to the logfile defined 
in the
default log4j.properties file.

According to

http://logging.apache.org/log4j/1.2/manual.html#defaultInit

I defined a 

  <property name="resouce" value="log4j.properties">

entry in activemq.xml inside the SpringXML bean declaration.
But his does not help either.
  
How can I setup a second log4j.properties file for a new Bean?

Maybe there are some other configuration tricks to get the log4j working.

Ben


Reply via email to