activemq-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Dejan Bosanac <>
Subject Re: How to use a second,own for a bean?
Date Fri, 03 Sep 2010 10:49:41 GMT
You can configure your bean to log to the other file in the same file ActiveMQ uses. You just need to define a new
appender and configure your logs to write there.

Dejan Bosanac -

Open Source Integration -
ActiveMQ in Action -
Blog -

On Fri, Sep 3, 2010 at 12:13 PM, Ben Stover <> wrote:
> I deployed a (MD)Bean to the /lib subfolder of ActiveMQ and configured the activemq.xml
> The Bean runs successfully. As a side operation it does some logging which should be
> to a second, separate logfile (e.g. $ACTIVEMQ_HOME/data/mylogfile123.log).
> So it cannot use the default ActiveMQ file in subfolder /conf.
> Instead I tried to add a second, own file into the deployed *.jar Bean.
> I epected that the special file has priority over the default one.
> Unfortunately this does not work. The output goes still to the logfile defined in the
> default file.
> According to
> I defined a
>  <property name="resouce" value="">
> entry in activemq.xml inside the SpringXML bean declaration.
> But his does not help either.
> How can I setup a second file for a new Bean?
> Maybe there are some other configuration tricks to get the log4j working.
> Ben

View raw message